/* ═══════════════════════════════════════════════════════
   CLÍNICA VIRTUAL — Design System Tokens
   Inspired by Healthai reference image (teal palette)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* ─── Primary Palette (Teal) ─── */
    --teal-50:  #E0F2F1;  --teal-100: #B2DFDB;  --teal-200: #80CBC4;
    --teal-300: #4DB6AC;  --teal-400: #26A69A;  --teal-500: #009688;
    --teal-600: #00897B;  --teal-700: #00796B;  --teal-800: #00695C;
    --teal-900: #004D40;

    /* ─── Accent (Coral / Orange) ─── */
    --coral-50: #FFF3E0;  --coral-100: #FFE0B2; --coral-300: #FFB74D;
    --coral-500: #FF9800;  --coral-700: #F57C00;

    /* ─── Neutrals ─── */
    --gray-50:  #F8FAFC;  --gray-100: #F1F5F9;  --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;  --gray-400: #94A3B8;  --gray-500: #64748B;
    --gray-600: #475569;  --gray-700: #334155;  --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* ─── Semantic ─── */
    --color-primary:       var(--teal-500);
    --color-primary-light: var(--teal-300);
    --color-primary-dark:  var(--teal-700);
    --color-primary-bg:    var(--teal-50);
    --color-accent:        var(--coral-500);
    --color-success: #10B981;  --color-success-bg: #ECFDF5;
    --color-warning: #F59E0B;  --color-warning-bg: #FFFBEB;
    --color-danger:  #EF4444;  --color-danger-bg:  #FEF2F2;
    --color-info:    #3B82F6;  --color-info-bg:    #EFF6FF;

    /* ─── Backgrounds ─── */
    --bg-body:    #F0F4F8;
    --bg-card:    #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --bg-hover:   var(--teal-50);
    --bg-active:  var(--teal-100);
    --bg-overlay: rgba(15, 23, 42, 0.5);
    --bg-glass:   rgba(255, 255, 255, 0.8);

    /* ─── Text ─── */
    --text-primary:   var(--gray-900);
    --text-secondary: var(--gray-500);
    --text-muted:     var(--gray-400);
    --text-inverse:   #FFFFFF;
    --text-link:      var(--teal-600);

    /* ─── Typography ─── */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-xs: .75rem; --font-sm: .8125rem; --font-base: .875rem;
    --font-md: 1rem;   --font-lg: 1.125rem; --font-xl: 1.25rem;
    --font-2xl: 1.5rem; --font-3xl: 1.875rem; --font-4xl: 2.25rem;
    --fw-light: 300; --fw-regular: 400; --fw-medium: 500;
    --fw-semibold: 600; --fw-bold: 700; --fw-black: 900;

    /* ─── Spacing ─── */
    --space-xs: .25rem; --space-sm: .5rem; --space-md: .75rem;
    --space-base: 1rem; --space-lg: 1.5rem; --space-xl: 2rem;
    --space-2xl: 3rem; --space-3xl: 4rem;

    /* ─── Radii ─── */
    --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px;
    --radius-xl: 18px; --radius-2xl: 24px;
    --radius-full: 50%; --radius-pill: 9999px;

    /* ─── Shadows ─── */
    --shadow-sm:   0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
    --shadow-md:   0 4px 6px rgba(0,0,0,.04), 0 2px 4px rgba(0,0,0,.03);
    --shadow-lg:   0 10px 25px rgba(0,0,0,.06), 0 4px 10px rgba(0,0,0,.03);
    --shadow-xl:   0 20px 40px rgba(0,0,0,.08);
    --shadow-card: 0 2px 12px rgba(0,0,0,.05);
    --shadow-card-hover: 0 8px 30px rgba(0,0,0,.1);

    /* ─── Transitions ─── */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   350ms ease;
    --transition-spring: 400ms cubic-bezier(.34,1.56,.64,1);

    /* ─── Layout ─── */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --header-height: 68px;
    --max-content: 1280px;

    /* ─── Z-Index ─── */
    --z-dropdown: 100; --z-sticky: 200; --z-modal: 300;
    --z-overlay: 400;  --z-toast: 500;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    font-size: var(--font-base);
    font-weight: var(--fw-regular);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    min-height: 100vh;
}
a { text-decoration: none; color: var(--text-link); transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, button, textarea, select { font-family: inherit; font-size: inherit; outline: none; border: none; background: none; }
button { cursor: pointer; }
::selection { background: var(--teal-200); color: var(--teal-900); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
