// ============================================================================
// SGH Theme System - CSS Custom Properties
// ============================================================================
// This file defines CSS custom properties (CSS variables) for dynamic theming.
// Each theme overrides these properties to provide different color schemes.
// ============================================================================

// ============================================================================
// DEFAULT THEME (Root Variables) - PROFESSIONAL WITH GOLD ACCENTS ✨
// Primary Color: #006068 (Deep Teal) - Trust, Sophistication, Stability
// Accent Color: #F3C300 (Vibrant Gold) - Energy, Premium, Attention
// ============================================================================
:root {
  // Primary Color Palette (Deep Teal #006068 - 50 to 900)
  // Professional teal scale with excellent readability
  --sgh-color-50: #e0f2f3;   // Very light teal - subtle backgrounds
  --sgh-color-100: #b3dee2;  // Light teal - hover states
  --sgh-color-200: #80c8cf;  // Soft teal - borders, dividers
  --sgh-color-300: #4db2bc;  // Medium teal - secondary elements
  --sgh-color-400: #26a0ae;  // Bright teal - interactive elements
  --sgh-color-500: #006068;  // Main primary color - brand identity ⭐
  --sgh-color-600: #005860;  // Deep teal - emphasis, active states
  --sgh-color-700: #004e55;  // Dark teal - text on light backgrounds
  --sgh-color-800: #00444b;  // Very dark teal - strong contrast
  --sgh-color-900: #003638;  // Darkest teal - maximum emphasis

  // Accent Color Palette - Vibrant Gold #F3C300 (Premium & Attention)
  --sgh-color-A100: #fff8e1;  // Pale gold - subtle highlights
  --sgh-color-A200: #ffecb3;  // Light gold - gentle accents
  --sgh-color-A400: #ffe57f;  // Medium gold - call-to-action backgrounds
  --sgh-color-A700: #F3C300;  // Vibrant gold - PRIMARY ACCENT ⭐⭐

  // Contrast Colors (Refined grayscale with better transitions)
  --sgh-contrast-50: #0a0a0a;   // Near black
  --sgh-contrast-100: #1f1f1f;  // Very dark gray
  --sgh-contrast-200: #2e2e2e;  // Dark gray
  --sgh-contrast-300: #525252;  // Medium-dark gray
  --sgh-contrast-400: #737373;  // Medium gray
  --sgh-contrast-500: #a3a3a3;  // Neutral gray
  --sgh-contrast-600: #d4d4d4;  // Light gray
  --sgh-contrast-700: #e8e8e8;  // Very light gray
  --sgh-contrast-800: #f5f5f5;  // Off-white
  --sgh-contrast-900: #ffffff;  // Pure white

  // Status Colors - Modern, vibrant, and accessible
  --sgh-status-success: #10b981;  // Emerald green - fresh and positive
  --sgh-status-danger: #ef4444;   // Bright red - clear and urgent
  --sgh-status-warning: #f59e0b;  // Amber - warm and attention-getting
  --sgh-status-info: #3b82f6;     // Blue - calm and informative
  --sgh-status-refund: #8b5cf6;   // Purple - distinctive and premium

  // Font Colors (Optimized for readability and hierarchy)
  --sgh-font-primary: #1a1a1a;    // Near black - strong readability
  --sgh-font-secondary: #525252;  // Medium gray - clear hierarchy
  --sgh-font-tertiary: #737373;   // Light gray - subtle text

  // Background Colors (Clean and bright)
  --sgh-bg-primary: #ffffff;      // Pure white - clean and modern
  --sgh-bg-secondary: #f9fafb;    // Subtle off-white - soft contrast

  // Chart Colors (Teal-focused palette with harmonious variations)
  --sgh-chart-1: #50c4cd;   // Light bright teal - main data series
  --sgh-chart-2: #26a0ae;   // Medium bright teal - secondary series
  --sgh-chart-3: #0499a8;   // Vibrant teal - tertiary series
  --sgh-chart-4: #006068;   // Primary teal - brand color ⭐
  --sgh-chart-5: #05aab8;   // Turquoise teal - variation
  --sgh-chart-6: #4db2bc;   // Soft medium teal - light emphasis
  --sgh-chart-7: #017f91;   // Deep teal - strong data
  --sgh-chart-8: #2bb7c3;   // Bright turquoise - highlights
  --sgh-chart-9: #80c8cf;   // Pale teal - backgrounds
  --sgh-chart-10: #004e55;  // Dark teal - maximum contrast
  --sgh-chart-11: #00444b;  // Very dark teal - emphasis
  --sgh-chart-12: #0390a0;  // Ocean teal - mid-range
  --sgh-chart-13: #00333a;  // Darkest teal - strong accent
  --sgh-chart-14: #04a3b1;  // Aqua teal - complement

  // Utility Colors
  --sgh-white: #ffffff;
  --sgh-black: #000000;

  // Code Block Colors (Modern developer aesthetic)
  --sgh-code-bg: #1e293b;      // Dark blue-gray - easy on eyes
  --sgh-code-text: #e2e8f0;    // Light gray-blue - excellent contrast

  // Shadow Colors (Sophisticated depth with teal & gold glows)
  --sgh-shadow-08: rgba(0, 0, 0, 0.05);   // Subtle depth
  --sgh-shadow-10: rgba(0, 0, 0, 0.08);   // Light elevation
  --sgh-shadow-12: rgba(0, 0, 0, 0.1);    // Medium elevation
  --sgh-shadow-15: rgba(0, 0, 0, 0.12);   // High elevation
  --sgh-shadow-primary-10: rgba(0, 96, 104, 0.12);   // Teal glow - subtle
  --sgh-shadow-primary-15: rgba(0, 96, 104, 0.18);   // Teal glow - medium
  --sgh-shadow-primary-20: rgba(0, 96, 104, 0.24);   // Teal glow - strong
  --sgh-shadow-primary-30: rgba(0, 96, 104, 0.32);   // Teal glow - intense
  --sgh-shadow-accent-10: rgba(243, 195, 0, 0.15);   // Gold glow - subtle ✨
  --sgh-shadow-accent-15: rgba(243, 195, 0, 0.22);   // Gold glow - medium ✨
  --sgh-shadow-accent-20: rgba(243, 195, 0, 0.28);   // Gold glow - strong ✨
  --sgh-shadow-accent-30: rgba(243, 195, 0, 0.35);   // Gold glow - intense ✨

  // Material Design Component Overrides
  --mat-expansion-container-background-color: #f9fafb;  // Panel background (subtle gray)
  --mat-expansion-header-text-color: #1a1a1a;           // Header text (near black)
  --mat-expansion-header-description-color: #006068;    // Description text (matches primary teal)
  --mat-expansion-header-indicator-color: #006068;      // Expand/collapse indicator
  --mat-expansion-container-text-color: #2e2e2e;        // Panel content text (dark gray)
}

