/**
 * CSS Variables for Theme System
 * Modern approach using CSS custom properties
 */

:root {
    /* Light Theme (Default) */
    --color-primary: #242943;
    --color-secondary: #868797;
    --color-accent: #50ADC9;
    --color-success: #65c265;
    --color-danger: #fc5464;
    --color-warning: #ffc107;
    --color-info: #17a2b8;
    
    /* Background Colors */
    --bg-body: #f5f5f5;
    --bg-sidebar: #242943;
    --bg-card: #ffffff;
    --bg-card-hover: rgba(0, 0, 0, 0.02);
    --bg-sidebar-hover: rgba(255, 255, 255, 0.1);
    --bg-title-card: #242943;
    --bg-status-open: #9dff9d;
    --bg-status-closed: #fc5464;
    --bg-table-header: #242943;
    
    /* Text Colors */
    --text-primary: #2c3e50;
    --text-secondary: #868797;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --text-on-primary: #ffffff;
    
    /* Border & Shadows */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.20);
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Layout */
    --sidebar-width: 280px;
    --header-height: 64px;
    --content-max-width: 1400px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-body: #1f1f1f;
    --bg-sidebar: #242943;
    --bg-card: #2a2a2a;
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --bg-title-card: #868696;
    --bg-status-open: #65c265;
    --bg-status-closed: #a33641;
    --bg-table-header: #737583;
    
    --text-primary: #eeeeee;
    --text-secondary: #b0b0b0;
    --text-light: #ffffff;
    --text-muted: #888888;
    
    --border-color: #404040;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.6);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    :root {
        --sidebar-width: 240px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
        --font-size-3xl: 1.75rem;
        --font-size-4xl: 2rem;
    }
}
