/* Design Tokens - Generated from Figma Design System */
:root {
  /* Colors - Using OKLCH for better color reproduction */
  --color-primary: oklch(65% 0.25 250);
  --color-primary-dark: oklch(55% 0.22 250);
  --color-primary-light: oklch(75% 0.18 250);
  
  --color-accent: oklch(70% 0.25 130);
  --color-accent-dark: oklch(60% 0.22 130);
  
  --color-success: oklch(65% 0.2 150);
  --color-error: oklch(65% 0.25 30);
  --color-warning: oklch(75% 0.2 80);
  
  --color-surface-bg: oklch(98% 0.005 250);
  --color-surface-100: oklch(95% 0.01 250 / 0.8);
  --color-surface-200: oklch(92% 0.02 250 / 0.9);
  --color-surface-300: oklch(88% 0.03 250);
  
  --color-text: oklch(25% 0.01 250);
  --color-text-secondary: oklch(35% 0.01 250);
  --color-text-tertiary: oklch(45% 0.01 250);
  --color-border: oklch(80% 0.02 250);
  
  /* Spacing */
  --space-2xs: 0.25rem;  /* 4px */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 0.75rem;   /* 12px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  
  /* Typography */
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 2rem;     /* 32px */
  --font-size-4xl: 2.5rem;   /* 40px */
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-loose: 1.8;
  
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Borders & Radiuses */
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-card: 0.75rem;  /* 12px */
  --radius-button: 0.5rem; /* 8px */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  
  /* Animations & Transitions */
  --transition-color: 200ms ease;
  --transition-transform: 250ms ease;
  --transition-morph: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fade: 300ms ease;
  
  /* Z-indices */
  --z-below: -1;
  --z-normal: 0;
  --z-above: 10;
  --z-tooltip: 20;
  --z-sticky: 30;
  --z-drawer: 40;
  --z-modal: 50;
  --z-toast: 60;
}

/* Dark Mode Colors */
@media (prefers-color-scheme: dark) {
  :root {
    --color-surface-bg: oklch(15% 0.01 250);
    --color-surface-100: oklch(18% 0.01 250 / 0.8);
    --color-surface-200: oklch(22% 0.02 250 / 0.9);
    --color-surface-300: oklch(25% 0.03 250);
    
    --color-text: oklch(95% 0.005 250);
    --color-text-secondary: oklch(85% 0.005 250);
    --color-text-tertiary: oklch(75% 0.005 250);
    --color-border: oklch(30% 0.02 250);
    
    --color-primary: oklch(70% 0.25 250);
    --color-primary-dark: oklch(60% 0.22 250);
    --color-primary-light: oklch(80% 0.18 250);
    
    /* Adjust shadows for dark mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
  }
}

/* Force light theme with class */
.light-theme {
  --color-surface-bg: oklch(98% 0.005 250);
  --color-surface-100: oklch(95% 0.01 250 / 0.8);
  --color-surface-200: oklch(92% 0.02 250 / 0.9);
  --color-surface-300: oklch(88% 0.03 250);
  
  --color-text: oklch(25% 0.01 250);
  --color-text-secondary: oklch(35% 0.01 250);
  --color-text-tertiary: oklch(45% 0.01 250);
  --color-border: oklch(80% 0.02 250);
  
  --color-primary: oklch(65% 0.25 250);
  --color-primary-dark: oklch(55% 0.22 250);
  --color-primary-light: oklch(75% 0.18 250);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Force dark theme with class */
.dark-theme {
  --color-surface-bg: oklch(15% 0.01 250);
  --color-surface-100: oklch(18% 0.01 250 / 0.8);
  --color-surface-200: oklch(22% 0.02 250 / 0.9);
  --color-surface-300: oklch(25% 0.03 250);
  
  --color-text: oklch(95% 0.005 250);
  --color-text-secondary: oklch(85% 0.005 250);
  --color-text-tertiary: oklch(75% 0.005 250);
  --color-border: oklch(30% 0.02 250);
  
  --color-primary: oklch(70% 0.25 250);
  --color-primary-dark: oklch(60% 0.22 250);
  --color-primary-light: oklch(80% 0.18 250);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
}
