/* ========================================
   CSS VARIABLES - Design System Tokens
   Single source of truth for all styling
   ======================================== */

:root {
    /* ===== Color Palette ===== */
    
    /* Primary Colors */
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    --color-primary-hover: #4f46e5;
    
    /* Background Colors */
    --color-bg-main: #f8fafc;
    --color-bg-secondary: #ffffff;
    --color-bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Text Colors */
    --color-text-primary: #0f172a;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    
    /* Border Colors */
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --color-border-focus: #6366f1;
    
    /* Status Colors */
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-danger-hover: #dc2626;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    
    /* ===== Spacing Scale ===== */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    
    /* ===== Border Radius ===== */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* ===== 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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* ===== Typography ===== */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 3rem;      /* 48px */
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* ===== Component Patterns ===== */
    /* These variables combine base tokens for specific component use cases */
    
    /* Buttons */
    --button-padding: var(--spacing-sm) var(--spacing-md);
    --button-padding-sm: var(--spacing-xs) var(--spacing-sm);
    --button-padding-lg: var(--spacing-md) var(--spacing-lg);
    --button-radius: var(--radius-md);
    --button-shadow: var(--shadow-sm);
    
    /* Inputs & Forms */
    --input-padding: var(--spacing-sm) var(--spacing-md);
    --input-radius: var(--radius-md);
    --input-border: 1px solid var(--color-border);
    --input-border-focus: 1px solid var(--color-border-focus);
    
    /* Cards */
    --card-padding: var(--spacing-md);
    --card-padding-lg: var(--spacing-lg);
    --card-radius: var(--radius-lg);
    --card-shadow: var(--shadow-md);
    
    /* Dialogs */
    --dialog-padding: var(--spacing-lg);
    --dialog-radius: var(--radius-lg);
    --dialog-shadow: var(--shadow-xl);
    --dialog-backdrop: var(--color-bg-overlay);
    
    /* ===== Transitions ===== */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* ===== Z-Index Scale ===== */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 9999;
    --z-modal: 10000;
    --z-popover: 10001;
    --z-tooltip: 10002;
}

/* ===== Dark Mode Support (Future Enhancement) ===== */
/* @media (prefers-color-scheme: dark) {
    :root {
        --color-bg-main: #0f172a;
        --color-bg-secondary: #1e293b;
        --color-text-primary: #f8fafc;
        --color-text-secondary: #cbd5e1;
        --color-border: #334155;
    }
} */

/* ===== Theme Variants (Future Enhancement) ===== */
/* [data-theme="dark"] {
    --color-bg-main: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-border: #334155;
} */
