/* ═══════════════════════════════════════════════════════════
   ISAAC Recovery CRM — UNIFIED DESIGN TOKENS
   Single Source of Truth for All Portals
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ─── Typography ─────────────────────────────────────────── */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 28px;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;

  /* ─── Spacing Scale ─────────────────────────────────────── */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ─── Brand Colors ──────────────────────────────────────── */
  --color-brand: #F5B900;
  --color-brand-dark: #D49E00;
  --color-brand-darker: #B88600;
  --color-brand-light: #FFF7E6;
  --color-brand-lighter: #FFFBF0;

  /* ─── Neutral Colors ────────────────────────────────────── */
  --color-white: #FFFFFF;
  --color-black: #000000;
  
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;

  /* ─── Semantic Colors ───────────────────────────────────── */
  --color-success: #10B981;
  --color-success-dark: #059669;
  --color-success-light: #D1FAE5;
  
  --color-warning: #F59E0B;
  --color-warning-dark: #D97706;
  --color-warning-light: #FEF3C7;
  
  --color-error: #EF4444;
  --color-error-dark: #DC2626;
  --color-error-light: #FEE2E2;
  
  --color-info: #3B82F6;
  --color-info-dark: #2563EB;
  --color-info-light: #DBEAFE;

  /* ─── Background Colors ─────────────────────────────────── */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --bg-tertiary: #F3F4F6;
  --bg-dark: #0D1B2A;
  --bg-dark-secondary: #162032;

  /* ─── Text Colors ───────────────────────────────────────── */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;
  --text-muted: #9CA3AF;
  --text-inverse: #FFFFFF;

  /* ─── Border Colors ─────────────────────────────────────── */
  --border-primary: #E5E7EB;
  --border-secondary: #D1D5DB;
  --border-focus: var(--color-brand);
  --border-error: var(--color-error);
  --border-success: var(--color-success);

  /* ─── Border Radius ─────────────────────────────────────── */
  --radius-none: 0;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* ─── Shadows ───────────────────────────────────────────── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  --shadow-brand: 0 4px 18px rgba(245, 185, 0, 0.35);
  --shadow-brand-lg: 0 10px 30px rgba(245, 185, 0, 0.4);

  /* ─── Transitions ───────────────────────────────────────── */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ─── Z-Index Scale ─────────────────────────────────────── */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* ─── Breakpoints (for reference in JS) ────────────────── */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* ─── Component Specific ────────────────────────────────── */
  --input-height: 40px;
  --input-height-sm: 36px;
  --input-height-lg: 48px;
  
  --button-height: 40px;
  --button-height-sm: 36px;
  --button-height-lg: 48px;
  
  --header-height: 72px;
  --header-height-mobile: 60px;
  
  --sidebar-width: 240px;
  --sidebar-width-collapsed: 68px;

  /* ─── Status Colors (Job Statuses) ──────────────────────── */
  --status-new-bg: #EFF6FF;
  --status-new-text: #1D4ED8;
  
  --status-discovery-bg: #FFF7ED;
  --status-discovery-text: #C2410C;
  
  --status-pending-bg: #FEF3C7;
  --status-pending-text: #92400E;
  
  --status-active-bg: #D1FAE5;
  --status-active-text: #065F46;
  
  --status-completed-bg: #D1FAE5;
  --status-completed-text: #065F46;
  
  --status-cancelled-bg: #FEE2E2;
  --status-cancelled-text: #991B1B;
  
  --status-warning-bg: #FEF3C7;
  --status-warning-text: #92400E;
}

/* ─── Dark Mode Support (Future) ────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    /* Will be implemented when dark mode is added */
  }
}

/* ─── Print Styles ──────────────────────────────────────── */
@media print {
  :root {
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
  }
}
