/* CSS Variables - Design Tokens */

:root {
  /* Colors - oklch color system */
  --background: oklch(0.08 0.01 260);
  --foreground: oklch(0.98 0 0);
  --card: oklch(0.12 0.01 260);
  --card-foreground: oklch(0.98 0 0);
  --popover: oklch(0.12 0.01 260);
  --popover-foreground: oklch(0.98 0 0);
  --primary: oklch(0.7 0.18 160);
  --primary-foreground: oklch(0.08 0.01 260);
  --secondary: oklch(0.18 0.01 260);
  --secondary-foreground: oklch(0.98 0 0);
  --muted: oklch(0.18 0.01 260);
  --muted-foreground: oklch(0.6 0 0);
  --accent: oklch(0.65 0.2 280);
  --accent-foreground: oklch(0.98 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.577 0.245 27.325);
  --border: oklch(0.25 0.01 260);
  --input: oklch(0.18 0.01 260);
  --ring: oklch(0.7 0.18 160);
  
  /* Chart colors */
  --chart-1: oklch(0.7 0.18 160);
  --chart-2: oklch(0.65 0.2 280);
  --chart-3: oklch(0.6 0.15 200);
  --chart-4: oklch(0.75 0.15 80);
  --chart-5: oklch(0.65 0.2 340);
  
  /* Status colors */
  --success: oklch(0.7 0.18 160);
  --warning: oklch(0.75 0.15 80);
  --error: oklch(0.577 0.245 27.325);
  --info: oklch(0.65 0.2 280);
  
  /* Border radius */
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-full: 9999px;
  
  /* Spacing scale */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  --spacing-24: 6rem;
  
  /* Font families */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', 'Monaco', 'Courier New', monospace;
  
  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  
  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Font weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index scale */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* Container max widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Breakpoints (for reference in JS) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

.dark {
  /* Dark mode has same colors as default since app is dark by default */
  --background: oklch(0.08 0.01 260);
  --foreground: oklch(0.98 0 0);
  --card: oklch(0.12 0.01 260);
  --card-foreground: oklch(0.98 0 0);
  --popover: oklch(0.12 0.01 260);
  --popover-foreground: oklch(0.98 0 0);
  --primary: oklch(0.7 0.18 160);
  --primary-foreground: oklch(0.08 0.01 260);
  --secondary: oklch(0.18 0.01 260);
  --secondary-foreground: oklch(0.98 0 0);
  --muted: oklch(0.18 0.01 260);
  --muted-foreground: oklch(0.6 0 0);
  --accent: oklch(0.65 0.2 280);
  --accent-foreground: oklch(0.98 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.25 0.01 260);
  --input: oklch(0.18 0.01 260);
  --ring: oklch(0.7 0.18 160);
}

/* Optional light mode */
.light {
  --background: oklch(1 0 0);
  --foreground: oklch(0.09 0 0);
  --card: oklch(0.98 0 0);
  --card-foreground: oklch(0.09 0 0);
  --popover: oklch(0.98 0 0);
  --popover-foreground: oklch(0.09 0 0);
  --primary: oklch(0.5 0.18 160);
  --primary-foreground: oklch(0.98 0 0);
  --secondary: oklch(0.96 0 0);
  --secondary-foreground: oklch(0.09 0 0);
  --muted: oklch(0.96 0 0);
  --muted-foreground: oklch(0.45 0 0);
  --accent: oklch(0.55 0.2 280);
  --accent-foreground: oklch(0.98 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.98 0 0);
  --border: oklch(0.9 0 0);
  --input: oklch(0.96 0 0);
  --ring: oklch(0.5 0.18 160);
}
