/* ===========================================
   Nex Automotive Help Desk v3
   Global CSS Custom Properties
   =========================================== */

:root {
    /* Primary Blues */
    --primary-900: #0d2137;
    --primary-800: #1a3a5c;
    --primary-700: #1e4976;
    --primary-600: #2563a8;
    --primary-500: #3b82c4;
    --primary-400: #5a9fd4;
    --primary-300: #7eb8e4;
    --primary-200: #a8d1f0;
    --primary-100: #d4e8f8;
    --primary-50: #eef6fc;

    /* Grays */
    --gray-900: #1a1d21;
    --gray-800: #2d3239;
    --gray-700: #3f454d;
    --gray-600: #525a65;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #c4c9d1;
    --gray-200: #e2e5e9;
    --gray-100: #f1f3f5;
    --gray-50: #f8f9fa;

    /* Status Colors */
    --status-open: #f59e0b;
    --status-open-bg: #fef3c7;
    --status-open-text: #92400e;
    
    --status-in-progress: #3b82f6;
    --status-in-progress-bg: #dbeafe;
    --status-in-progress-text: #1e40af;
    
    --status-resolved: #10b981;
    --status-resolved-bg: #d1fae5;
    --status-resolved-text: #065f46;
    
    --status-closed: #6b7280;
    --status-closed-bg: #e2e5e9;
    --status-closed-text: #374151;

    /* Priority Colors */
    --priority-low: #6b7280;
    --priority-low-bg: #f1f3f5;
    --priority-low-text: #374151;
    
    --priority-medium: #f59e0b;
    --priority-medium-bg: #fef3c7;
    --priority-medium-text: #92400e;
    
    --priority-high: #ef4444;
    --priority-high-bg: #fee2e2;
    --priority-high-text: #991b1b;
    
    --priority-urgent: #dc2626;
    --priority-urgent-bg: #dc2626;
    --priority-urgent-text: #ffffff;

    /* Category Colors */
    --category-bg: #d4e8f8;
    --category-text: #1e4976;

    /* Semantic Colors */
    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --error: #ef4444;
    --error-bg: #fee2e2;
    --info: #3b82f6;
    --info-bg: #dbeafe;

    /* Spacing Scale */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-modal-backdrop: 200;
    --z-modal: 300;
    --z-toast: 400;
}

/* ===========================================
   Global Reset & Base Styles
   =========================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--gray-100);
    color: var(--gray-800);
    line-height: var(--leading-normal);
    min-height: 100vh;
}

/* Ensure the app fills the viewport */
help-desk-app {
    display: block;
    min-height: 100vh;
}
