/**
 * DentistWare Design System
 * Global CSS Variables - Color Palette & Design Tokens
 */

:root {
    /* Primary Colors */
    --primary-color: #0f766e;
    --primary-dark: #115e59;
    --primary-light: #14b8a6;
    --primary-lighter: #5eead4;
    --primary-lightest: #ccfbf1;
    --primary-rgb: 15, 118, 110;
    --dental-blue: #2563eb;
    --dental-blue-soft: #dbeafe;
    
    /* Secondary Colors */
    --secondary-color: #f7fbfb;
    --secondary-dark: #e2e8f0;
    --secondary-light: #eef7f6;
    
    /* Accent Colors */
    --accent-color: #d97706;
    --accent-dark: #b45309;
    --accent-light: #fbbf24;
    
    /* Text Colors */
    --text-primary: #172033;
    --text-secondary: #526173;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f6faf9;
    --bg-gray: #eef4f3;
    --bg-dark: #0f172a;
    
    /* Border Colors */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    
    /* Status Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --success-bg: #dcfce7;
    --success-border: #86efac;
    --danger-bg: #fee2e2;
    --danger-border: #fca5a5;
    --warning-bg: #fef3c7;
    --warning-border: #fcd34d;
    --info-bg: #dbeafe;
    --info-border: #bfdbfe;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 20px -14px rgba(15, 23, 42, 0.34);
    --shadow-lg: 0 18px 36px -26px rgba(15, 23, 42, 0.45);
    --shadow-xl: 0 24px 48px -32px rgba(15, 23, 42, 0.5);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.5rem;
    --radius-2xl: 0.75rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* Navbar Height */
    --navbar-height: 80px;
    --navbar-height-scrolled: 70px;
    
    /* Container Max Width */
    --container-max-width: 1200px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    /* Primary Colors (Adjusted for dark mode) */
    --primary-color: #5eead4;
    --primary-dark: #14b8a6;
    --primary-light: #99f6e4;
    --primary-lighter: #ccfbf1;
    --primary-lightest: #134e4a;
    --primary-rgb: 94, 234, 212;
    
    /* Secondary Colors */
    --secondary-color: #1e293b;
    --secondary-dark: #0f172a;
    --secondary-light: #334155;
    
    /* Accent Colors */
    --accent-color: #fbbf24;
    --accent-dark: #d97706;
    --accent-light: #fde68a;
    
    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #0f172a;
    --bg-light: #1e293b;
    --bg-gray: #334155;
    --bg-dark: #020617;
    
    /* Border Colors */
    --border-color: #334155;
    --border-light: #1e293b;
    --border-dark: #475569;
    
    /* Status Colors */
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --error-color: #f87171;
    --info-color: #60a5fa;
    --success-bg: rgba(16, 185, 129, 0.14);
    --success-border: rgba(52, 211, 153, 0.34);
    --danger-bg: rgba(239, 68, 68, 0.14);
    --danger-border: rgba(248, 113, 113, 0.34);
    --warning-bg: rgba(251, 191, 36, 0.14);
    --warning-border: rgba(251, 191, 36, 0.36);
    --info-bg: rgba(37, 99, 235, 0.16);
    --info-border: rgba(96, 165, 250, 0.34);
    
    /* Shadows (Darker shadows for dark mode) */
    --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.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--primary-light);
    color: var(--text-white);
}

/* Focus Styles */
:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.28);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
