/**
 * Theme CSS - Dark/Light Mode Variables
 * Define color schemes for both themes
 */

:root {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #e3e8ef;
    
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    
    --border: #e2e8f0;
    --border-light: #edf2f7;
    
    --accent: #3182ce;
    --accent-hover: #2c5aa0;
    --accent-light: #ebf8ff;
    
    --success: #38a169;
    --success-light: #f0fff4;
    
    --warning: #d69e2e;
    --warning-light: #fffaf0;
    
    --error: #e53e3e;
    --error-light: #fff5f5;
    
    --info: #3182ce;
    --info-light: #ebf8ff;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transition */
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-tertiary: #4a5568;
    
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-tertiary: #cbd5e0;
    
    --border: #4a5568;
    --border-light: #2d3748;
    
    --accent: #4299e1;
    --accent-hover: #63b3ed;
    --accent-light: #2c5282;
    
    --success: #48bb78;
    --success-light: #22543d;
    
    --warning: #ed8936;
    --warning-light: #7c2d12;
    
    --error: #fc8181;
    --error-light: #742a2a;
    
    --info: #4299e1;
    --info-light: #2c5282;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

/* Typography */
:root {
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Monaco', 'Courier New', monospace;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
}

/* Spacing */
:root {
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
}

/* Border Radius */
:root {
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
}

/* Layout */
:root {
    --container-max-width: 1280px;
    --sidebar-width: 250px;
    --header-height: 64px;
}

/* Z-Index Scale */
:root {
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Animation Durations */
:root {
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 350ms;
}

/* Vehicle Colors (can be customized per vehicle in DB) */
:root {
    --vehicle-blue: #0066cc;
    --vehicle-yellow: #ffcc00;
    --vehicle-red: #cc0000;
    --vehicle-green: #00cc66;
    --vehicle-purple: #9933cc;
    --vehicle-orange: #ff8800;
    --vehicle-teal: #00cccc;
    --vehicle-pink: #ff69b4;
}