// ============================================================================
// DEFAULT THEME CLASS (Uses :root variables - Explicit class for consistency)
// Primary Color: #006068 (Deep Teal) | Accent: #F3C300 (Vibrant Gold)
// ============================================================================
body.sgh-default-theme {
  // Default theme explicitly uses the same colors as :root
  // No overrides needed - inherits all :root CSS custom properties
  // This class exists for consistency with other themes
  // All variables are already defined in :root above
  --sgh-color-50: #e0f2f3;   // Very light teal - subtle backgrounds
  --sgh-color-100: #b3dee2;  // Light teal - hover states
  --sgh-color-200: #80c8cf;  // Soft teal - borders, dividers
  --sgh-color-300: #4db2bc;  // Medium teal - secondary elements
  --sgh-color-400: #26a0ae;  // Bright teal - interactive elements
  --sgh-color-500: #006068;  // Main primary color - brand identity ⭐
  --sgh-color-600: #005860;  // Deep teal - emphasis, active states
  --sgh-color-700: #004e55;  // Dark teal - text on light backgrounds
  --sgh-color-800: #00444b;  // Very dark teal - strong contrast
  --sgh-color-900: #003638;  // Darkest teal - maximum emphasis

  // Accent Color Palette - Vibrant Gold #F3C300 (Premium & Attention)
  --sgh-color-A100: #fff8e1;  // Pale gold - subtle highlights
  --sgh-color-A200: #ffecb3;  // Light gold - gentle accents
  --sgh-color-A400: #ffe57f;  // Medium gold - call-to-action backgrounds
  --sgh-color-A700: #F3C300;  // Vibrant gold - PRIMARY ACCENT ⭐⭐

  // Contrast Colors (Refined grayscale with better transitions)
  --sgh-contrast-50: #0a0a0a;   // Near black
  --sgh-contrast-100: #1f1f1f;  // Very dark gray
  --sgh-contrast-200: #2e2e2e;  // Dark gray
  --sgh-contrast-300: #525252;  // Medium-dark gray
  --sgh-contrast-400: #737373;  // Medium gray
  --sgh-contrast-500: #a3a3a3;  // Neutral gray
  --sgh-contrast-600: #d4d4d4;  // Light gray
  --sgh-contrast-700: #e8e8e8;  // Very light gray
  --sgh-contrast-800: #f5f5f5;  // Off-white
  --sgh-contrast-900: #ffffff;  // Pure white

  // Status Colors
  --sgh-status-success: #10b981;  // Emerald green - fresh and positive
  --sgh-status-danger: #ef4444;   // Bright red - clear and urgent
  --sgh-status-warning: #f59e0b;  // Amber - warm and attention-getting
  --sgh-status-info: #3b82f6;     // Blue - calm and informative
  --sgh-status-refund: #8b5cf6;   // Purple - distinctive and premium

  // Font Colors
  --sgh-font-primary: #1a1a1a;    // Near black - strong readability
  --sgh-font-secondary: #525252;  // Medium gray - clear hierarchy
  --sgh-font-tertiary: #737373;   // Light gray - subtle text

  // Background Colors
  --sgh-bg-primary: #ffffff;      // Pure white - clean and modern
  --sgh-bg-secondary: #f9fafb;    // Subtle off-white - soft contrast

  // Chart Colors (Teal-focused palette with harmonious variations)
  --sgh-chart-1: #50c4cd;   // Light bright teal - main data series
  --sgh-chart-2: #26a0ae;   // Medium bright teal - secondary series
  --sgh-chart-3: #0499a8;   // Vibrant teal - tertiary series
  --sgh-chart-4: #006068;   // Primary teal - brand color ⭐
  --sgh-chart-5: #05aab8;   // Turquoise teal - variation
  --sgh-chart-6: #4db2bc;   // Soft medium teal - light emphasis
  --sgh-chart-7: #017f91;   // Deep teal - strong data
  --sgh-chart-8: #2bb7c3;   // Bright turquoise - highlights
  --sgh-chart-9: #80c8cf;   // Pale teal - backgrounds
  --sgh-chart-10: #004e55;  // Dark teal - maximum contrast
  --sgh-chart-11: #00444b;  // Very dark teal - emphasis
  --sgh-chart-12: #0390a0;  // Ocean teal - mid-range
  --sgh-chart-13: #00333a;  // Darkest teal - strong accent
  --sgh-chart-14: #04a3b1;  // Aqua teal - complement

  // Code Block Colors
  --sgh-code-bg: #1e293b;      // Dark blue-gray - easy on eyes
  --sgh-code-text: #e2e8f0;    // Light gray-blue - excellent contrast

  // Shadow Colors
  --sgh-shadow-08: rgba(0, 0, 0, 0.05);
  --sgh-shadow-10: rgba(0, 0, 0, 0.08);
  --sgh-shadow-12: rgba(0, 0, 0, 0.1);
  --sgh-shadow-15: rgba(0, 0, 0, 0.12);
  --sgh-shadow-primary-10: rgba(0, 96, 104, 0.12);
  --sgh-shadow-primary-15: rgba(0, 96, 104, 0.18);
  --sgh-shadow-primary-20: rgba(0, 96, 104, 0.24);
  --sgh-shadow-primary-30: rgba(0, 96, 104, 0.32);
  --sgh-shadow-accent-10: rgba(243, 195, 0, 0.15);
  --sgh-shadow-accent-15: rgba(243, 195, 0, 0.22);
  --sgh-shadow-accent-20: rgba(243, 195, 0, 0.28);
  --sgh-shadow-accent-30: rgba(243, 195, 0, 0.35);

  // Material Design Component Overrides
  --mat-expansion-container-background-color: #f9fafb;  // Panel background (subtle gray)
  --mat-expansion-header-text-color: #1a1a1a;           // Header text (near black)
  --mat-expansion-header-description-color: #006068;    // Description text (matches primary teal)
  --mat-expansion-header-indicator-color: #006068;      // Expand/collapse indicator
  --mat-expansion-container-text-color: #2e2e2e;        // Panel content text (dark gray)
}

