/**
 * Design Tokens - ProductPardesLine
 * Medical/Scientific dark theme design system
 * DICOM workstation aesthetic — neutral grays, medical blue accents
 */

:root {
    /* === COLOR SYSTEM === */

    /* Primary Brand — Medical Blue */
    --primary: #2B7CE9;
    --primary-variant: #1A5FB4;
    --primary-light: #62A0EA;
    --primary-rgb: 43, 124, 233;

    /* Secondary — Steel Blue-Gray */
    --secondary: #5E8CAE;
    --secondary-variant: #78A8CC;
    --secondary-rgb: 94, 140, 174;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #1A5FB4 0%, #2B7CE9 100%);
    --gradient-accent: linear-gradient(135deg, #2B7CE9, #1A5FB4);
    --gradient-subtle: linear-gradient(180deg, rgba(43,124,233,0.08) 0%, transparent 100%);

    /* Background Colors (Dark Neutral Theme) */
    --color-00: #0F1419;      /* Deepest background */
    --color-01: #161B22;      /* Primary background */
    --color-01-80: #161B22cc; /* With 80% opacity */
    --color-02: #1C2128;      /* Secondary background */
    --color-03: #252B33;      /* Component background */
    --color-04: #30363D;      /* Hover states */
    --color-05: #484F58;      /* Borders, dividers */

    /* Text Colors */
    --text-high: #E6EDF3;     /* High emphasis */
    --text-medium: #8B949E;   /* Medium emphasis */
    --text-disable: #484F58;  /* Disabled state */

    /* Semantic Colors */
    --error: #CF222E;
    --success: #2DA44E;
    --warning: #D29922;
    --info: #2B7CE9;

    /* Extended Palette (scientific categories) */
    --blue: #2B7CE9;
    --blue-light: #62A0EA;
    --green: #2DA44E;
    --green-light: #56D364;
    --purple: #8250DF;
    --orange: #DB8744;
    --red: #CF222E;
    --teal: #2FA373;
    --gray: #8B949E;
    --gray-dark: #484F58;

    /* === TYPOGRAPHY === */

    /* Font Families — Inter for scientific readability */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

    /* Type Scale */
    --text-h1: 1.75rem;
    --text-h2: 1.375rem;
    --text-h3: 1.125rem;
    --text-h4: 1rem;
    --text-h5: 0.875rem;
    --text-body: 0.875rem;
    --text-small: 0.8125rem;
    --text-tiny: 0.75rem;

    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Line Heights */
    --line-tight: 1.25;
    --line-normal: 1.5;
    --line-relaxed: 1.75;

    /* === SPACING === */

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    --gap: 8px;
    --padding: 16px;
    --margin: 16px;

    /* === SHADOWS & DEPTH === */

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.35);

    /* Glow Effects — Medical blue */
    --glow-primary: 0 0 20px rgba(43, 124, 233, 0.3);
    --glow-secondary: 0 0 20px rgba(94, 140, 174, 0.3);

    /* === BORDERS === */

    --border-width: 1px;
    --border-width-thick: 2px;
    --border-color: var(--color-05);
    --border-color-light: rgba(255, 255, 255, 0.06);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* === TRANSITIONS === */

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* === Z-INDEX SCALE === */

    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;

    /* === COMPONENT TOKENS === */

    --btn-height: 40px;
    --btn-padding-x: 20px;
    --btn-padding-y: 10px;
    --btn-radius: var(--radius-md);
    --btn-font-size: var(--text-small);
    --btn-font-weight: var(--weight-medium);

    --input-height: 40px;
    --input-padding-x: 12px;
    --input-radius: var(--radius-md);
    --input-bg: var(--color-03);
    --input-border: var(--border-color);
    --input-focus-border: var(--primary);

    --card-bg: var(--color-02);
    --card-border: var(--border-color-light);
    --card-padding: var(--space-lg);
    --card-radius: var(--radius-lg);

    --modal-bg: var(--color-01);
    --modal-backdrop: rgba(0, 0, 0, 0.7);
    --modal-padding: var(--space-xl);
    --modal-radius: var(--radius-lg);

    /* Scrollbar */
    --scrollbar-width: 8px;
    --scrollbar-thumb: var(--color-04);
    --scrollbar-track: transparent;
}

/* === RESPONSIVE === */

@media (min-width: 1920px) {
    :root {
        --text-h1: 2rem;
        --text-h2: 1.5rem;
        --text-h3: 1.25rem;
        --text-body: 1rem;
        --text-small: 0.875rem;
    }
}

@media (max-width: 767px) {
    :root {
        --text-h1: 1.5rem;
        --text-h2: 1.125rem;
        --space-lg: 16px;
        --space-xl: 20px;
        --padding: 12px;
        --card-padding: var(--space-md);
        --modal-padding: var(--space-lg);
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0ms;
        --transition-base: 0ms;
        --transition-slow: 0ms;
    }
}
