/* WoRide Theme Variables - Light & Dark Mode Support */

/* Light Theme (Default) */
:root,
:root[data-theme="light"] {
    /* Primary Brand Colors */
    --primary-orange: #722F37;
    --primary-teal: #EFFBBB;
    --primary-hover: #8B3A44;
    --teal-hover: #E5F7A8;
    
    /* Derived Colors */
    --primary-blue: #722F37;
    --accent-dark: #5A2530;
    --accent-light: #EFFBBB;
    --teal-light: #F5FDD6;
    --orange-light: #A84A56;
    --dark-blue: #0F172A;
    
    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --text-on-orange: #FFFFFF;
    --text-on-teal: #FFFFFF;
    
    /* Background Colors */
    --background-gray: #F8FAFC;
    --background-light: #F5FDD6;
    --background-card: #FFFFFF;
    --background-teal-light: #F9FEE8;
    --background-orange-light: #F5E5E7;
    --gradient-start: #722F37;
    --gradient-end: #EFFBBB;
    --body-gradient: linear-gradient(135deg, #F5FDD6 0%, #F9FEE8 50%, #F5E5E7 100%);
    
    /* Border Colors */
    --border-gray: #E2E8F0;
    --border-light: #F1F5F9;
    --border-orange: #722F37;
    --border-teal: #EFFBBB;
    
    /* Status Colors */
    --success-green: #10B981;
    --error-red: #EF4444;
    --warning-yellow: #722F37;
    
    /* Component Specific */
    --dot-active: #722F37;
    --dot-inactive: #E2E8F0;
    --selected-bg: #F5E5E7;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    
    /* Z-index */
    --z-overlay: 1000;
    --z-menu: 1100;
    --z-modal: 1200;
}

/* Dark Theme */
:root[data-theme="dark"] {
    /* Primary Brand Colors (slightly adjusted for dark mode) */
    --primary-orange: #A84A56;
    --primary-teal: #EFFBBB;
    --primary-hover: #C15865;
    --teal-hover: #F5FDD6;
    
    /* Derived Colors */
    --primary-blue: #A84A56;
    --accent-dark: #722F37;
    --accent-light: #F5FDD6;
    --teal-light: #F9FEE8;
    --orange-light: #C15865;
    --dark-blue: #F1F5F9;
    
    /* Text Colors */
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    --text-on-orange: #0F172A;
    --text-on-teal: #0F172A;
    
    /* Background Colors */
    --background-gray: #1E293B;
    --background-light: #0F172A;
    --background-card: #1E293B;
    --background-teal-light: #2C3E2A;
    --background-orange-light: #3D1F24;
    --gradient-start: #722F37;
    --gradient-end: #EFFBBB;
    --body-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
    
    /* Border Colors */
    --border-gray: #334155;
    --border-light: #475569;
    --border-orange: #A84A56;
    --border-teal: #EFFBBB;
    
    /* Status Colors */
    --success-green: #10B981;
    --error-red: #F87171;
    --warning-yellow: #A84A56;
    
    /* Component Specific */
    --dot-active: #A84A56;
    --dot-inactive: #475569;
    --selected-bg: #3D1F24;
    
    /* Shadows - Darker, more prominent */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
}

html {
    width: 100%;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background: var(--body-gradient);
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Button */
#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--background-card);
    border: 2px solid var(--border-gray);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1) rotate(20deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

#theme-toggle:active {
    transform: scale(0.95);
}

/* Mobile responsive */
@media (max-width: 768px) {
    #theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
