/* 
 * Core Variables - Design Tokens
 * Central source of truth for all design values
 * These variables are referenced throughout the application
 */

:root {
    /* ===== COLOR PALETTE ===== */
    /* Primary colors */
    --primary-color: #4361ee;
    --primary-color-rgb: 67, 97, 238;
    --primary-dark: #3a56d4;
    --primary-light: #6b84f4;
    
    /* Secondary colors */
    --secondary-color: #f72585;
    --secondary-color-rgb: 247, 37, 133;
    --secondary-dark: #d6206e;
    --secondary-light: #f94d9d;
    
    /* Accent colors */
    --accent-color: #7209b7;
    --accent-color-rgb: 114, 9, 183;
    --accent-color-dark: #5a079a;
    --accent-color-light: #8e2bc8;
    
    /* Semantic colors */
    --success-color: #06d6a0;
    --success-color-rgb: 6, 214, 160;
    --success-dark: #05b888;
    --success-light: #2de0b0;
    
    --warning-color: #ffd166;
    --warning-color-rgb: 255, 209, 102;
    --warning-dark: #f5c042;
    --warning-light: #ffd98a;
    
    --error-color: #ef476f;
    --error-color-rgb: 239, 71, 111;
    --error-dark: #d93a5f;
    --error-light: #f26989;
    
    --info-color: #4cc9f0;
    --info-color-rgb: 76, 201, 240;
    --info-dark: #3db8df;
    --info-light: #70d4f3;
    
    /* Text colors */
    --text-color: #2b2d42;
    --text-color-muted: #6c757d;
    --text-light: #8d99ae;
    --text-dark: #1a1c2e;
    
    /* Background colors */
    --bg-color: #f8f9fa;
    --bg-light: #ffffff;
    --bg-dark: #e9ecef;
    --bg-darker: #dee2e6;
    
    /* Border color */
    --border-color: #dee2e6;
    --border-color-light: #e9ecef;
    --border-color-dark: #ced4da;
    
    /* ===== SPACING SCALE ===== */
    /* Based on 4px (0.25rem) increment */
    --space-0: 0;
    --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-7: 1.75rem;   /* 28px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-14: 3.5rem;   /* 56px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    
    /* ===== TYPOGRAPHY SCALE ===== */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 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 */
    --text-5xl: 3rem;      /* 48px */
    
    /* Font weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;
    
    /* ===== BORDER RADIUS ===== */
    --radius-none: 0;
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */
    --radius-2xl: 1.25rem;  /* 20px */
    --radius-3xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;  /* Pill shape */
    
    /* Legacy border radius (for compatibility with existing code) */
    --border-radius: 1rem;
    --card-border-radius: 1.25rem;
    --button-border-radius: 0.75rem;
    
    /* ===== SHADOWS ===== */
    --shadow-none: none;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* Legacy box shadow (for compatibility) */
    --box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.03);
    
    /* ===== TRANSITIONS ===== */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Legacy transition (for compatibility) */
    --transition: all 0.3s ease;
    
    /* ===== Z-INDEX SCALE ===== */
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* ===== BREAKPOINTS ===== */
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-2xl: 1400px;
    
    /* ===== CONTAINER WIDTHS ===== */
    --container-sm: 540px;
    --container-md: 720px;
    --container-lg: 960px;
    --container-xl: 1140px;
    --container-2xl: 1320px;
    
    /* ===== OPACITY VALUES ===== */
    --opacity-0: 0;
    --opacity-10: 0.1;
    --opacity-20: 0.2;
    --opacity-30: 0.3;
    --opacity-40: 0.4;
    --opacity-50: 0.5;
    --opacity-60: 0.6;
    --opacity-70: 0.7;
    --opacity-80: 0.8;
    --opacity-90: 0.9;
    --opacity-100: 1;
    
    /* Legacy hover opacity (for compatibility) */
    --hover-opacity: 0.05;
    
    /* ===== LAYOUT VALUES ===== */
    --sidebar-width: 250px;
    --navbar-height: 64px;
    --footer-height: 60px;
}

/* 
 * Dark Theme Variables Override
 * Applied when [data-theme="dark"] is set on html/body
 */
[data-theme="dark"] {
    /* Primary colors - adjusted for dark mode */
    --primary-color: #4cc9f0;
    --primary-color-rgb: 76, 201, 240;
    --primary-dark: #3db8df;
    --primary-light: #6dd4f3;
    
    /* Secondary colors */
    --secondary-color: #f72585;
    --secondary-color-rgb: 247, 37, 133;
    --secondary-dark: #d6206e;
    --secondary-light: #f94d9d;
    
    /* Accent colors */
    --accent-color: #b5179e;
    --accent-color-rgb: 181, 23, 158;
    --accent-color-dark: #8f1380;
    --accent-color-light: #c93db1;
    
    /* Semantic colors */
    --success-color: #2ec4b6;
    --success-color-rgb: 46, 196, 182;
    --success-dark: #27a99d;
    --success-light: #52cec2;
    
    --warning-color: #ffd166;
    --warning-color-rgb: 255, 209, 102;
    --warning-dark: #f5c042;
    --warning-light: #ffd98a;
    
    --error-color: #ff5a7e;
    --error-color-rgb: 255, 90, 126;
    --error-dark: #f24169;
    --error-light: #ff7d9a;
    
    --info-color: #4cc9f0;
    --info-color-rgb: 76, 201, 240;
    --info-dark: #3db8df;
    --info-light: #70d4f3;
    
    /* Text colors */
    --text-color: #e9ecef;
    --text-color-muted: #9ca3af;
    --text-light: #adb5bd;
    --text-dark: #f8f9fa;
    
    /* Background colors */
    --bg-color: #121212;
    --bg-light: #1e1e1e;
    --bg-dark: #2d2d2d;
    --bg-darker: #3a3a3a;
    
    /* Border color */
    --border-color: #3a3a3a;
    --border-color-light: #2d2d2d;
    --border-color-dark: #4a4a4a;
    
    /* Shadows - darker for dark mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.7);
    
    /* Legacy box shadow */
    --box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.2);
}
