/* =====================================================
   DESIGN TOKENS — CSS Custom Properties
   UI/UX Pro Max Edition (Light Blue Theme)
   ===================================================== */

:root {
  /* Primary Colors - Light Blue (Sky) */
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-light: #e0f2fe;
  --primary-subtle: rgba(14, 165, 233, 0.1);

  /* Accent - vibrant cyan/teal */
  --accent: #06b6d4;
  --accent-light: #67e8f9;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(56, 189, 248, 0.05) 100%);

  /* Backgrounds */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;

  /* Surfaces & Glass */
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(14, 165, 233, 0.07);
  --glass-blur: blur(16px);

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  /* Status */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Form & Tab Elements (High Contrast) */
  --input-bg: rgba(255, 255, 255, 0.5);
  --input-border: transparent;
  --input-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(0, 0, 0, 0.1);
  --tab-bg: rgba(0, 0, 0, 0.05);
  --tab-active: #ffffff;

  /* Shadows - Smooth layered shadows */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 24px rgba(14, 165, 233, 0.25);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-theme: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-nav: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* =====================================================
   DARK THEME OVERRIDES
   ===================================================== */
[data-theme="dark"] {
  /* Toning down the brightness for dark mode */
  --primary: #0284c7; 
  --primary-hover: #0369a1;
  --primary-light: #082f49;
  --primary-subtle: rgba(2, 132, 199, 0.2);

  --accent: #0ea5e9;
  --accent-light: #38bdf8;

  --gradient-primary: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%);

  --bg-primary: #09090b;
  --bg-secondary: #121214;
  --bg-tertiary: #18181b;

  --surface: #121214;
  --surface-hover: #1f1f22;
  --glass-bg: rgba(18, 18, 20, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-light: #27272a;
  --border-medium: #3f3f46;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 24px rgba(56, 189, 248, 0.25);

  /* Form & Tab Elements (High Contrast Dark Mode) */
  --input-bg: rgba(0, 0, 0, 0.3);
  --input-border: transparent;
  --input-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 3px rgba(0, 0, 0, 0.8);
  --tab-bg: rgba(0, 0, 0, 0.4);
  --tab-active: rgba(255, 255, 255, 0.12);
}