// ============================================================================
// BLUE THEME
// Primary Color: #1976d2 (Material Blue)
// ============================================================================
body.sgh-blue-theme {
  // Primary Color Palette (Blue - 50 to 900)
  --sgh-color-50: #e3f2fd;
  --sgh-color-100: #bbdefb;
  --sgh-color-200: #90caf9;
  --sgh-color-300: #64b5f6;
  --sgh-color-400: #42a5f5;
  --sgh-color-500: #1976d2;  // Main primary color
  --sgh-color-600: #1565c0;
  --sgh-color-700: #0d47a1;
  --sgh-color-800: #0a3d91;
  --sgh-color-900: #073270;

  // Primary Color Accents
  --sgh-color-A100: #82b1ff;
  --sgh-color-A200: #448aff;
  --sgh-color-A400: #2979ff;
  --sgh-color-A700: #2962ff;

  // Status Colors (Adjusted for Blue Theme)
  --sgh-status-success: #4caf50;
  --sgh-status-danger: #f44336;
  --sgh-status-warning: #ff9800;
  --sgh-status-info: #2196f3;
  --sgh-status-refund: #9c27b0;

  // Chart Colors (Blue-based)
  --sgh-chart-1: #64b5f6;
  --sgh-chart-2: #42a5f5;
  --sgh-chart-3: #2196f3;
  --sgh-chart-4: #1976d2;
  --sgh-chart-5: #1565c0;
  --sgh-chart-6: #0d47a1;
  --sgh-chart-7: #90caf9;
  --sgh-chart-8: #0a3d91;
  --sgh-chart-9: #82b1ff;
  --sgh-chart-10: #448aff;
  --sgh-chart-11: #2979ff;
  --sgh-chart-12: #2962ff;
  --sgh-chart-13: #1e88e5;
  --sgh-chart-14: #1565c0;

  // Contrast Colors (Refined grayscale)
  --sgh-contrast-50: #0a0a0a;   // Near black
  --sgh-contrast-100: #1f1f1f;  // Very dark gray
  --sgh-contrast-200: #2e2e2e;  // Dark gray
  --sgh-contrast-300: #525252;  // Medium-dark gray
  --sgh-contrast-400: #737373;  // Medium gray
  --sgh-contrast-500: #a3a3a3;  // Neutral gray
  --sgh-contrast-600: #d4d4d4;  // Light gray
  --sgh-contrast-700: #e8e8e8;  // Very light gray
  --sgh-contrast-800: #f5f5f5;  // Off-white
  --sgh-contrast-900: #ffffff;  // Pure white

  // Font Colors (Optimized for readability)
  --sgh-font-primary: #1a1a1a;    // Near black - strong readability
  --sgh-font-secondary: #525252;  // Medium gray - clear hierarchy
  --sgh-font-tertiary: #737373;   // Light gray - subtle text

  // Background Colors (Clean and bright)
  --sgh-bg-primary: #ffffff;      // Pure white - clean and modern
  --sgh-bg-secondary: #f9fafb;    // Subtle off-white - soft contrast

  // Code Block Colors (Modern developer aesthetic)
  --sgh-code-bg: #1e293b;      // Dark blue-gray - easy on eyes
  --sgh-code-text: #e2e8f0;    // Light gray-blue - excellent contrast

  // Shadow Colors (Blue tint)
  --sgh-shadow-08: rgba(0, 0, 0, 0.05);   // Subtle depth
  --sgh-shadow-10: rgba(0, 0, 0, 0.08);   // Light elevation
  --sgh-shadow-12: rgba(0, 0, 0, 0.1);    // Medium elevation
  --sgh-shadow-15: rgba(0, 0, 0, 0.12);   // High elevation
  --sgh-shadow-primary-10: rgba(25, 118, 210, 0.1);
  --sgh-shadow-primary-15: rgba(25, 118, 210, 0.15);
  --sgh-shadow-primary-20: rgba(25, 118, 210, 0.2);
  --sgh-shadow-primary-30: rgba(25, 118, 210, 0.3);
  --sgh-shadow-accent-10: rgba(130, 177, 255, 0.15);   // Blue accent glow
  --sgh-shadow-accent-15: rgba(130, 177, 255, 0.22);   // Blue accent glow
  --sgh-shadow-accent-20: rgba(130, 177, 255, 0.28);   // Blue accent glow
  --sgh-shadow-accent-30: rgba(130, 177, 255, 0.35);   // Blue accent glow

  // Material Design Component Overrides
  --mat-expansion-container-background-color: #f5f9fd;  // Panel background (light blue tint)
  --mat-expansion-header-text-color: #1a1a1a;           // Header text (near black)
  --mat-expansion-header-description-color: #1976d2;    // Description text (matches primary blue)
  --mat-expansion-header-indicator-color: #1976d2;      // Expand/collapse indicator
  --mat-expansion-container-text-color: #2e2e2e;        // Panel content text (dark gray)
}

