/* ============================================================
   variables.css — Design Tokens
   Xinle Medical — Global theme tokens
   ============================================================ */

:root {
    /* Brand colors */
    --color-primary: #004B87;
    --color-primary-dark: #00345f;
    --color-primary-darker: #002441;
    --color-primary-light: #0b6cb3;
    --color-primary-50: #eef4fa;
    --color-primary-100: #d9e7f4;

    --color-accent: #06B6D4;
    --color-accent-dark: #0493ac;
    --color-accent-light: #4fd1e6;
    --color-accent-50: #e6f9fc;
    --color-accent-100: #cdf1f7;

    /* Neutrals */
    --color-white: #ffffff;
    --color-off-white: #f6f8fb;
    --color-cloud: #eef2f7;
    --color-line: #e3e9f0;
    --color-line-strong: #d2dbe6;

    --color-text: #0f1c2e;
    --color-text-secondary: #4a5a6e;
    --color-text-muted: #7c8b9e;

    /* Functional */
    --color-success: #16a34a;
    --color-warning: #d97706;
    --color-error: #dc2626;

    /* Typography */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extra: 800;

    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-md: 1.125rem;   /* 18px */
    --text-lg: 1.25rem;    /* 20px */
    --text-xl: 1.5rem;     /* 24px */
    --text-2xl: 1.875rem;  /* 30px */
    --text-3xl: 2.25rem;   /* 36px */
    --text-4xl: 3rem;      /* 48px */
    --text-5xl: 3.75rem;   /* 60px */

    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    /* Spacing scale */
    --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;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Section rhythm */
    --section-pad-y: clamp(3rem, 5vw, 5rem);
    --section-gap: clamp(2rem, 4vw, 3rem);

    /* Layout */
    --shell-max: 1600px;
    --shell-pad-desktop: 3vw;
    --shell-pad-tablet: 4vw;
    --shell-pad-mobile: 5vw;

    /* Header */
    --header-height: 5.25rem;
    --topbar-height: 2.5rem;

    /* Radius */
    --radius-sm: 0.375rem;
    --radius: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 28, 46, 0.06);
    --shadow: 0 4px 16px rgba(15, 28, 46, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 28, 46, 0.14);
    --shadow-xl: 0 24px 64px rgba(15, 28, 46, 0.2);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms var(--ease);
    --transition: 250ms var(--ease);
    --transition-slow: 450ms var(--ease-out);

    /* Z-index scale */
    --z-header: 100;
    --z-drawer: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-sidebar: 150;
}
