/* ============================================================================
   CSS Custom Properties (Design Tokens)
   FAANG Standard: Centralized design system variables
   ============================================================================ */

:root {
    /* Brand Colors */
    --primary: #1976D2;
    --primary-dark: #1565C0;
    --primary-light: #BBDEFB;
    --accent: #FF4081;
    
    /* Semantic Colors */
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --info: #2196F3;
    
    /* Surface Colors */
    --background: #F5F7FA;
    --surface: #FFFFFF;
    --surface-hover: #FAFAFA;
    
    /* Text Colors */
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-disabled: #BDBDBD;
    
    /* Border & Divider */
    --divider: #E0E0E0;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
    
    /* Shadows */
    --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);
    
    /* Gradients */
    --body-gradient-start: #E3F2FD;
    --body-gradient-end: #BBDEFB;
    
    /* Severity Gradients */
    --critical-gradient-start: #FF416C;
    --critical-gradient-end: #FF4B2B;
    --high-gradient-start: #FF8C42;
    --high-gradient-end: #FF6B35;
    --medium-gradient-start: #FFC837;
    --medium-gradient-end: #FF8008;
    --low-gradient-start: #56CCF2;
    --low-gradient-end: #2F80ED;
    
    /* Chat */
    --chat-bg: #F5F7FA;
    
    /* Spacing Scale */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;
    --spacing-4xl: 48px;
    
    /* Typography Scale */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
    
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-md: 15px;
    --font-size-lg: 17px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;
    --font-size-4xl: 48px;
    
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Scale */
    --z-index-base: 1;
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
}

/* Dark Theme Override */
[data-theme="dark"] {
    /* Brand Colors */
    --primary: #64B5F6;
    --primary-dark: #42A5F5;
    --primary-light: #1E88E5;
    
    /* Surface Colors */
    --background: #1E1E1E;
    --surface: #2D2D2D;
    --surface-hover: #383838;
    
    /* Text Colors */
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --text-disabled: #707070;
    
    /* Border & Divider */
    --divider: #404040;
    
    /* Shadows */
    --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);
    
    /* Gradients */
    --body-gradient-start: #1a1a2e;
    --body-gradient-end: #16213e;
    
    /* Severity Gradients */
    --critical-gradient-start: #FF6B9D;
    --critical-gradient-end: #FFA06B;
    --high-gradient-start: #FFB84D;
    --high-gradient-end: #FF9B54;
    --medium-gradient-start: #FFD95A;
    --medium-gradient-end: #FFB347;
    --low-gradient-start: #6DD5FA;
    --low-gradient-end: #5EADF2;
    
    /* Chat */
    --chat-bg: #1a1a2e;
    
    /* Semantic Colors (Dark Mode Adjusted) */
    --success: #66BB6A;
    --warning: #FFA726;
    --error: #EF5350;
}