// ============================================================================
// LIGHT THEME - PROFESSIONAL WITH GOLD ACCENTS ✨
// Same as default - Deep Teal (#006068) with Vibrant Gold (#F3C300)
// ============================================================================
body.sgh-light-theme {
  // Primary Color Palette (Deep Teal #006068)
  --sgh-color-50: #e0f2f3;
  --sgh-color-100: #b3dee2;
  --sgh-color-200: #80c8cf;
  --sgh-color-300: #4db2bc;
  --sgh-color-400: #26a0ae;
  --sgh-color-500: #006068;
  --sgh-color-600: #005860;
  --sgh-color-700: #004e55;
  --sgh-color-800: #00444b;
  --sgh-color-900: #003638;

  // Accent Color Palette (Vibrant Gold #F3C300)
  --sgh-color-A100: #fff8e1;
  --sgh-color-A200: #ffecb3;
  --sgh-color-A400: #ffe57f;
  --sgh-color-A700: #F3C300;

  // Contrast Colors
  --sgh-contrast-50: #0a0a0a;
  --sgh-contrast-100: #1f1f1f;
  --sgh-contrast-200: #2e2e2e;
  --sgh-contrast-300: #525252;
  --sgh-contrast-400: #737373;
  --sgh-contrast-500: #a3a3a3;
  --sgh-contrast-600: #d4d4d4;
  --sgh-contrast-700: #e8e8e8;
  --sgh-contrast-800: #f5f5f5;
  --sgh-contrast-900: #ffffff;

  // Status Colors
  --sgh-status-success: #10b981;
  --sgh-status-danger: #ef4444;
  --sgh-status-warning: #f59e0b;
  --sgh-status-info: #3b82f6;
  --sgh-status-refund: #8b5cf6;

  // Font Colors
  --sgh-font-primary: #1a1a1a;
  --sgh-font-secondary: #525252;
  --sgh-font-tertiary: #737373;

  // Background Colors
  --sgh-bg-primary: #ffffff;
  --sgh-bg-secondary: #f9fafb;

  // Chart Colors (Teal-focused palette with harmonious variations)
  --sgh-chart-1: #50c4cd;   // Light bright teal - main data series
  --sgh-chart-2: #26a0ae;   // Medium bright teal - secondary series
  --sgh-chart-3: #0499a8;   // Vibrant teal - tertiary series
  --sgh-chart-4: #006068;   // Primary teal - brand color ⭐
  --sgh-chart-5: #05aab8;   // Turquoise teal - variation
  --sgh-chart-6: #4db2bc;   // Soft medium teal - light emphasis
  --sgh-chart-7: #017f91;   // Deep teal - strong data
  --sgh-chart-8: #2bb7c3;   // Bright turquoise - highlights
  --sgh-chart-9: #80c8cf;   // Pale teal - backgrounds
  --sgh-chart-10: #004e55;  // Dark teal - maximum contrast
  --sgh-chart-11: #00444b;  // Very dark teal - emphasis
  --sgh-chart-12: #0390a0;  // Ocean teal - mid-range
  --sgh-chart-13: #00333a;  // Darkest teal - strong accent
  --sgh-chart-14: #04a3b1;  // Aqua teal - complement

  // Code Block Colors
  --sgh-code-bg: #1e293b;
  --sgh-code-text: #e2e8f0;

  // Shadow Colors (with teal & gold glows)
  --sgh-shadow-08: rgba(0, 0, 0, 0.05);
  --sgh-shadow-10: rgba(0, 0, 0, 0.08);
  --sgh-shadow-12: rgba(0, 0, 0, 0.1);
  --sgh-shadow-15: rgba(0, 0, 0, 0.12);
  --sgh-shadow-primary-10: rgba(0, 96, 104, 0.12);
  --sgh-shadow-primary-15: rgba(0, 96, 104, 0.18);
  --sgh-shadow-primary-20: rgba(0, 96, 104, 0.24);
  --sgh-shadow-primary-30: rgba(0, 96, 104, 0.32);
  --sgh-shadow-accent-10: rgba(243, 195, 0, 0.15);
  --sgh-shadow-accent-15: rgba(243, 195, 0, 0.22);
  --sgh-shadow-accent-20: rgba(243, 195, 0, 0.28);
  --sgh-shadow-accent-30: rgba(243, 195, 0, 0.35);

  // Material Design Component Overrides
  --mat-expansion-container-background-color: #f9fafb;  // Panel background (subtle gray)
  --mat-expansion-header-text-color: #1a1a1a;           // Header text (near black)
  --mat-expansion-header-description-color: #006068;    // Description text (matches primary teal)
  --mat-expansion-header-indicator-color: #006068;      // Expand/collapse indicator
  --mat-expansion-container-text-color: #2e2e2e;        // Panel content text (dark gray)
}

