/* =============================================
   WorkBoard — Design System Variables
   Premium color palette, typography, spacing
   ============================================= */

:root {
    /* === Primary Colors === */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;
    
    /* === Accent === */
    --accent-500: #8b5cf6;
    --accent-600: #7c3aed;
    
    /* === Semantic Colors === */
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-500: #10b981;
    --success-600: #059669;
    
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    
    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    
    --info-50: #eff6ff;
    --info-500: #3b82f6;
    
    /* === Priority Colors === */
    --priority-low: #10b981;
    --priority-low-bg: #ecfdf5;
    --priority-medium: #f59e0b;
    --priority-medium-bg: #fffbeb;
    --priority-high: #f97316;
    --priority-high-bg: #fff7ed;
    --priority-urgent: #ef4444;
    --priority-urgent-bg: #fef2f2;
    
    /* === Light Theme (default) === */
    --bg-body: #f5f3ff;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #faf9ff;
    --bg-sidebar: #1e1b3a;
    --bg-sidebar-hover: #2d2952;
    --bg-sidebar-active: #3730a3;
    --bg-input: #ffffff;
    --bg-hover: #f5f3ff;
    --bg-modal-overlay: rgba(15, 12, 41, 0.6);
    
    --text-primary: #1e1b2e;
    --text-secondary: #64607d;
    --text-tertiary: #9794ab;
    --text-sidebar: #c4c1d6;
    --text-sidebar-active: #ffffff;
    --text-on-primary: #ffffff;
    --text-link: #6366f1;
    
    --border-color: #e8e5f3;
    --border-color-strong: #d4d0e6;
    --border-input: #d4d0e6;
    --border-input-focus: #6366f1;
    
    --shadow-sm: 0 1px 2px rgba(30, 27, 46, 0.04);
    --shadow-md: 0 4px 12px rgba(30, 27, 46, 0.06);
    --shadow-lg: 0 8px 30px rgba(30, 27, 46, 0.08);
    --shadow-xl: 0 16px 48px rgba(30, 27, 46, 0.12);
    --shadow-card: 0 2px 8px rgba(30, 27, 46, 0.05);
    --shadow-card-hover: 0 8px 24px rgba(30, 27, 46, 0.1);
    --shadow-sidebar: 4px 0 24px rgba(30, 27, 46, 0.1);
    
    /* === Typography === */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    --text-xs: 0.6875rem;    /* 11px */
    --text-sm: 0.75rem;      /* 12px */
    --text-base: 0.875rem;   /* 14px */
    --text-md: 1rem;         /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* === Spacing === */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    
    /* === Border Radius === */
    --radius-sm: 0.375rem;    /* 6px */
    --radius-md: 0.5rem;      /* 8px */
    --radius-lg: 0.75rem;     /* 12px */
    --radius-xl: 1rem;        /* 16px */
    --radius-2xl: 1.25rem;    /* 20px */
    --radius-full: 9999px;
    
    /* === 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);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* === Layout === */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 72px;
    --header-height: 0px;
    --content-max-width: 1400px;
    
    /* === Z-index === */
    --z-sidebar: 100;
    --z-dropdown: 200;
    --z-modal: 300;
    --z-toast: 400;
    --z-tooltip: 500;
}

/* =============================================
   Dark Theme
   ============================================= */
[data-theme="dark"] {
    --bg-body: #0f0d1a;
    --bg-surface: #1a1729;
    --bg-surface-elevated: #211e33;
    --bg-sidebar: #13111d;
    --bg-sidebar-hover: #1e1b2e;
    --bg-sidebar-active: #312e81;
    --bg-input: #1e1b2e;
    --bg-hover: #211e33;
    --bg-modal-overlay: rgba(0, 0, 0, 0.7);
    
    --text-primary: #f0eef5;
    --text-secondary: #9794ab;
    --text-tertiary: #6b6880;
    --text-sidebar: #c4c1d6;
    --text-sidebar-active: #ffffff;
    --text-link: #818cf8;
    
    --border-color: #2a2740;
    --border-color-strong: #3d3957;
    --border-input: #3d3957;
    --border-input-focus: #818cf8;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-sidebar: 4px 0 24px rgba(0, 0, 0, 0.3);
    
    --priority-low-bg: #064e3b;
    --priority-medium-bg: #78350f;
    --priority-high-bg: #7c2d12;
    --priority-urgent-bg: #7f1d1d;
}
