:root {
    /* Primary Blue Palette */
    --primary-blue: #3B82F6;
    --primary-blue-dark: #1E40AF;
    --primary-blue-light: #60A5FA;
    --primary-blue-lighter: #93BFFF;
    /* Supporting Colors */
    --success-green: #10B981;
    --warning-amber: #F59E0B;
    --error-red: #EF4444;
    --info-cyan: #06B6D4;
    /* Dark Theme Background Colors (your original) */
    --bg-dark-primary: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #3B82F6 100%);
    --bg-dark-secondary: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    --bg-dark-card: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --bg-dark-card-hover: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    /* Light Theme Background Colors (missing from your original) */
    --bg-light: #F8FAFC; /* Lighter background for pages */
    --bg-white: #FFFFFF; /* Pure white for cards/panels */
    --bg-light-hover: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F9FAFB;
    /* Text Colors for Dark Theme (your original) */
    --text-dark-primary: #FFFFFF;
    --text-dark-secondary: rgba(255, 255, 255, 0.8);
    --text-dark-muted: rgba(255, 255, 255, 0.6);
    /* Text Colors for Light Theme (missing from your original) */
    --text-primary: #0F172A; /* Dark text for light backgrounds */
    --text-secondary: #475569; /* Medium dark for secondary text */
    --text-muted: #94A3B8; /* Lighter for less emphasis */
    --text-dark: #0F172A; /* Very dark text */
    /* Glass Effects */
    --glass-backdrop: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-border-light: rgba(0, 0, 0, 0.05); /* For light theme */
    /* Shadows */
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-small: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* Light theme shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    /* Game-Specific Colors */
    --health-color: #ef4444; /* Red 500 */
    --mana-color: #3b82f6; /* Blue 500 */
    --experience-color: #f59e0b; /* Amber 500 */
    /* Character Class Colors */
    --warrior-color: #ef4444; /* Red 500 */
    --archer-color: #10b981; /* Green 500 */
    --pawn-color: #3b82f6; /* Blue 500 */
    /* Z-index system */
    --z-background: -10;
    --z-default: 1;
    --z-floating: 10;
    --z-overlay: 100;
    --z-modal: 200;
    --z-popover: 300;
    --z-tooltip: 400;
    --z-toast: 500;
    /* Spacing System */
    --space-1: 0.25rem; /* 4px */
    --space-2: 0.5rem; /* 8px */
    --space-3: 0.75rem; /* 12px */
    --space-4: 1rem; /* 16px */
    --space-5: 1.5rem; /* 24px */
    --space-6: 2rem; /* 32px */
    --space-8: 3rem; /* 48px */
    /* Typography */
    --font-size-xs: 0.75rem; /* 12px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-md: 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 weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    /* Button Styles */
    --button-primary-bg: var(--primary-blue);
    --button-primary-text: white;
    --button-primary-hover: var(--primary-blue-dark);
    /* For UI elements in MudBlazor to use your colors */
    --mud-palette-primary: var(--primary-blue);
    --mud-palette-primary-hover: var(--primary-blue-dark);
    --mud-palette-primary-text: white;
}

/* Game Theme Classes - Use these to toggle between themes */
.game-theme-dark {
    --bg-primary: var(--bg-dark-primary);
    --bg-secondary: var(--bg-dark-secondary);
    --bg-card: var(--bg-dark-card);
    --bg-card-hover: var(--bg-dark-card-hover);
    --text-primary: var(--text-dark-primary);
    --text-secondary: var(--text-dark-secondary);
    --text-muted: var(--text-dark-muted);
}

.game-theme-light {
    --bg-primary: var(--bg-light);
    --bg-secondary: var(--bg-white);
    --text-primary: var(--text-dark);
    --text-secondary: var(--text-secondary);
    --text-muted: var(--text-muted);
}

/* Apply light theme by default for now */
body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

/* Override MudBlazor default styles */
.mud-button-filled.mud-button-filled-primary {
    background-color: var(--primary-blue) !important;
    color: white !important;
}

    .mud-button-filled.mud-button-filled-primary:hover {
        background-color: var(--primary-blue-dark) !important;
    }

.mud-tabs-toolbar {
    background-color: var(--primary-blue) !important;
}

.mud-tab.mud-tab-active {
    color: white !important;
}

.mud-tab-slider {
    background-color: white !important;
}