// ============================================================================
// DARK THEME - ENHANCED
// Primary Color: #4db6ac (Vibrant Teal for dark backgrounds with excellent contrast)
// Focus: Professional dark mode with Material Design 3 elevation system
// Enhanced with proper surface elevation, improved contrast, and refined colors
// ============================================================================
body.sgh-dark-theme {
  // Primary Color Palette (Optimized for dark backgrounds)
  // Lighter and more vibrant colors for better visibility on dark surfaces
  --sgh-color-50: #e0f2f1;   // Lightest - for very subtle accents
  --sgh-color-100: #b2dfdb;  // Very light - for highlights
  --sgh-color-200: #80cbc4;  // Light - for secondary elements
  --sgh-color-300: #4db6ac;  // Light-medium - for hover states
  --sgh-color-400: #26a69a;  // Medium - for active states
  --sgh-color-500: #4db6ac;  // Main primary color - vibrant for dark mode
  --sgh-color-600: #80cbc4;  // Medium-light - for disabled states
  --sgh-color-700: #b2dfdb;  // Light - for borders
  --sgh-color-800: #c8e6e4;  // Very light - for backgrounds
  --sgh-color-900: #e0f2f1;  // Lightest - for very subtle elements

  // Primary Color Accents (Bright and vibrant for dark mode)
  --sgh-color-A100: #a7ffeb;  // Bright mint
  --sgh-color-A200: #64ffda;  // Bright aqua
  --sgh-color-A400: #1de9b6;  // Vibrant teal
  --sgh-color-A700: #00e6c3;  // Electric teal

  // Contrast Colors (Material Design 3 Dark Surface System)
  // Reversed for dark theme: 50 is lightest, 900 is darkest
  --sgh-contrast-50: #ffffff;   // Pure white - for text on dark
  --sgh-contrast-100: #f5f5f5;  // Off-white - for secondary text
  --sgh-contrast-200: #eeeeee;  // Very light gray - for tertiary text
  --sgh-contrast-300: #e0e0e0;  // Light gray - for disabled text
  --sgh-contrast-400: #bdbdbd;  // Medium-light gray - for dividers
  --sgh-contrast-500: #9e9e9e;  // Medium gray - for subtle borders
  --sgh-contrast-600: #757575;  // Medium-dark gray - for icons
  --sgh-contrast-700: #424242;  // Dark gray - for elevated surfaces (cards, dialogs)
  --sgh-contrast-800: #2c2c2c;  // Very dark gray - for secondary surfaces
  --sgh-contrast-900: #1a1a1a;  // Near black - for primary background

  // Material Design 3 Surface Elevation System
  // Each level adds subtle lighting for depth perception
  --sgh-surface-0: #121212;   // Base surface (background)
  --sgh-surface-1: #1e1e1e;   // Elevated 1dp (navigation drawer)
  --sgh-surface-2: #232323;   // Elevated 2dp (app bar)
  --sgh-surface-3: #282828;   // Elevated 3dp (cards at rest)
  --sgh-surface-4: #2d2d2d;   // Elevated 4dp (cards raised)
  --sgh-surface-5: #323232;   // Elevated 6dp (FAB at rest)
  --sgh-surface-6: #383838;   // Elevated 8dp (menus, dialogs)
  --sgh-surface-7: #3d3d3d;   // Elevated 12dp (modal sheets)
  --sgh-surface-8: #424242;   // Elevated 16dp (nav drawer modal)

  // Status Colors (Vibrant and accessible for dark backgrounds)
  --sgh-status-success: #66bb6a;  // Material Green 400
  --sgh-status-danger: #ef5350;   // Material Red 400
  --sgh-status-warning: #ffa726;  // Material Orange 400
  --sgh-status-info: #42a5f5;     // Material Blue 400
  --sgh-status-refund: #ab47bc;   // Material Purple 400

  // Font Colors (Optimized for WCAG AAA contrast on dark backgrounds)
  --sgh-font-primary: #e8e8e8;    // High emphasis (87% opacity equivalent)
  --sgh-font-secondary: #b8b8b8;  // Medium emphasis (60% opacity equivalent)
  --sgh-font-tertiary: #9e9e9e;   // Low emphasis (38% opacity equivalent)
  --sgh-font-disabled: #6e6e6e;   // Disabled text

  // Background Colors (Material Design 3 Dark baseline)
  --sgh-bg-primary: #121212;      // Base background (elevation 0)
  --sgh-bg-secondary: #1e1e1e;    // Slightly elevated background (elevation 1)
  --sgh-bg-tertiary: #232323;     // More elevated background (elevation 2)
  --sgh-bg-elevated: #2c2c2c;     // Highly elevated surfaces

  // Chart Colors (Vibrant and distinguishable on dark backgrounds)
  --sgh-chart-1: #80cbc4;   // Teal 200
  --sgh-chart-2: #64b5f6;   // Blue 300
  --sgh-chart-3: #81c784;   // Green 300
  --sgh-chart-4: #ffb74d;   // Orange 300
  --sgh-chart-5: #ff8a65;   // Deep Orange 300
  --sgh-chart-6: #ba68c8;   // Purple 300
  --sgh-chart-7: #4dd0e1;   // Cyan 300
  --sgh-chart-8: #aed581;   // Light Green 300
  --sgh-chart-9: #ffd54f;   // Amber 300
  --sgh-chart-10: #a1887f;  // Brown 300
  --sgh-chart-11: #90a4ae;  // Blue Grey 300
  --sgh-chart-12: #f06292;  // Pink 300
  --sgh-chart-13: #9575cd;  // Deep Purple 300
  --sgh-chart-14: #4fc3f7;  // Light Blue 300

  // Code Block Colors (Enhanced for dark theme)
  --sgh-code-bg: #1a1a1a;      // Darker than surface for inset appearance
  --sgh-code-text: #e8e8e8;    // High contrast for readability

  // Shadow Colors (Enhanced with glow effect for depth)
  // Black shadows for depth, colored shadows for primary elements
  --sgh-shadow-08: rgba(0, 0, 0, 0.4);
  --sgh-shadow-10: rgba(0, 0, 0, 0.5);
  --sgh-shadow-12: rgba(0, 0, 0, 0.6);
  --sgh-shadow-15: rgba(0, 0, 0, 0.7);

  // Primary shadows with subtle glow effect
  --sgh-shadow-primary-10: rgba(77, 182, 172, 0.2);
  --sgh-shadow-primary-15: rgba(77, 182, 172, 0.25);
  --sgh-shadow-primary-20: rgba(77, 182, 172, 0.3);
  --sgh-shadow-primary-30: rgba(77, 182, 172, 0.4);

  // Accent shadows for special emphasis
  --sgh-shadow-accent-10: rgba(100, 255, 218, 0.15);
  --sgh-shadow-accent-15: rgba(100, 255, 218, 0.2);
  --sgh-shadow-accent-20: rgba(100, 255, 218, 0.25);
  --sgh-shadow-accent-30: rgba(100, 255, 218, 0.35);

  // Border Colors (Subtle borders for dark mode)
  --sgh-border-subtle: rgba(255, 255, 255, 0.08);  // Very subtle
  --sgh-border-default: rgba(255, 255, 255, 0.12); // Default
  --sgh-border-strong: rgba(255, 255, 255, 0.16);  // Strong
  --sgh-border-primary: rgba(77, 182, 172, 0.3);   // Primary color border

  // Overlay Colors (for modals, sheets, and overlays)
  --sgh-overlay-light: rgba(0, 0, 0, 0.4);
  --sgh-overlay-medium: rgba(0, 0, 0, 0.6);
  --sgh-overlay-heavy: rgba(0, 0, 0, 0.8);

  // Material Design Component Overrides
  --mat-expansion-container-background-color: #444242;  // Panel background
  --mat-expansion-header-text-color: #acacac;           // Header text
  --mat-expansion-header-description-color: #4db6ac;    // Description text (matches --sgh-color-500)
  --mat-expansion-header-indicator-color: #4db6ac;      // Expand/collapse indicator
  --mat-expansion-container-text-color: #acacac;        // Panel content text
}

