/**
 * Design System Variables
 * 
 * All CSS custom properties (variables) used throughout the dashboard.
 * Modify these values to theme the entire application.
 * 
 * @package Silva_Customer_Portal
 * @version 2.0.0
 */

:root {
    /* ========================================
       COLORS
       ======================================== */
    
    /* Primary Brand Colors */
    --primary-blue: #014385;
    --primary-blue-dark: #012951;
    --primary-blue-light: #0563ba;
    --accent-gold: #B8860B;
    
    /* Button System */
    --btn-primary-bg: #014385;
    --btn-primary-hover: #01356a;
    --btn-primary-active: #012951;
    --btn-secondary-bg: transparent;
    --btn-secondary-border: #d0d7e2;
    --btn-secondary-hover-bg: #f3f7ff;
    
    /* Semantic Colors */
    --success-green: #059669;
    --success-light: #d1fae5;
    --warning-yellow: #d97706;
    --warning-light: #fef3c7;
    --danger-red: #dc2626;
    --danger-light: #fee2e2;
    --info-blue: #0563ba;
    --info-light: #dbeafe;
    
    /* Neutral Colors */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --border-color: #e5e7eb;
    --bg-gray: #f9fafb;
    --bg-white: #ffffff;
    
    /* Semantic Token Aliases */
    --color-success: var(--success-green);
    --color-error: var(--danger-red);
    --color-warning: var(--warning-yellow);
    --color-info: var(--info-blue);
    
    /* ========================================
       SPACING SCALE
       ======================================== */
    
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* ========================================
       TYPOGRAPHY
       ======================================== */
    
    /* Font Families */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Font Sizes */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* ========================================
       SIZING & LAYOUT
       ======================================== */
    
    /* Touch Targets (WCAG AA) */
    --touch-target-min: 44px;
    --touch-target-comfortable: 48px;
    --touch-target-large: 56px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;
    
    /* Component-Specific Sizes */
    --button-padding: 10px 16px;
    --button-padding-sm: 8px 14px;
    --card-radius: 8px;
    --button-radius: 8px;
    --input-radius: 4px;
    --modal-radius: 12px;
    --portal-header-offset: 120px;
    --portal-header-height: 120px; /* Height of customer portal header/navigation */
    
    /* ========================================
       ELEVATION & SHADOWS
       ======================================== */
    
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* ========================================
       Z-INDEX SCALE
       Logical layering from lowest (1) to highest (1000)
       ======================================== */
    
    --z-base: 1;              /* Base dashboard content */
    --z-nav: 1100;            /* Navigation tabs - above WP theme header (z:1000) */
    --z-dropdown: 100;        /* Dropdown menus, tooltips */
    --z-sticky: 200;          /* Sticky elements, mobile nav */
    --z-modal-backdrop: 500;  /* Modal backdrops/overlays */
    --z-modal: 600;           /* Generic modals */
    --z-toast: 700;           /* Toast notifications */
    --z-messages: 750;        /* Messages modal */
    --z-booking: 800;         /* Booking modal base */
    --z-booking-open: 850;    /* Booking modal when open */
    --z-visualizer: 900;      /* Visualizer modal */
    --z-loading: 950;         /* Loading overlays */
    --z-tooltip: 1000;        /* Tooltips (highest layer) */
    --z-cart-backdrop: 1399;  /* Mini cart drawer backdrop */
    --z-cart-drawer: 1400;    /* Mini cart drawer (above all portal content) */
    
    /* ========================================
       TRANSITIONS & ANIMATIONS
       ======================================== */
    
    /* Durations */
    --duration-instant: 0.1s;
    --duration-fast: 0.15s;
    --duration-normal: 0.2s;
    --duration-moderate: 0.3s;
    --duration-slow: 0.5s;
    
    /* Easing Functions */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Legacy Support */
    --transition-speed: var(--duration-fast);
    
    /* ========================================
       ACCESSIBILITY
       ======================================== */
    
    /* Focus Indicators */
    --focus-outline: 2px solid #667eea;
    --focus-offset: 2px;
    --focus-color: #667eea;
    
    /* ========================================
       BREAKPOINTS (for reference in JS)
       ======================================== */
    
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}
