/* ═══════════════════════════════════════════════════════════
   ISAAC Recovery CRM — Shared Design System (High Fidelity)
   
   UPDATED: Now uses unified design tokens from design-tokens.css
   All portals should use these standardized tokens
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('./design-tokens.css');
@import url('./global-reset.css');
@import url('./components.css');

/* Legacy variable mapping for backward compatibility */
:root {
  /* Map old variables to new design tokens */
  --color-primary: var(--color-brand);
  --color-primary-dark: var(--color-brand-dark);
  --color-sidebar: var(--bg-dark);
  --color-sidebar-text: var(--text-tertiary);
  --color-sidebar-active: var(--color-gray-50);
  --color-surface: var(--bg-primary);
  --color-bg: var(--bg-secondary);
  --color-border: var(--border-primary);
  --color-text: var(--text-primary);
  --color-text-muted: var(--text-secondary);
  --color-danger: var(--color-error);
  
  /* Spacing & Radius */
  --spacing-base: var(--space-4);
  --radius-card: var(--radius-lg);
  --radius-btn: var(--radius-full);
  --shadow-card: var(--shadow-sm);
}

/* Global Reset & Typography Scoping (Inter - Standardized) */
#irc-portal-root,
.irc-modern-portal {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-family) !important;
  color: var(--text-primary) !important;
  background-color: var(--bg-secondary) !important;
  font-weight: var(--font-weight-normal);
}

/* Ensure common backgrounds use tokens */
.irc-portal-inner,
.irc-wrapper,
.irc-body {
  background-color: var(--color-bg) !important;
}

/* Base Headings & Semi-Bold text */
#irc-portal-root h1, 
#irc-portal-root h2, 
#irc-portal-root h3, 
#irc-portal-root strong,
#irc-portal-root b {
  font-weight: 700 !important;
}

/* Status Pill Base Styles */
.irc-status-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