// ============================================================================
// CYAN/OCEAN THEME
// Primary Color: #00c2c7 (Bright Cyan)
// A vibrant cyan-blue theme with ocean-inspired colors
// ============================================================================
body.sgh-cyan-theme {
  // Primary Color Palette (Cyan-Blue - 50 to 900)
  --sgh-color-50: #daf8e4;   // Very light mint
  --sgh-color-100: #c8f4e0;  // Light mint
  --sgh-color-200: #97ebdb;  // Light turquoise
  --sgh-color-300: #4bd8d1;  // Medium turquoise
  --sgh-color-400: #00c2c7;  // Bright cyan
  --sgh-color-500: #00a4ba;  // Main primary color - Medium cyan
  --sgh-color-600: #0086ad;  // Medium blue
  --sgh-color-700: #006d9a;  // Blue
  --sgh-color-800: #005582;  // Dark blue
  --sgh-color-900: #004066;  // Darkest blue

  // Primary Color Accents
  --sgh-color-A100: #9fffe5;
  --sgh-color-A200: #6dffdb;
  --sgh-color-A400: #1effd1;
  --sgh-color-A700: #00e6c0;

  // Status Colors (Adjusted for Cyan Theme)
  --sgh-status-success: #4caf50;
  --sgh-status-danger: #f44336;
  --sgh-status-warning: #ff9800;
  --sgh-status-info: #00c2c7;  // Using theme primary
  --sgh-status-refund: #9c27b0;

  // Contrast Colors (Refined grayscale)
  --sgh-contrast-50: #0a0a0a;   // Near black
  --sgh-contrast-100: #1f1f1f;  // Very dark gray
  --sgh-contrast-200: #2e2e2e;  // Dark gray
  --sgh-contrast-300: #525252;  // Medium-dark gray
  --sgh-contrast-400: #737373;  // Medium gray
  --sgh-contrast-500: #a3a3a3;  // Neutral gray
  --sgh-contrast-600: #d4d4d4;  // Light gray
  --sgh-contrast-700: #e8e8e8;  // Very light gray
  --sgh-contrast-800: #f5f5f5;  // Off-white
  --sgh-contrast-900: #ffffff;  // Pure white

  // Font Colors (Optimized for readability)
  --sgh-font-primary: #1a1a1a;    // Near black - strong readability
  --sgh-font-secondary: #525252;  // Medium gray - clear hierarchy
  --sgh-font-tertiary: #737373;   // Light gray - subtle text

  // Background Colors (Clean and bright)
  --sgh-bg-primary: #ffffff;      // Pure white - clean and modern
  --sgh-bg-secondary: #f9fafb;    // Subtle off-white - soft contrast

  // Chart Colors (Cyan-based)
  --sgh-chart-1: #97ebdb;
  --sgh-chart-2: #4bd8d1;
  --sgh-chart-3: #00c2c7;
  --sgh-chart-4: #00a4ba;
  --sgh-chart-5: #0086ad;
  --sgh-chart-6: #006d9a;
  --sgh-chart-7: #daf8e4;
  --sgh-chart-8: #005582;
  --sgh-chart-9: #6dffdb;
  --sgh-chart-10: #1effd1;
  --sgh-chart-11: #00e6c0;
  --sgh-chart-12: #c8f4e0;
  --sgh-chart-13: #004066;
  --sgh-chart-14: #9fffe5;

  // Code Block Colors (Modern developer aesthetic)
  --sgh-code-bg: #1e293b;      // Dark blue-gray - easy on eyes
  --sgh-code-text: #e2e8f0;    // Light gray-blue - excellent contrast

  // Shadow Colors (Cyan tint)
  --sgh-shadow-08: rgba(0, 0, 0, 0.05);   // Subtle depth
  --sgh-shadow-10: rgba(0, 0, 0, 0.08);   // Light elevation
  --sgh-shadow-12: rgba(0, 0, 0, 0.1);    // Medium elevation
  --sgh-shadow-15: rgba(0, 0, 0, 0.12);   // High elevation
  --sgh-shadow-primary-10: rgba(0, 194, 199, 0.1);
  --sgh-shadow-primary-15: rgba(0, 194, 199, 0.15);
  --sgh-shadow-primary-20: rgba(0, 194, 199, 0.2);
  --sgh-shadow-primary-30: rgba(0, 194, 199, 0.3);
  --sgh-shadow-accent-10: rgba(109, 255, 219, 0.15);   // Cyan accent glow
  --sgh-shadow-accent-15: rgba(109, 255, 219, 0.22);   // Cyan accent glow
  --sgh-shadow-accent-20: rgba(109, 255, 219, 0.28);   // Cyan accent glow
  --sgh-shadow-accent-30: rgba(109, 255, 219, 0.35);   // Cyan accent glow

  // Material Design Component Overrides
  --mat-expansion-container-background-color: #f0fdfd;  // Panel background (light cyan tint)
  --mat-expansion-header-text-color: #1a1a1a;           // Header text (near black)
  --mat-expansion-header-description-color: #00a4ba;    // Description text (matches primary cyan)
  --mat-expansion-header-indicator-color: #00a4ba;      // Expand/collapse indicator
  --mat-expansion-container-text-color: #2e2e2e;        // Panel content text (dark gray)
}

// ============================================================================
// Theme Utility Classes
// ============================================================================

// Apply theme-aware background
.theme-bg-primary {
  background-color: var(--sgh-bg-primary);
}

.theme-bg-secondary {
  background-color: var(--sgh-bg-secondary);
}

// Apply theme-aware text colors
.theme-text-primary {
  color: var(--sgh-font-primary);
}

.theme-text-secondary {
  color: var(--sgh-font-secondary);
}

.theme-text-tertiary {
  color: var(--sgh-font-tertiary);
}

// Apply theme-aware primary color
.theme-color-primary {
  color: var(--sgh-color-500);
}

.theme-bg-color-primary {
  background-color: var(--sgh-color-500);
}

// Apply theme-aware borders
.theme-border {
  border-color: var(--sgh-contrast-600);
}

// Apply theme-aware shadows
.theme-shadow {
  box-shadow: 0 2px 8px var(--sgh-shadow-08);
}

.theme-shadow-elevated {
  box-shadow: 0 4px 16px var(--sgh-shadow-12);
}
