/* ===== MODERN DESIGN TOKENS ===== */
/* Inspired by splash screen design with modern editor aesthetics */

:root {
    /* ===== COLOR SYSTEM ===== */
    
    /* Editor theme colors (splash screen inspired) */
    --editor-bg: #0d1117;
    --editor-bg-secondary: #161b22;
    --editor-bg-tertiary: #21262d;
    --editor-bg-quaternary: #30363d;
    --editor-border: #30363d;
    --editor-border-light: #484f58;
    --editor-text: #f0f6fc;
    --editor-text-secondary: #8b949e;
    --editor-text-tertiary: #6e7681;
    --editor-text-muted: #484f58;
    
    /* Syntax highlighting colors (splash screen inspired) */
    --syntax-keyword: #ff7b72;
    --syntax-string: #a5d6ff;
    --syntax-comment: #8b949e;
    --syntax-function: #d2a8ff;
    --syntax-variable: #79c0ff;
    --syntax-number: #f2cc60;
    --syntax-operator: #ff7b72;
    --syntax-type: #ffa657;
    
    /* Enhanced Modern accent colors with better contrast and vibrancy */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #06b6d4;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-error: #ef4444;
    --accent-info: #3b82f6;
    
    /* Extended color palette for more design flexibility */
    --accent-purple: #9333ea;
    --accent-pink: #ec4899;
    --accent-indigo: #4f46e5;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
    --accent-slate: #64748b;
    --accent-gray: #6b7280;
    
    /* Semantic color variants */
    --accent-primary-50: #eef2ff;
    --accent-primary-100: #e0e7ff;
    --accent-primary-200: #c7d2fe;
    --accent-primary-300: #a5b4fc;
    --accent-primary-400: #818cf8;
    --accent-primary-500: #6366f1;
    --accent-primary-600: #4f46e5;
    --accent-primary-700: #4338ca;
    --accent-primary-800: #3730a3;
    --accent-primary-900: #312e81;
    
    --accent-secondary-50: #faf5ff;
    --accent-secondary-100: #f3e8ff;
    --accent-secondary-200: #e9d5ff;
    --accent-secondary-300: #d8b4fe;
    --accent-secondary-400: #c084fc;
    --accent-secondary-500: #a855f7;
    --accent-secondary-600: #9333ea;
    --accent-secondary-700: #7c3aed;
    --accent-secondary-800: #6b21a8;
    --accent-secondary-900: #581c87;
    
    /* Enhanced gradient definitions */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    --gradient-error: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    --gradient-info: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-glass-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    
    /* Advanced gradient system */
    --gradient-aurora: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    --gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 50%, #fa709a 100%);
    --gradient-ocean: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    --gradient-forest: linear-gradient(135deg, #134e5e 0%, #71b280 50%, #134e5e 100%);
    --gradient-fire: linear-gradient(135deg, #ff6b6b 0%, #ffa726 50%, #ff6b6b 100%);
    --gradient-ice: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #74b9ff 100%);
    --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    --gradient-neon: linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #a8edea 100%);
    
    /* Glass morphism gradients */
    --gradient-glass-light: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    --gradient-glass-medium: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-glass-dark: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    --gradient-glass-accent: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    
    /* Text gradients */
    --gradient-text-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-text-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    --gradient-text-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-text-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-text-error: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    /* Enhanced Glass morphism effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-bg-active: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-border-light: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
    --glass-shadow-enhanced: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 100px rgba(147, 51, 234, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    --glass-blur: blur(20px);
    --glass-blur-light: blur(10px);
    --glass-blur-enhanced: blur(20px);
    
    /* Enhanced Button Shadow System */
    --shadow-btn-primary: 0 4px 14px rgba(99, 102, 241, 0.4), 0 0 20px rgba(99, 102, 241, 0.2);
    --shadow-btn-primary-hover: 0 8px 25px rgba(99, 102, 241, 0.5), 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-btn-secondary: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --shadow-btn-secondary-hover: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    --shadow-btn-success: 0 4px 14px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
    --shadow-btn-success-hover: 0 8px 25px rgba(16, 185, 129, 0.5), 0 0 40px rgba(16, 185, 129, 0.3);
    --shadow-btn-warning: 0 4px 14px rgba(245, 158, 11, 0.4), 0 0 20px rgba(245, 158, 11, 0.2);
    --shadow-btn-warning-hover: 0 8px 25px rgba(245, 158, 11, 0.5), 0 0 40px rgba(245, 158, 11, 0.3);
    --shadow-btn-error: 0 4px 14px rgba(239, 68, 68, 0.4), 0 0 20px rgba(239, 68, 68, 0.2);
    --shadow-btn-error-hover: 0 8px 25px rgba(239, 68, 68, 0.5), 0 0 40px rgba(239, 68, 68, 0.3);
    --shadow-btn-icon: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-btn-icon-hover: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* Enhanced Panel Shadow System */
    --shadow-panel: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-panel-hover: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --shadow-panel-header: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --shadow-editor: 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --shadow-console: 0 0 0 1px rgba(255, 255, 255, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    
    /* Enhanced Gradient System for Panels */
    --gradient-panel-header: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    --gradient-panel-header-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    --gradient-editor-bg: linear-gradient(135deg, var(--editor-bg) 0%, var(--editor-bg-secondary) 100%);
    --gradient-console-bg: linear-gradient(135deg, var(--editor-bg-secondary) 0%, var(--editor-bg-tertiary) 100%);
    --gradient-console-welcome: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    
    /* Modern gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--editor-bg) 0%, var(--editor-bg-secondary) 50%, var(--editor-bg) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-text: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
    
    /* ===== TYPOGRAPHY ===== */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'Fira Code', 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', 'Consolas', 'Courier New', monospace;
    --font-family-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Font weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* Font sizes */
    --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: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    --font-size-6xl: 3.75rem;   /* 60px */
    
    /* Line heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* ===== SPACING SYSTEM ===== */
    --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-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */
    
    /* ===== BORDER RADIUS ===== */
    --radius-none: 0;
    --radius-sm: 0.125rem;   /* 2px */
    --radius-base: 0.25rem;  /* 4px */
    --radius-md: 0.375rem;   /* 6px */
    --radius-lg: 0.5rem;     /* 8px */
    --radius-xl: 0.75rem;    /* 12px */
    --radius-2xl: 1rem;      /* 16px */
    --radius-3xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* ===== SHADOWS ===== */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-none: 0 0 #0000;
    
    /* Enhanced shadow system */
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hard: 0 10px 40px -10px rgba(0, 0, 0, 0.2), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(99, 102, 241, 0.4);
    --shadow-glow-xl: 0 0 60px rgba(99, 102, 241, 0.5);
    
    /* Colored shadows */
    --shadow-primary: 0 4px 14px 0 rgba(99, 102, 241, 0.25);
    --shadow-secondary: 0 4px 14px 0 rgba(6, 182, 212, 0.25);
    --shadow-success: 0 4px 14px 0 rgba(16, 185, 129, 0.25);
    --shadow-warning: 0 4px 14px 0 rgba(245, 158, 11, 0.25);
    --shadow-error: 0 4px 14px 0 rgba(239, 68, 68, 0.25);
    --shadow-info: 0 4px 14px 0 rgba(59, 130, 246, 0.25);
    
    /* Glass shadows */
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glass-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-glass-active: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-glass-lg: 0 15px 35px 0 rgba(31, 38, 135, 0.4);
    --shadow-glass-xl: 0 25px 50px 0 rgba(31, 38, 135, 0.45);
    
    /* Neumorphism shadows */
    --shadow-neumorphism: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    --shadow-neumorphism-inset: inset 20px 20px 60px #bebebe, inset -20px -20px 60px #ffffff;
    
    /* Floating shadows */
    --shadow-float: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-float-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-float-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Glow effects */
    --shadow-glow-primary: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-glow-secondary: 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-glow-tertiary: 0 0 20px rgba(6, 182, 212, 0.3);
    --shadow-glow-success: 0 0 20px rgba(16, 185, 129, 0.3);
    --shadow-glow-warning: 0 0 20px rgba(245, 158, 11, 0.3);
    --shadow-glow-error: 0 0 20px rgba(239, 68, 68, 0.3);
    
    /* ===== ANIMATIONS ===== */
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    --duration-slower: 0.75s;
    --duration-slowest: 1s;
    --duration-ultra-fast: 0.1s;
    --duration-ultra-slow: 1.5s;
    
    /* Easing functions */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --ease-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
    --ease-quart: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-quint: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-sine: cubic-bezier(0.61, 0, 0.39, 1);
    
    /* Micro-interaction tokens */
    --micro-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --micro-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --micro-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --micro-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --micro-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* ===== Z-INDEX SCALE ===== */
    --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;
    --z-index-toast: 1080;
    
    /* ===== BREAKPOINTS ===== */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* ===== COMPONENT SPECIFIC ===== */
    
    /* Button heights */
    --btn-height-xs: 1.75rem;   /* 28px */
    --btn-height-sm: 2rem;      /* 32px */
    --btn-height-base: 2.5rem;  /* 40px */
    --btn-height-lg: 3rem;      /* 48px */
    --btn-height-xl: 3.5rem;    /* 56px */
    --btn-height-2xl: 4rem;     /* 64px */
    
    /* Button padding */
    --btn-px-xs: 0.75rem;       /* 12px */
    --btn-px-sm: 1rem;          /* 16px */
    --btn-px-base: 1.25rem;     /* 20px */
    --btn-px-lg: 1.5rem;        /* 24px */
    --btn-px-xl: 2rem;          /* 32px */
    
    --btn-py-xs: 0.375rem;      /* 6px */
    --btn-py-sm: 0.5rem;        /* 8px */
    --btn-py-base: 0.625rem;    /* 10px */
    --btn-py-lg: 0.75rem;       /* 12px */
    --btn-py-xl: 1rem;          /* 16px */
    
    /* Input heights */
    --input-height-sm: 2rem;    /* 32px */
    --input-height-base: 2.5rem; /* 40px */
    --input-height-lg: 3rem;    /* 48px */
    
    /* Border widths */
    --border-width-0: 0;
    --border-width-1: 1px;
    --border-width-2: 2px;
    --border-width-4: 4px;
    --border-width-8: 8px;
    
    /* Focus ring */
    --focus-ring-width: 2px;
    --focus-ring-color: var(--accent-primary);
    --focus-ring-offset: 2px;
    --focus-ring-width-thick: 3px;
    --focus-ring-width-thin: 1px;
    --focus-ring-color-success: var(--accent-success);
    --focus-ring-color-warning: var(--accent-warning);
    --focus-ring-color-error: var(--accent-error);
    --focus-ring-color-info: var(--accent-info);
    
    /* Accessibility tokens */
    --a11y-min-touch-target: 44px;
    --a11y-min-contrast-ratio: 4.5;
    --a11y-min-contrast-ratio-large: 3;
    --a11y-min-contrast-ratio-enhanced: 7;
    
    /* Motion preferences */
    --motion-safe: (prefers-reduced-motion: no-preference);
    --motion-reduce: (prefers-reduced-motion: reduce);
    --motion-none: (prefers-reduced-motion: no-preference);
}

/* ===== LIGHT THEME OVERRIDES ===== */
.theme-light {
    --editor-bg: #ffffff;
    --editor-bg-secondary: #f8fafc;
    --editor-bg-tertiary: #f1f5f9;
    --editor-bg-quaternary: #e2e8f0;
    --editor-border: #e2e8f0;
    --editor-border-light: #cbd5e1;
    --editor-text: #1e293b;
    --editor-text-secondary: #64748b;
    --editor-text-tertiary: #94a3b8;
    --editor-text-muted: #cbd5e1;
    
    /* Glass effects for light theme */
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-bg-hover: rgba(0, 0, 0, 0.05);
    --glass-bg-active: rgba(0, 0, 0, 0.08);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    /* Gradients for light theme */
    --gradient-secondary: linear-gradient(135deg, var(--editor-bg) 0%, var(--editor-bg-secondary) 50%, var(--editor-bg) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
}

/* ===== DARK THEME OVERRIDES ===== */
.theme-dark {
    --editor-bg: #0d1117;
    --editor-bg-secondary: #161b22;
    --editor-bg-tertiary: #21262d;
    --editor-bg-quaternary: #30363d;
    --editor-border: #30363d;
    --editor-border-light: #484f58;
    --editor-text: #f0f6fc;
    --editor-text-secondary: #8b949e;
    --editor-text-tertiary: #6e7681;
    --editor-text-muted: #484f58;
    
    /* Glass effects for dark theme */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-bg-active: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
    
    /* Gradients for dark theme */
    --gradient-secondary: linear-gradient(135deg, var(--editor-bg) 0%, var(--editor-bg-secondary) 50%, var(--editor-bg) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-fast: 0.01ms;
        --duration-normal: 0.01ms;
        --duration-slow: 0.01ms;
        --duration-slower: 0.01ms;
        --duration-slowest: 0.01ms;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --editor-border: var(--accent-primary);
        --glass-border: var(--accent-primary);
        --focus-ring-width: 3px;
    }
}
