/* ============================================
   APEX DESIGN SYSTEM
   10 Complete UI Design Variants
   Each design is a completely different visual style
   ============================================ */

/* ============================================
   BASE VARIABLES & TRANSITIONS
   ============================================ */
:root {
    /* Transition for smooth design switching */
    --theme-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Apply smooth transitions to all themed elements */
html {
    transition: background-color var(--theme-transition),
                color var(--theme-transition);
}

body,
.navbar,
.card,
.modern-filter-card,
.modern-table-container,
.stat-card,
.plant-card,
.bms-unit,
.modern-alert,
.footer,
.btn,
.form-control,
.form-select,
input,
select,
textarea {
    transition: background-color var(--theme-transition),
                color var(--theme-transition),
                border-color var(--theme-transition),
                box-shadow var(--theme-transition),
                border-radius var(--theme-transition);
}

/* ============================================
   DESIGN 1: MODERN MINIMAL
   Clean, lots of whitespace, subtle shadows, thin borders, rounded corners
   ============================================ */
[data-theme="minimal"],
:root {
    /* Colors */
    --theme-primary: #6366f1;
    --theme-primary-hover: #4f46e5;
    --theme-primary-light: rgba(99, 102, 241, 0.08);
    --theme-secondary: #8b5cf6;
    --theme-accent: #a78bfa;

    /* Status colors */
    --theme-success: #10b981;
    --theme-success-bg: #ecfdf5;
    --theme-success-text: #065f46;
    --theme-warning: #f59e0b;
    --theme-warning-bg: #fffbeb;
    --theme-warning-text: #92400e;
    --theme-danger: #ef4444;
    --theme-danger-bg: #fef2f2;
    --theme-danger-text: #991b1b;
    --theme-info: #3b82f6;
    --theme-info-bg: #eff6ff;
    --theme-info-text: #1e40af;

    /* Backgrounds */
    --theme-bg: #fafafa;
    --theme-bg-secondary: #f5f5f5;
    --theme-bg-tertiary: #e5e5e5;
    --theme-card-bg: #ffffff;
    --theme-navbar-bg: #ffffff;
    --theme-table-header-bg: #18181b;

    /* Text colors */
    --theme-text: #18181b;
    --theme-text-secondary: #3f3f46;
    --theme-text-muted: #71717a;
    --theme-text-inverse: #ffffff;

    /* Borders */
    --theme-border: #e4e4e7;
    --theme-border-light: #f4f4f5;

    /* Gradients */
    --theme-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --theme-gradient-dark: linear-gradient(135deg, #18181b 0%, #27272a 100%);

    /* Typography */
    --theme-font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --theme-heading-font: 'Inter', system-ui, -apple-system, sans-serif;

    /* Design tokens - MINIMAL */
    --design-border-radius-sm: 6px;
    --design-border-radius: 8px;
    --design-border-radius-lg: 12px;
    --design-border-radius-pill: 9999px;
    --design-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --design-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --design-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
    --design-border-width: 1px;
    --design-spacing-xs: 0.25rem;
    --design-spacing-sm: 0.5rem;
    --design-spacing: 1rem;
    --design-spacing-lg: 1.5rem;
    --design-spacing-xl: 2rem;
    --design-btn-padding: 0.625rem 1.25rem;
    --design-input-padding: 0.625rem 0.875rem;
    --design-card-padding: 1.5rem;

    /* Chart colors */
    --theme-chart-1: #6366f1;
    --theme-chart-2: #8b5cf6;
    --theme-chart-3: #10b981;
    --theme-chart-4: #f59e0b;
    --theme-chart-5: #3b82f6;
    --theme-chart-6: #ef4444;
}

/* ============================================
   DESIGN 2: CORPORATE CLASSIC
   Traditional, sharp corners, defined borders, structured grid, professional
   ============================================ */
[data-theme="corporate"] {
    /* Colors */
    --theme-primary: #1e3a5f;
    --theme-primary-hover: #152c47;
    --theme-primary-light: rgba(30, 58, 95, 0.08);
    --theme-secondary: #2c5282;
    --theme-accent: #4a6fa5;

    /* Status colors */
    --theme-success: #276749;
    --theme-success-bg: #f0fff4;
    --theme-success-text: #22543d;
    --theme-warning: #c05621;
    --theme-warning-bg: #fffaf0;
    --theme-warning-text: #7b341e;
    --theme-danger: #c53030;
    --theme-danger-bg: #fff5f5;
    --theme-danger-text: #742a2a;
    --theme-info: #2b6cb0;
    --theme-info-bg: #ebf8ff;
    --theme-info-text: #2c5282;

    /* Backgrounds */
    --theme-bg: #f7f9fc;
    --theme-bg-secondary: #edf2f7;
    --theme-bg-tertiary: #e2e8f0;
    --theme-card-bg: #ffffff;
    --theme-navbar-bg: #ffffff;
    --theme-table-header-bg: #1e3a5f;

    /* Text colors */
    --theme-text: #1a202c;
    --theme-text-secondary: #2d3748;
    --theme-text-muted: #718096;
    --theme-text-inverse: #ffffff;

    /* Borders */
    --theme-border: #cbd5e0;
    --theme-border-light: #e2e8f0;

    /* Gradients */
    --theme-gradient: linear-gradient(180deg, #1e3a5f 0%, #2c5282 100%);
    --theme-gradient-dark: linear-gradient(180deg, #1a202c 0%, #2d3748 100%);

    /* Typography */
    --theme-font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
    --theme-heading-font: 'Georgia', 'Times New Roman', serif;

    /* Design tokens - CORPORATE */
    --design-border-radius-sm: 2px;
    --design-border-radius: 2px;
    --design-border-radius-lg: 4px;
    --design-border-radius-pill: 2px;
    --design-shadow-sm: none;
    --design-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    --design-shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.15);
    --design-border-width: 2px;
    --design-spacing-xs: 0.25rem;
    --design-spacing-sm: 0.5rem;
    --design-spacing: 1rem;
    --design-spacing-lg: 1.25rem;
    --design-spacing-xl: 1.5rem;
    --design-btn-padding: 0.5rem 1.25rem;
    --design-input-padding: 0.5rem 0.75rem;
    --design-card-padding: 1.25rem;

    /* Chart colors */
    --theme-chart-1: #1e3a5f;
    --theme-chart-2: #2c5282;
    --theme-chart-3: #276749;
    --theme-chart-4: #c05621;
    --theme-chart-5: #4a6fa5;
    --theme-chart-6: #c53030;
}

/* ============================================
   DESIGN 3: GLASSMORPHISM
   Frosted glass effects, blur backgrounds, transparency, soft shadows
   ============================================ */
[data-theme="glass"] {
    /* Colors */
    --theme-primary: #7c3aed;
    --theme-primary-hover: #6d28d9;
    --theme-primary-light: rgba(124, 58, 237, 0.15);
    --theme-secondary: #a78bfa;
    --theme-accent: #c4b5fd;

    /* Status colors */
    --theme-success: #34d399;
    --theme-success-bg: rgba(52, 211, 153, 0.15);
    --theme-success-text: #065f46;
    --theme-warning: #fbbf24;
    --theme-warning-bg: rgba(251, 191, 36, 0.15);
    --theme-warning-text: #92400e;
    --theme-danger: #f87171;
    --theme-danger-bg: rgba(248, 113, 113, 0.15);
    --theme-danger-text: #991b1b;
    --theme-info: #60a5fa;
    --theme-info-bg: rgba(96, 165, 250, 0.15);
    --theme-info-text: #1e40af;

    /* Backgrounds */
    --theme-bg: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --theme-bg-secondary: rgba(255, 255, 255, 0.1);
    --theme-bg-tertiary: rgba(255, 255, 255, 0.05);
    --theme-card-bg: rgba(255, 255, 255, 0.25);
    --theme-navbar-bg: rgba(255, 255, 255, 0.2);
    --theme-table-header-bg: rgba(124, 58, 237, 0.8);

    /* Text colors */
    --theme-text: #1f2937;
    --theme-text-secondary: #374151;
    --theme-text-muted: #4b5563;
    --theme-text-inverse: #ffffff;

    /* Borders */
    --theme-border: rgba(255, 255, 255, 0.3);
    --theme-border-light: rgba(255, 255, 255, 0.2);

    /* Gradients */
    --theme-gradient: linear-gradient(135deg, rgba(124, 58, 237, 0.9) 0%, rgba(167, 139, 250, 0.9) 100%);
    --theme-gradient-dark: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);

    /* Typography */
    --theme-font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    --theme-heading-font: 'Poppins', system-ui, -apple-system, sans-serif;

    /* Design tokens - GLASS */
    --design-border-radius-sm: 12px;
    --design-border-radius: 16px;
    --design-border-radius-lg: 24px;
    --design-border-radius-pill: 9999px;
    --design-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.1);
    --design-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --design-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    --design-border-width: 1px;
    --design-spacing-xs: 0.5rem;
    --design-spacing-sm: 0.75rem;
    --design-spacing: 1.25rem;
    --design-spacing-lg: 2rem;
    --design-spacing-xl: 2.5rem;
    --design-btn-padding: 0.75rem 1.5rem;
    --design-input-padding: 0.75rem 1rem;
    --design-card-padding: 2rem;

    /* Glass-specific */
    --glass-blur: blur(16px);
    --glass-saturate: saturate(180%);

    /* Chart colors */
    --theme-chart-1: #7c3aed;
    --theme-chart-2: #a78bfa;
    --theme-chart-3: #34d399;
    --theme-chart-4: #fbbf24;
    --theme-chart-5: #60a5fa;
    --theme-chart-6: #f87171;
}

/* ============================================
   DESIGN 4: NEUMORPHIC
   Soft UI, extruded/inset elements, subtle shadows creating 3D depth
   ============================================ */
[data-theme="neumorphic"] {
    /* Colors */
    --theme-primary: #6366f1;
    --theme-primary-hover: #4f46e5;
    --theme-primary-light: rgba(99, 102, 241, 0.15);
    --theme-secondary: #8b5cf6;
    --theme-accent: #a78bfa;

    /* Status colors */
    --theme-success: #22c55e;
    --theme-success-bg: #e0e5ec;
    --theme-success-text: #15803d;
    --theme-warning: #eab308;
    --theme-warning-bg: #e0e5ec;
    --theme-warning-text: #a16207;
    --theme-danger: #ef4444;
    --theme-danger-bg: #e0e5ec;
    --theme-danger-text: #b91c1c;
    --theme-info: #3b82f6;
    --theme-info-bg: #e0e5ec;
    --theme-info-text: #1d4ed8;

    /* Backgrounds - soft gray for neumorphic effect */
    --theme-bg: #e0e5ec;
    --theme-bg-secondary: #e0e5ec;
    --theme-bg-tertiary: #d1d9e6;
    --theme-card-bg: #e0e5ec;
    --theme-navbar-bg: #e0e5ec;
    --theme-table-header-bg: #4f46e5;

    /* Text colors */
    --theme-text: #2d3748;
    --theme-text-secondary: #4a5568;
    --theme-text-muted: #718096;
    --theme-text-inverse: #ffffff;

    /* Borders */
    --theme-border: transparent;
    --theme-border-light: transparent;

    /* Gradients */
    --theme-gradient: linear-gradient(145deg, #6366f1, #4f46e5);
    --theme-gradient-dark: linear-gradient(145deg, #3f3f46, #27272a);

    /* Typography */
    --theme-font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    --theme-heading-font: 'Nunito', system-ui, -apple-system, sans-serif;

    /* Design tokens - NEUMORPHIC */
    --design-border-radius-sm: 10px;
    --design-border-radius: 15px;
    --design-border-radius-lg: 20px;
    --design-border-radius-pill: 50px;
    --design-shadow-sm: 5px 5px 10px #a3b1c6, -5px -5px 10px #ffffff;
    --design-shadow: 8px 8px 16px #a3b1c6, -8px -8px 16px #ffffff;
    --design-shadow-lg: 12px 12px 24px #a3b1c6, -12px -12px 24px #ffffff;
    --design-shadow-inset: inset 5px 5px 10px #a3b1c6, inset -5px -5px 10px #ffffff;
    --design-border-width: 0;
    --design-spacing-xs: 0.5rem;
    --design-spacing-sm: 0.75rem;
    --design-spacing: 1.25rem;
    --design-spacing-lg: 1.75rem;
    --design-spacing-xl: 2.25rem;
    --design-btn-padding: 0.875rem 1.75rem;
    --design-input-padding: 0.875rem 1.25rem;
    --design-card-padding: 1.75rem;

    /* Chart colors */
    --theme-chart-1: #6366f1;
    --theme-chart-2: #8b5cf6;
    --theme-chart-3: #22c55e;
    --theme-chart-4: #eab308;
    --theme-chart-5: #3b82f6;
    --theme-chart-6: #ef4444;
}

/* ============================================
   DESIGN 5: BOLD & VIBRANT
   Strong colors, chunky elements, thick borders, playful rounded shapes
   ============================================ */
[data-theme="bold"] {
    /* Colors */
    --theme-primary: #e11d48;
    --theme-primary-hover: #be123c;
    --theme-primary-light: rgba(225, 29, 72, 0.12);
    --theme-secondary: #f97316;
    --theme-accent: #fbbf24;

    /* Status colors */
    --theme-success: #16a34a;
    --theme-success-bg: #dcfce7;
    --theme-success-text: #14532d;
    --theme-warning: #f97316;
    --theme-warning-bg: #ffedd5;
    --theme-warning-text: #7c2d12;
    --theme-danger: #dc2626;
    --theme-danger-bg: #fee2e2;
    --theme-danger-text: #7f1d1d;
    --theme-info: #2563eb;
    --theme-info-bg: #dbeafe;
    --theme-info-text: #1e3a8a;

    /* Backgrounds */
    --theme-bg: #fef7cd;
    --theme-bg-secondary: #fef3c7;
    --theme-bg-tertiary: #fde68a;
    --theme-card-bg: #ffffff;
    --theme-navbar-bg: #ffffff;
    --theme-table-header-bg: #e11d48;

    /* Text colors */
    --theme-text: #1c1917;
    --theme-text-secondary: #292524;
    --theme-text-muted: #57534e;
    --theme-text-inverse: #ffffff;

    /* Borders */
    --theme-border: #1c1917;
    --theme-border-light: #d6d3d1;

    /* Gradients */
    --theme-gradient: linear-gradient(135deg, #e11d48 0%, #f97316 100%);
    --theme-gradient-dark: linear-gradient(135deg, #1c1917 0%, #292524 100%);

    /* Typography */
    --theme-font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
    --theme-heading-font: 'Fredoka', 'Nunito', system-ui, sans-serif;

    /* Design tokens - BOLD */
    --design-border-radius-sm: 12px;
    --design-border-radius: 16px;
    --design-border-radius-lg: 24px;
    --design-border-radius-pill: 9999px;
    --design-shadow-sm: 4px 4px 0 #1c1917;
    --design-shadow: 6px 6px 0 #1c1917;
    --design-shadow-lg: 8px 8px 0 #1c1917;
    --design-border-width: 3px;
    --design-spacing-xs: 0.5rem;
    --design-spacing-sm: 0.75rem;
    --design-spacing: 1.25rem;
    --design-spacing-lg: 2rem;
    --design-spacing-xl: 2.5rem;
    --design-btn-padding: 1rem 2rem;
    --design-input-padding: 0.875rem 1.25rem;
    --design-card-padding: 2rem;

    /* Chart colors */
    --theme-chart-1: #e11d48;
    --theme-chart-2: #f97316;
    --theme-chart-3: #16a34a;
    --theme-chart-4: #fbbf24;
    --theme-chart-5: #2563eb;
    --theme-chart-6: #dc2626;
}

/* ============================================
   DESIGN 6: DARK FUTURISTIC
   Dark backgrounds, neon accents, angular shapes, tech/cyber aesthetic
   ============================================ */
[data-theme="futuristic"] {
    /* Colors */
    --theme-primary: #00ff88;
    --theme-primary-hover: #00cc6a;
    --theme-primary-light: rgba(0, 255, 136, 0.12);
    --theme-secondary: #00d4ff;
    --theme-accent: #ff00ff;

    /* Status colors */
    --theme-success: #00ff88;
    --theme-success-bg: rgba(0, 255, 136, 0.12);
    --theme-success-text: #00ff88;
    --theme-warning: #ffff00;
    --theme-warning-bg: rgba(255, 255, 0, 0.12);
    --theme-warning-text: #ffff00;
    --theme-danger: #ff0055;
    --theme-danger-bg: rgba(255, 0, 85, 0.12);
    --theme-danger-text: #ff0055;
    --theme-info: #00d4ff;
    --theme-info-bg: rgba(0, 212, 255, 0.12);
    --theme-info-text: #00d4ff;

    /* Backgrounds */
    --theme-bg: #0a0a0f;
    --theme-bg-secondary: #12121a;
    --theme-bg-tertiary: #1a1a24;
    --theme-card-bg: #12121a;
    --theme-navbar-bg: rgba(10, 10, 15, 0.95);
    --theme-table-header-bg: #1a1a24;

    /* Text colors */
    --theme-text: #e0e0e0;
    --theme-text-secondary: #00ff88;
    --theme-text-muted: #666677;
    --theme-text-inverse: #0a0a0f;

    /* Borders */
    --theme-border: #00ff8833;
    --theme-border-light: #1a1a24;

    /* Gradients */
    --theme-gradient: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    --theme-gradient-dark: linear-gradient(135deg, #1a1a24 0%, #0a0a0f 100%);

    /* Typography */
    --theme-font-family: 'JetBrains Mono', 'Fira Code', monospace;
    --theme-heading-font: 'Orbitron', 'JetBrains Mono', monospace;

    /* Design tokens - FUTURISTIC */
    --design-border-radius-sm: 0;
    --design-border-radius: 0;
    --design-border-radius-lg: 0;
    --design-border-radius-pill: 0;
    --design-shadow-sm: 0 0 10px rgba(0, 255, 136, 0.2);
    --design-shadow: 0 0 20px rgba(0, 255, 136, 0.3), inset 0 0 20px rgba(0, 255, 136, 0.05);
    --design-shadow-lg: 0 0 40px rgba(0, 255, 136, 0.4), 0 0 60px rgba(0, 212, 255, 0.2);
    --design-border-width: 1px;
    --design-spacing-xs: 0.5rem;
    --design-spacing-sm: 0.75rem;
    --design-spacing: 1.25rem;
    --design-spacing-lg: 1.75rem;
    --design-spacing-xl: 2.25rem;
    --design-btn-padding: 0.75rem 1.5rem;
    --design-input-padding: 0.75rem 1rem;
    --design-card-padding: 1.5rem;

    /* Neon glow */
    --neon-glow: 0 0 5px var(--theme-primary), 0 0 10px var(--theme-primary), 0 0 20px var(--theme-primary);

    /* Chart colors */
    --theme-chart-1: #00ff88;
    --theme-chart-2: #00d4ff;
    --theme-chart-3: #ff00ff;
    --theme-chart-4: #ffff00;
    --theme-chart-5: #ff0055;
    --theme-chart-6: #8844ff;
}

/* ============================================
   DESIGN 7: SOFT & FRIENDLY
   Very rounded (pill shapes), pastel colors, large spacing, approachable
   ============================================ */
[data-theme="soft"] {
    /* Colors */
    --theme-primary: #8b5cf6;
    --theme-primary-hover: #7c3aed;
    --theme-primary-light: rgba(139, 92, 246, 0.1);
    --theme-secondary: #ec4899;
    --theme-accent: #f472b6;

    /* Status colors */
    --theme-success: #34d399;
    --theme-success-bg: #d1fae5;
    --theme-success-text: #065f46;
    --theme-warning: #fbbf24;
    --theme-warning-bg: #fef3c7;
    --theme-warning-text: #92400e;
    --theme-danger: #fb7185;
    --theme-danger-bg: #ffe4e6;
    --theme-danger-text: #9f1239;
    --theme-info: #60a5fa;
    --theme-info-bg: #dbeafe;
    --theme-info-text: #1e40af;

    /* Backgrounds */
    --theme-bg: #fdf4ff;
    --theme-bg-secondary: #fae8ff;
    --theme-bg-tertiary: #f5d0fe;
    --theme-card-bg: #ffffff;
    --theme-navbar-bg: #ffffff;
    --theme-table-header-bg: #8b5cf6;

    /* Text colors */
    --theme-text: #581c87;
    --theme-text-secondary: #6b21a8;
    --theme-text-muted: #a855f7;
    --theme-text-inverse: #ffffff;

    /* Borders */
    --theme-border: #e9d5ff;
    --theme-border-light: #f3e8ff;

    /* Gradients */
    --theme-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --theme-gradient-dark: linear-gradient(135deg, #581c87 0%, #831843 100%);

    /* Typography */
    --theme-font-family: 'Quicksand', 'Nunito', system-ui, sans-serif;
    --theme-heading-font: 'Quicksand', 'Nunito', system-ui, sans-serif;

    /* Design tokens - SOFT */
    --design-border-radius-sm: 16px;
    --design-border-radius: 24px;
    --design-border-radius-lg: 32px;
    --design-border-radius-pill: 9999px;
    --design-shadow-sm: 0 2px 8px rgba(139, 92, 246, 0.08);
    --design-shadow: 0 4px 16px rgba(139, 92, 246, 0.1);
    --design-shadow-lg: 0 8px 32px rgba(139, 92, 246, 0.15);
    --design-border-width: 0;
    --design-spacing-xs: 0.75rem;
    --design-spacing-sm: 1rem;
    --design-spacing: 1.5rem;
    --design-spacing-lg: 2.5rem;
    --design-spacing-xl: 3rem;
    --design-btn-padding: 1rem 2rem;
    --design-input-padding: 1rem 1.5rem;
    --design-card-padding: 2.5rem;

    /* Chart colors */
    --theme-chart-1: #8b5cf6;
    --theme-chart-2: #ec4899;
    --theme-chart-3: #34d399;
    --theme-chart-4: #fbbf24;
    --theme-chart-5: #60a5fa;
    --theme-chart-6: #fb7185;
}

/* ============================================
   DESIGN 8: FLAT MATERIAL
   Material Design inspired, flat colors, subtle elevation, ripple effects
   ============================================ */
[data-theme="material"] {
    /* Colors */
    --theme-primary: #1976d2;
    --theme-primary-hover: #1565c0;
    --theme-primary-light: rgba(25, 118, 210, 0.08);
    --theme-secondary: #9c27b0;
    --theme-accent: #00bcd4;

    /* Status colors */
    --theme-success: #4caf50;
    --theme-success-bg: #e8f5e9;
    --theme-success-text: #1b5e20;
    --theme-warning: #ff9800;
    --theme-warning-bg: #fff3e0;
    --theme-warning-text: #e65100;
    --theme-danger: #f44336;
    --theme-danger-bg: #ffebee;
    --theme-danger-text: #b71c1c;
    --theme-info: #2196f3;
    --theme-info-bg: #e3f2fd;
    --theme-info-text: #0d47a1;

    /* Backgrounds */
    --theme-bg: #fafafa;
    --theme-bg-secondary: #f5f5f5;
    --theme-bg-tertiary: #eeeeee;
    --theme-card-bg: #ffffff;
    --theme-navbar-bg: #1976d2;
    --theme-table-header-bg: #1976d2;

    /* Text colors */
    --theme-text: rgba(0, 0, 0, 0.87);
    --theme-text-secondary: rgba(0, 0, 0, 0.6);
    --theme-text-muted: rgba(0, 0, 0, 0.38);
    --theme-text-inverse: #ffffff;

    /* Borders */
    --theme-border: rgba(0, 0, 0, 0.12);
    --theme-border-light: rgba(0, 0, 0, 0.06);

    /* Gradients */
    --theme-gradient: #1976d2;
    --theme-gradient-dark: #0d47a1;

    /* Typography */
    --theme-font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    --theme-heading-font: 'Roboto', system-ui, -apple-system, sans-serif;

    /* Design tokens - MATERIAL */
    --design-border-radius-sm: 4px;
    --design-border-radius: 4px;
    --design-border-radius-lg: 8px;
    --design-border-radius-pill: 16px;
    --design-shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --design-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --design-shadow-lg: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --design-border-width: 0;
    --design-spacing-xs: 0.25rem;
    --design-spacing-sm: 0.5rem;
    --design-spacing: 1rem;
    --design-spacing-lg: 1.5rem;
    --design-spacing-xl: 2rem;
    --design-btn-padding: 0.5rem 1rem;
    --design-input-padding: 0.75rem 0.75rem;
    --design-card-padding: 1rem;

    /* Chart colors */
    --theme-chart-1: #1976d2;
    --theme-chart-2: #9c27b0;
    --theme-chart-3: #4caf50;
    --theme-chart-4: #ff9800;
    --theme-chart-5: #00bcd4;
    --theme-chart-6: #f44336;
}

/* ============================================
   DESIGN 9: BRUTALIST
   Raw, bold typography, stark contrasts, unconventional, artistic
   ============================================ */
[data-theme="brutalist"] {
    /* Colors */
    --theme-primary: #000000;
    --theme-primary-hover: #333333;
    --theme-primary-light: rgba(0, 0, 0, 0.05);
    --theme-secondary: #ff0000;
    --theme-accent: #0000ff;

    /* Status colors */
    --theme-success: #00ff00;
    --theme-success-bg: #ffffff;
    --theme-success-text: #000000;
    --theme-warning: #ffff00;
    --theme-warning-bg: #ffffff;
    --theme-warning-text: #000000;
    --theme-danger: #ff0000;
    --theme-danger-bg: #ffffff;
    --theme-danger-text: #000000;
    --theme-info: #0000ff;
    --theme-info-bg: #ffffff;
    --theme-info-text: #000000;

    /* Backgrounds */
    --theme-bg: #ffffff;
    --theme-bg-secondary: #ffffff;
    --theme-bg-tertiary: #f0f0f0;
    --theme-card-bg: #ffffff;
    --theme-navbar-bg: #ffffff;
    --theme-table-header-bg: #000000;

    /* Text colors */
    --theme-text: #000000;
    --theme-text-secondary: #000000;
    --theme-text-muted: #666666;
    --theme-text-inverse: #ffffff;

    /* Borders */
    --theme-border: #000000;
    --theme-border-light: #000000;

    /* Gradients */
    --theme-gradient: #000000;
    --theme-gradient-dark: #000000;

    /* Typography */
    --theme-font-family: 'Courier New', 'Courier', monospace;
    --theme-heading-font: 'Impact', 'Arial Black', sans-serif;

    /* Design tokens - BRUTALIST */
    --design-border-radius-sm: 0;
    --design-border-radius: 0;
    --design-border-radius-lg: 0;
    --design-border-radius-pill: 0;
    --design-shadow-sm: none;
    --design-shadow: none;
    --design-shadow-lg: none;
    --design-border-width: 3px;
    --design-spacing-xs: 0.5rem;
    --design-spacing-sm: 1rem;
    --design-spacing: 1.5rem;
    --design-spacing-lg: 2rem;
    --design-spacing-xl: 3rem;
    --design-btn-padding: 0.75rem 1.5rem;
    --design-input-padding: 0.75rem 1rem;
    --design-card-padding: 1.5rem;

    /* Chart colors */
    --theme-chart-1: #000000;
    --theme-chart-2: #ff0000;
    --theme-chart-3: #00ff00;
    --theme-chart-4: #0000ff;
    --theme-chart-5: #ffff00;
    --theme-chart-6: #ff00ff;
}

/* ============================================
   DESIGN 10: ELEGANT LUXURY
   Refined, serif fonts for headings, gold/dark accents, sophisticated spacing
   ============================================ */
[data-theme="luxury"] {
    /* Colors */
    --theme-primary: #b8860b;
    --theme-primary-hover: #996f0a;
    --theme-primary-light: rgba(184, 134, 11, 0.08);
    --theme-secondary: #1a1a2e;
    --theme-accent: #d4af37;

    /* Status colors */
    --theme-success: #2e7d32;
    --theme-success-bg: #f1f8e9;
    --theme-success-text: #1b5e20;
    --theme-warning: #f9a825;
    --theme-warning-bg: #fffde7;
    --theme-warning-text: #f57f17;
    --theme-danger: #c62828;
    --theme-danger-bg: #ffebee;
    --theme-danger-text: #b71c1c;
    --theme-info: #1565c0;
    --theme-info-bg: #e3f2fd;
    --theme-info-text: #0d47a1;

    /* Backgrounds */
    --theme-bg: #faf9f7;
    --theme-bg-secondary: #f5f4f0;
    --theme-bg-tertiary: #eceae4;
    --theme-card-bg: #ffffff;
    --theme-navbar-bg: #1a1a2e;
    --theme-table-header-bg: #1a1a2e;

    /* Text colors */
    --theme-text: #1a1a2e;
    --theme-text-secondary: #3d3d5c;
    --theme-text-muted: #6b6b8a;
    --theme-text-inverse: #f5f4f0;

    /* Borders */
    --theme-border: #d4af37;
    --theme-border-light: #e8e4db;

    /* Gradients */
    --theme-gradient: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
    --theme-gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);

    /* Typography */
    --theme-font-family: 'Cormorant Garamond', 'Georgia', serif;
    --theme-heading-font: 'Playfair Display', 'Georgia', serif;

    /* Design tokens - LUXURY */
    --design-border-radius-sm: 2px;
    --design-border-radius: 4px;
    --design-border-radius-lg: 6px;
    --design-border-radius-pill: 4px;
    --design-shadow-sm: 0 2px 4px rgba(26, 26, 46, 0.04);
    --design-shadow: 0 4px 12px rgba(26, 26, 46, 0.06);
    --design-shadow-lg: 0 8px 24px rgba(26, 26, 46, 0.08);
    --design-border-width: 1px;
    --design-spacing-xs: 0.5rem;
    --design-spacing-sm: 1rem;
    --design-spacing: 1.5rem;
    --design-spacing-lg: 2.5rem;
    --design-spacing-xl: 3.5rem;
    --design-btn-padding: 0.875rem 2rem;
    --design-input-padding: 0.875rem 1.25rem;
    --design-card-padding: 2.5rem;

    /* Chart colors */
    --theme-chart-1: #b8860b;
    --theme-chart-2: #1a1a2e;
    --theme-chart-3: #2e7d32;
    --theme-chart-4: #d4af37;
    --theme-chart-5: #1565c0;
    --theme-chart-6: #c62828;
}


/* ============================================
   DESIGN-SPECIFIC COMPONENT STYLES
   ============================================ */

/* === BODY & PAGE BACKGROUND === */
html[data-theme] body {
    background-color: var(--theme-bg);
    color: var(--theme-text);
    font-family: var(--theme-font-family);
}

/* Glass specific body background */
html[data-theme="glass"] body {
    background: var(--theme-bg);
    background-attachment: fixed;
    min-height: 100vh;
}

/* === BUTTONS === */

/* Base button styles using design tokens */
html[data-theme] .btn,
html[data-theme] .modern-btn {
    border-radius: var(--design-border-radius);
    padding: var(--design-btn-padding);
    border-width: var(--design-border-width);
    font-weight: 600;
    transition: all 0.2s ease;
}

html[data-theme] .btn-primary,
html[data-theme] .modern-btn-primary {
    background: var(--theme-gradient);
    border-color: var(--theme-primary);
    color: var(--theme-text-inverse);
    box-shadow: var(--design-shadow-sm);
}

html[data-theme] .btn-primary:hover,
html[data-theme] .modern-btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: var(--design-shadow);
    transform: translateY(-1px);
}

html[data-theme] .btn-secondary,
html[data-theme] .modern-btn-secondary {
    background: var(--theme-card-bg);
    border-color: var(--theme-border);
    color: var(--theme-text-secondary);
}

html[data-theme] .btn-outline-primary {
    background: transparent;
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

html[data-theme] .btn-outline-primary:hover {
    background: var(--theme-primary);
    color: var(--theme-text-inverse);
}

/* Corporate buttons - sharp, professional */
html[data-theme="corporate"] .btn,
html[data-theme="corporate"] .modern-btn {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    border-style: solid;
}

/* Neumorphic buttons */
html[data-theme="neumorphic"] .btn,
html[data-theme="neumorphic"] .modern-btn {
    box-shadow: var(--design-shadow);
    border: none;
    background: var(--theme-bg);
}

html[data-theme="neumorphic"] .btn:hover,
html[data-theme="neumorphic"] .modern-btn:hover {
    box-shadow: var(--design-shadow-lg);
}

html[data-theme="neumorphic"] .btn:active,
html[data-theme="neumorphic"] .modern-btn:active {
    box-shadow: var(--design-shadow-inset);
}

html[data-theme="neumorphic"] .btn-primary,
html[data-theme="neumorphic"] .modern-btn-primary {
    background: var(--theme-gradient);
    box-shadow: var(--design-shadow), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Bold buttons - chunky with offset shadow */
html[data-theme="bold"] .btn,
html[data-theme="bold"] .modern-btn {
    border: var(--design-border-width) solid var(--theme-border);
    box-shadow: var(--design-shadow);
    font-weight: 700;
    text-transform: uppercase;
}

html[data-theme="bold"] .btn:hover,
html[data-theme="bold"] .modern-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--design-shadow-lg);
}

html[data-theme="bold"] .btn:active,
html[data-theme="bold"] .modern-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--theme-border);
}

/* Futuristic buttons - neon glow */
html[data-theme="futuristic"] .btn,
html[data-theme="futuristic"] .modern-btn {
    background: transparent;
    border: 1px solid var(--theme-primary);
    color: var(--theme-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

html[data-theme="futuristic"] .btn:hover,
html[data-theme="futuristic"] .modern-btn:hover {
    background: var(--theme-primary);
    color: var(--theme-text-inverse);
    box-shadow: var(--neon-glow);
}

html[data-theme="futuristic"] .btn-primary,
html[data-theme="futuristic"] .modern-btn-primary {
    background: var(--theme-primary);
    color: var(--theme-text-inverse);
    box-shadow: var(--design-shadow);
}

/* Soft buttons - pill shaped */
html[data-theme="soft"] .btn,
html[data-theme="soft"] .modern-btn {
    border-radius: var(--design-border-radius-pill);
    font-weight: 600;
}

/* Material buttons - flat with ripple effect setup */
html[data-theme="material"] .btn,
html[data-theme="material"] .modern-btn {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

html[data-theme="material"] .btn:hover {
    box-shadow: var(--design-shadow);
}

/* Brutalist buttons - raw, stark */
html[data-theme="brutalist"] .btn,
html[data-theme="brutalist"] .modern-btn {
    border: var(--design-border-width) solid var(--theme-border);
    background: var(--theme-card-bg);
    color: var(--theme-text);
    text-transform: uppercase;
    font-weight: 700;
}

html[data-theme="brutalist"] .btn:hover,
html[data-theme="brutalist"] .modern-btn:hover {
    background: var(--theme-text);
    color: var(--theme-card-bg);
}

html[data-theme="brutalist"] .btn-primary,
html[data-theme="brutalist"] .modern-btn-primary {
    background: var(--theme-text);
    color: var(--theme-card-bg);
}

/* Luxury buttons - refined, elegant */
html[data-theme="luxury"] .btn,
html[data-theme="luxury"] .modern-btn {
    letter-spacing: 1px;
    font-weight: 500;
    border: 1px solid var(--theme-border);
}

html[data-theme="luxury"] .btn-primary,
html[data-theme="luxury"] .modern-btn-primary {
    background: var(--theme-gradient);
    border-color: var(--theme-primary);
}

/* Glass buttons */
html[data-theme="glass"] .btn,
html[data-theme="glass"] .modern-btn {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

html[data-theme="glass"] .btn-primary,
html[data-theme="glass"] .modern-btn-primary {
    background: var(--theme-gradient);
    border-color: transparent;
}


/* === FORM CONTROLS === */

html[data-theme] .form-control,
html[data-theme] .form-select,
html[data-theme] .modern-form-control,
html[data-theme] .modern-form-select {
    border-radius: var(--design-border-radius);
    padding: var(--design-input-padding);
    border-width: var(--design-border-width);
    border-color: var(--theme-border);
    background-color: var(--theme-card-bg);
    color: var(--theme-text);
    transition: all 0.2s ease;
}

html[data-theme] .form-control:focus,
html[data-theme] .form-select:focus,
html[data-theme] .modern-form-control:focus,
html[data-theme] .modern-form-select:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-light);
    outline: none;
}

/* Neumorphic inputs */
html[data-theme="neumorphic"] .form-control,
html[data-theme="neumorphic"] .form-select,
html[data-theme="neumorphic"] .modern-form-control,
html[data-theme="neumorphic"] .modern-form-select {
    border: none;
    box-shadow: var(--design-shadow-inset);
    background: var(--theme-bg);
}

html[data-theme="neumorphic"] .form-control:focus,
html[data-theme="neumorphic"] .form-select:focus {
    box-shadow: var(--design-shadow-inset), 0 0 0 2px var(--theme-primary-light);
}

/* Bold inputs */
html[data-theme="bold"] .form-control,
html[data-theme="bold"] .form-select,
html[data-theme="bold"] .modern-form-control,
html[data-theme="bold"] .modern-form-select {
    border: var(--design-border-width) solid var(--theme-border);
    box-shadow: 3px 3px 0 var(--theme-border);
}

html[data-theme="bold"] .form-control:focus,
html[data-theme="bold"] .form-select:focus {
    box-shadow: 4px 4px 0 var(--theme-primary);
    border-color: var(--theme-primary);
}

/* Futuristic inputs */
html[data-theme="futuristic"] .form-control,
html[data-theme="futuristic"] .form-select,
html[data-theme="futuristic"] .modern-form-control,
html[data-theme="futuristic"] .modern-form-select {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
}

html[data-theme="futuristic"] .form-control:focus,
html[data-theme="futuristic"] .form-select:focus {
    border-color: var(--theme-primary);
    box-shadow: var(--design-shadow-sm);
    background: rgba(0, 255, 136, 0.1);
}

/* Brutalist inputs */
html[data-theme="brutalist"] .form-control,
html[data-theme="brutalist"] .form-select,
html[data-theme="brutalist"] .modern-form-control,
html[data-theme="brutalist"] .modern-form-select {
    border: var(--design-border-width) solid var(--theme-border);
}

/* Glass inputs */
html[data-theme="glass"] .form-control,
html[data-theme="glass"] .form-select,
html[data-theme="glass"] .modern-form-control,
html[data-theme="glass"] .modern-form-select {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Soft inputs - extra rounded */
html[data-theme="soft"] .form-control,
html[data-theme="soft"] .form-select,
html[data-theme="soft"] .modern-form-control,
html[data-theme="soft"] .modern-form-select {
    border-radius: var(--design-border-radius-lg);
}


/* === CARDS === */

html[data-theme] .card,
html[data-theme] .modern-filter-card,
html[data-theme] .stat-card,
html[data-theme] .plant-card {
    border-radius: var(--design-border-radius-lg);
    background-color: var(--theme-card-bg);
    border: var(--design-border-width) solid var(--theme-border);
    box-shadow: var(--design-shadow);
    padding: var(--design-card-padding);
}

html[data-theme] .card-header {
    background-color: var(--theme-bg-secondary);
    border-bottom: var(--design-border-width) solid var(--theme-border);
    border-radius: var(--design-border-radius-lg) var(--design-border-radius-lg) 0 0;
}

/* Neumorphic cards */
html[data-theme="neumorphic"] .card,
html[data-theme="neumorphic"] .modern-filter-card,
html[data-theme="neumorphic"] .stat-card,
html[data-theme="neumorphic"] .plant-card {
    border: none;
    box-shadow: var(--design-shadow);
    background: var(--theme-bg);
}

/* Bold cards */
html[data-theme="bold"] .card,
html[data-theme="bold"] .modern-filter-card,
html[data-theme="bold"] .stat-card,
html[data-theme="bold"] .plant-card {
    border: var(--design-border-width) solid var(--theme-border);
    box-shadow: var(--design-shadow);
}

html[data-theme="bold"] .card:hover,
html[data-theme="bold"] .modern-filter-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--design-shadow-lg);
}

/* Futuristic cards */
html[data-theme="futuristic"] .card,
html[data-theme="futuristic"] .modern-filter-card,
html[data-theme="futuristic"] .stat-card,
html[data-theme="futuristic"] .plant-card {
    border: 1px solid var(--theme-border);
    box-shadow: var(--design-shadow);
    background: var(--theme-card-bg);
}

html[data-theme="futuristic"] .card:hover,
html[data-theme="futuristic"] .modern-filter-card:hover {
    box-shadow: var(--design-shadow-lg);
    border-color: var(--theme-primary);
}

/* Glass cards */
html[data-theme="glass"] .card,
html[data-theme="glass"] .modern-filter-card,
html[data-theme="glass"] .stat-card,
html[data-theme="glass"] .plant-card {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    box-shadow: var(--design-shadow);
}

/* Brutalist cards */
html[data-theme="brutalist"] .card,
html[data-theme="brutalist"] .modern-filter-card,
html[data-theme="brutalist"] .stat-card,
html[data-theme="brutalist"] .plant-card {
    border: var(--design-border-width) solid var(--theme-border);
    box-shadow: none;
}

/* Corporate cards */
html[data-theme="corporate"] .card,
html[data-theme="corporate"] .modern-filter-card,
html[data-theme="corporate"] .stat-card,
html[data-theme="corporate"] .plant-card {
    border: var(--design-border-width) solid var(--theme-border);
}

/* Luxury cards */
html[data-theme="luxury"] .card,
html[data-theme="luxury"] .modern-filter-card,
html[data-theme="luxury"] .stat-card,
html[data-theme="luxury"] .plant-card {
    border: 1px solid var(--theme-border-light);
    border-top: 3px solid var(--theme-primary);
}

/* Soft cards */
html[data-theme="soft"] .card,
html[data-theme="soft"] .modern-filter-card,
html[data-theme="soft"] .stat-card,
html[data-theme="soft"] .plant-card {
    border: none;
    box-shadow: var(--design-shadow);
}


/* === TABLES === */

html[data-theme] .modern-table-container {
    border-radius: var(--design-border-radius-lg);
    box-shadow: var(--design-shadow);
    background: var(--theme-card-bg);
    overflow: hidden;
}

html[data-theme] .modern-table {
    margin-bottom: 0;
}

html[data-theme] .modern-table thead {
    background: var(--theme-gradient-dark);
    background-color: var(--theme-table-header-bg) !important;
}

html[data-theme] .modern-table thead th,
html[data-theme] .modern-table thead th a {
    color: var(--theme-text-inverse) !important;
    padding: var(--design-spacing);
    font-weight: 600;
    border: none;
}

html[data-theme] .modern-table tbody tr {
    border-bottom: 1px solid var(--theme-border-light);
}

html[data-theme] .modern-table tbody tr:hover {
    background-color: var(--theme-bg-secondary);
}

html[data-theme] .modern-table tbody td {
    padding: var(--design-spacing);
    color: var(--theme-text-secondary);
    vertical-align: middle;
}

html[data-theme] .modern-table tfoot {
    background: var(--theme-bg-secondary);
}

html[data-theme] .modern-table tfoot th {
    padding: var(--design-spacing);
    border-top: 2px solid var(--theme-border);
}

/* Neumorphic tables */
html[data-theme="neumorphic"] .modern-table-container {
    box-shadow: var(--design-shadow);
}

html[data-theme="neumorphic"] .modern-table thead {
    box-shadow: var(--design-shadow-sm);
}

/* Bold tables */
html[data-theme="bold"] .modern-table-container {
    border: var(--design-border-width) solid var(--theme-border);
    box-shadow: var(--design-shadow);
}

html[data-theme="bold"] .modern-table tbody tr {
    border-bottom: 2px solid var(--theme-border);
}

/* Futuristic tables */
html[data-theme="futuristic"] .modern-table-container {
    border: 1px solid var(--theme-border);
}

html[data-theme="futuristic"] .modern-table thead {
    border-bottom: 1px solid var(--theme-primary);
}

html[data-theme="futuristic"] .modern-table tbody tr:hover {
    background: rgba(0, 255, 136, 0.05);
}

/* Glass tables */
html[data-theme="glass"] .modern-table-container {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: var(--theme-card-bg);
}

/* Brutalist tables */
html[data-theme="brutalist"] .modern-table-container {
    border: var(--design-border-width) solid var(--theme-border);
    box-shadow: none;
}

html[data-theme="brutalist"] .modern-table tbody tr {
    border-bottom: var(--design-border-width) solid var(--theme-border);
}


/* === ALERTS === */

html[data-theme] .alert,
html[data-theme] .modern-alert {
    border-radius: var(--design-border-radius);
    padding: var(--design-spacing);
    border-width: var(--design-border-width);
}

html[data-theme] .alert-success,
html[data-theme] .modern-alert-success {
    background: var(--theme-success-bg);
    color: var(--theme-success-text);
    border-color: var(--theme-success);
}

html[data-theme] .alert-warning,
html[data-theme] .modern-alert-warning {
    background: var(--theme-warning-bg);
    color: var(--theme-warning-text);
    border-color: var(--theme-warning);
}

html[data-theme] .alert-danger,
html[data-theme] .modern-alert-danger {
    background: var(--theme-danger-bg);
    color: var(--theme-danger-text);
    border-color: var(--theme-danger);
}

html[data-theme] .alert-info,
html[data-theme] .modern-alert-info {
    background: var(--theme-info-bg);
    color: var(--theme-info-text);
    border-color: var(--theme-info);
}

/* Bold alerts */
html[data-theme="bold"] .alert,
html[data-theme="bold"] .modern-alert {
    border: var(--design-border-width) solid currentColor;
    box-shadow: 4px 4px 0 currentColor;
}

/* Futuristic alerts */
html[data-theme="futuristic"] .alert,
html[data-theme="futuristic"] .modern-alert {
    border-left: 3px solid currentColor;
    background: var(--theme-bg-secondary);
}

/* Neumorphic alerts */
html[data-theme="neumorphic"] .alert,
html[data-theme="neumorphic"] .modern-alert {
    border: none;
    box-shadow: var(--design-shadow);
}

/* Glass alerts */
html[data-theme="glass"] .alert,
html[data-theme="glass"] .modern-alert {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Brutalist alerts */
html[data-theme="brutalist"] .alert,
html[data-theme="brutalist"] .modern-alert {
    border: var(--design-border-width) solid var(--theme-border);
}


/* === BADGES === */

html[data-theme] .badge,
html[data-theme] .modern-badge,
html[data-theme] .status-badge {
    border-radius: var(--design-border-radius-sm);
    padding: 0.35rem 0.75rem;
    font-weight: 600;
}

html[data-theme] .modern-badge-success {
    background: var(--theme-success-bg);
    color: var(--theme-success-text);
}

html[data-theme] .modern-badge-warning {
    background: var(--theme-warning-bg);
    color: var(--theme-warning-text);
}

/* Soft badges - pill shaped */
html[data-theme="soft"] .badge,
html[data-theme="soft"] .modern-badge,
html[data-theme="soft"] .status-badge {
    border-radius: var(--design-border-radius-pill);
}

/* Bold badges */
html[data-theme="bold"] .badge,
html[data-theme="bold"] .modern-badge,
html[data-theme="bold"] .status-badge {
    border: 2px solid currentColor;
    box-shadow: 2px 2px 0 currentColor;
}

/* Futuristic badges */
html[data-theme="futuristic"] .badge,
html[data-theme="futuristic"] .modern-badge,
html[data-theme="futuristic"] .status-badge {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.7rem;
}


/* === NAVBAR === */

html[data-theme] .navbar {
    background-color: var(--theme-navbar-bg) !important;
    border-bottom: var(--design-border-width) solid var(--theme-border) !important;
    box-shadow: var(--design-shadow-sm);
}

html[data-theme] .navbar-brand,
html[data-theme] .nav-link {
    color: var(--theme-text) !important;
}

html[data-theme] .nav-link:hover {
    color: var(--theme-primary) !important;
}

/* Material navbar - colored */
html[data-theme="material"] .navbar {
    background-color: var(--theme-navbar-bg) !important;
}

html[data-theme="material"] .navbar-brand,
html[data-theme="material"] .nav-link {
    color: var(--theme-text-inverse) !important;
}

html[data-theme="material"] .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Luxury navbar - dark */
html[data-theme="luxury"] .navbar {
    background-color: var(--theme-navbar-bg) !important;
}

html[data-theme="luxury"] .navbar-brand,
html[data-theme="luxury"] .nav-link {
    color: var(--theme-text-inverse) !important;
}

html[data-theme="luxury"] .nav-link:hover {
    color: var(--theme-primary) !important;
}

/* Glass navbar */
html[data-theme="glass"] .navbar {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: var(--theme-navbar-bg) !important;
    border-bottom: 1px solid var(--theme-border) !important;
}

/* Futuristic navbar */
html[data-theme="futuristic"] .navbar {
    border-bottom: 1px solid var(--theme-border) !important;
}


/* === DROPDOWN MENUS === */

html[data-theme] .dropdown-menu {
    border-radius: var(--design-border-radius);
    background-color: var(--theme-card-bg);
    border: var(--design-border-width) solid var(--theme-border);
    box-shadow: var(--design-shadow-lg);
}

html[data-theme] .dropdown-item {
    color: var(--theme-text);
    padding: var(--design-spacing-sm) var(--design-spacing);
}

html[data-theme] .dropdown-item:hover {
    background-color: var(--theme-bg-secondary);
    color: var(--theme-primary);
}

html[data-theme] .dropdown-header {
    color: var(--theme-text-muted);
}

html[data-theme] .dropdown-divider {
    border-color: var(--theme-border);
}

/* Glass dropdown */
html[data-theme="glass"] .dropdown-menu {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: rgba(255, 255, 255, 0.9);
}

/* Futuristic dropdown */
html[data-theme="futuristic"] .dropdown-menu {
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
}


/* === PAGE HEADERS === */

html[data-theme] .modern-page-header h1 {
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--theme-heading-font);
}

html[data-theme] .modern-page-header h4 {
    color: var(--theme-text-muted);
}

/* Brutalist headers - no gradient */
html[data-theme="brutalist"] .modern-page-header h1 {
    background: none;
    -webkit-text-fill-color: var(--theme-text);
    text-transform: uppercase;
}

/* Futuristic headers */
html[data-theme="futuristic"] .modern-page-header h1 {
    text-shadow: 0 0 10px var(--theme-primary);
}


/* === DASHBOARD COMPONENTS === */

html[data-theme] .dashboard-header {
    background: var(--theme-gradient);
    border-radius: var(--design-border-radius);
    box-shadow: var(--design-shadow);
}

html[data-theme] .bms-unit {
    background: var(--theme-bg-secondary);
    border-radius: var(--design-border-radius);
    border: var(--design-border-width) solid var(--theme-border);
}

html[data-theme] .stat-label {
    color: var(--theme-text-muted);
}

/* Status badges with theme colors */
html[data-theme] .status-badge.healthy {
    background: var(--theme-success-bg);
    color: var(--theme-success-text);
}

html[data-theme] .status-badge.warning {
    background: var(--theme-warning-bg);
    color: var(--theme-warning-text);
}

html[data-theme] .status-badge.error {
    background: var(--theme-danger-bg);
    color: var(--theme-danger-text);
}

html[data-theme] .status-icon.healthy {
    background: var(--theme-success);
}

html[data-theme] .status-icon.warning {
    background: var(--theme-warning);
}

html[data-theme] .status-icon.error {
    background: var(--theme-danger);
}


/* === FOOTER === */

html[data-theme] .footer {
    background-color: var(--theme-bg);
    border-top: var(--design-border-width) solid var(--theme-border) !important;
    color: var(--theme-text-muted);
}


/* === FOCUS STATES === */

html[data-theme] :focus-visible {
    outline: 2px solid var(--theme-primary);
    outline-offset: 2px;
}


/* === TEXT UTILITIES === */

html[data-theme] .text-muted {
    color: var(--theme-text-muted) !important;
}

html[data-theme] .text-dark {
    color: var(--theme-text) !important;
}

html[data-theme] .text-gradient {
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* === BORDER UTILITIES === */

html[data-theme] .border {
    border-color: var(--theme-border) !important;
}

html[data-theme] .border-bottom {
    border-bottom-color: var(--theme-border) !important;
}

html[data-theme] .border-top {
    border-top-color: var(--theme-border) !important;
}


/* ============================================
   THEME SWITCHER DROPDOWN STYLES
   ============================================ */

.theme-switcher-dropdown {
    min-width: 280px;
    padding: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
}

.theme-option {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.875rem;
    border-radius: var(--design-border-radius-sm, 8px);
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 0.25rem;
}

.theme-option:hover {
    background-color: var(--theme-bg-secondary);
}

.theme-option.active {
    background-color: var(--theme-primary-light);
    border: 2px solid var(--theme-primary);
}

.theme-swatch {
    display: flex;
    gap: 2px;
    margin-right: 0.875rem;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    flex-shrink: 0;
}

.theme-swatch-color {
    width: 14px;
    height: 28px;
}

.theme-option-info {
    flex: 1;
    min-width: 0;
}

.theme-option-name {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.theme-option-desc {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-option-check {
    margin-left: auto;
    color: var(--theme-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Theme switcher button */
.theme-switcher-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--design-border-radius-sm, 8px);
    border: 1px solid var(--theme-border);
    background-color: var(--theme-card-bg);
    color: var(--theme-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-switcher-btn:hover {
    background-color: var(--theme-bg-secondary);
    border-color: var(--theme-primary);
}

.theme-switcher-btn .bi {
    font-size: 1rem;
}

.theme-switcher-btn .current-theme-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dark theme specific overrides for theme switcher */
html[data-theme="futuristic"] .theme-swatch {
    border-color: var(--theme-border);
}

html[data-theme="futuristic"] .theme-option:hover {
    background-color: rgba(0, 255, 136, 0.05);
}

html[data-theme="futuristic"] .dropdown-menu {
    background-color: var(--theme-card-bg);
    border-color: var(--theme-border);
}


/* ============================================
   SPECIAL COMPONENT OVERRIDES
   ============================================ */

/* Info cards */
html[data-theme] .modern-info-card {
    background: var(--theme-warning-bg);
    border-radius: var(--design-border-radius);
    padding: var(--design-card-padding);
    box-shadow: var(--design-shadow-sm);
}

html[data-theme] .modern-info-card h6 {
    color: var(--theme-warning-text);
}

html[data-theme] .modern-info-card p {
    color: var(--theme-warning-text);
}

/* Form labels */
html[data-theme] .form-label {
    color: var(--theme-text);
    font-weight: 500;
}

/* Loading overlay adjustments */
html[data-theme] .loading-overlay {
    background: rgba(0, 0, 0, 0.7);
}

html[data-theme="futuristic"] .loading-overlay {
    background: rgba(10, 10, 15, 0.9);
}

html[data-theme="glass"] .loading-overlay {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
}
