:root {
    /* Color Palette - Light Mode */
    --color-primary: hsl(250, 84%, 54%);
    --color-primary-hover: hsl(250, 84%, 48%);
    --color-primary-light: hsl(250, 84%, 96%);

    --color-secondary: hsl(280, 100%, 65%);
    --color-accent: hsl(340, 82%, 52%);

    --color-success: hsl(142, 71%, 45%);
    --color-warning: hsl(38, 92%, 50%);
    --color-danger: hsl(0, 84%, 60%);
    --color-info: hsl(199, 89%, 48%);

    /* Light variants for backgrounds */
    --color-primary-light: hsl(271, 76%, 95%);
    --color-secondary-light: hsl(262, 83%, 95%);
    --color-success-light: hsl(142, 71%, 95%);
    --color-warning-light: hsl(38, 92%, 95%);
    --color-danger-light: hsl(0, 84%, 95%);
    --color-info-light: hsl(199, 89%, 95%);

    /* Neutral Colors - Light Mode */
    --color-bg-primary: hsl(0, 0%, 100%);
    --color-bg-secondary: hsl(240, 20%, 98%);
    --color-bg-tertiary: hsl(240, 15%, 95%);
    --color-bg-hover: hsl(240, 20%, 96%);

    --color-text-primary: hsl(240, 20%, 15%);
    --color-text-secondary: hsl(240, 10%, 40%);
    --color-text-tertiary: hsl(240, 5%, 60%);
    --color-text-inverse: hsl(0, 0%, 100%);

    --color-border: hsl(240, 10%, 90%);
    --color-border-hover: hsl(240, 10%, 80%);

    /* 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);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(10px);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;

    --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;

    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* 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 */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Dark Mode */
[data-theme="dark"] {
    --color-primary: hsl(250, 84%, 60%);
    --color-primary-hover: hsl(250, 84%, 66%);
    --color-primary-light: hsl(250, 84%, 15%);

    --color-secondary: hsl(280, 100%, 70%);
    --color-accent: hsl(340, 82%, 58%);

    --color-success: hsl(142, 71%, 50%);
    --color-warning: hsl(38, 92%, 55%);
    --color-danger: hsl(0, 84%, 65%);
    --color-info: hsl(199, 89%, 53%);

    /* Light variants for backgrounds in dark mode */
    --color-primary-light: hsl(271, 76%, 20%);
    --color-secondary-light: hsl(262, 83%, 20%);
    --color-success-light: hsl(142, 71%, 20%);
    --color-warning-light: hsl(38, 92%, 20%);
    --color-danger-light: hsl(0, 84%, 20%);
    --color-info-light: hsl(199, 89%, 20%);

    --color-bg-primary: hsl(240, 15%, 10%);
    --color-bg-secondary: hsl(240, 15%, 14%);
    --color-bg-tertiary: hsl(240, 15%, 18%);
    --color-bg-hover: hsl(240, 15%, 22%);

    --color-text-primary: hsl(0, 0%, 95%);
    --color-text-secondary: hsl(240, 5%, 70%);
    --color-text-tertiary: hsl(240, 5%, 50%);
    --color-text-inverse: hsl(240, 15%, 10%);

    --color-border: hsl(240, 10%, 25%);
    --color-border-hover: hsl(240, 10%, 35%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);

    --glass-bg: rgba(20, 20, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Priority Colors */
:root {
    --priority-critical: hsl(0, 75%, 20%);
    --priority-high: hsl(0, 84%, 60%);
    --priority-medium: hsl(38, 92%, 50%);
    --priority-low: hsl(142, 71%, 45%);
}

[data-theme="dark"] {
    --priority-critical: hsl(0, 60%, 41%);
    --priority-high: hsl(0, 84%, 65%);
    --priority-medium: hsl(38, 92%, 55%);
    --priority-low: hsl(142, 71%, 50%);
}

/* Status Colors */
:root {
    --status-pending: hsl(240, 5%, 60%);
    --status-on-work: hsl(199, 89%, 48%);
    --status-completed: hsl(142, 71%, 45%);
    --status-cancelled: hsl(0, 0%, 50%);
}

[data-theme="dark"] {
    --status-pending: hsl(240, 5%, 70%);
    --status-on-work: hsl(199, 89%, 53%);
    --status-completed: hsl(142, 71%, 50%);
    --status-cancelled: hsl(0, 0%, 60%);
}

/* Category Colors */
:root {
    --category-business: hsl(250, 84%, 54%);
    --category-health: hsl(142, 71%, 45%);
    --category-education: hsl(199, 89%, 48%);
    --category-finance: hsl(142, 71%, 45%);
    --category-skills: hsl(280, 100%, 65%);
    --category-personal: hsl(340, 82%, 52%);
}