/* SmartCare Admin — Base resets + typography */

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

html, body {
    margin: 0;
    padding: 0;
    background: var(--surface-0);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-3);
    color: var(--text-primary);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    font-weight: 700;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

p { margin: 0 0 var(--space-3); color: var(--text-secondary); }

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--brand-primary-hover); }
a:focus-visible {
    outline: none;
    box-shadow: var(--shadow-glow);
    border-radius: var(--radius-sm);
}

::selection {
    background: var(--brand-200);
    color: var(--brand-900);
}
[data-theme="dark"] ::selection {
    background: var(--brand-700);
    color: #ffffff;
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-pill);
    border: 2px solid var(--surface-0);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Reusable display headings */
.display-1 { font-size: var(--fs-5xl); font-weight: 800; letter-spacing: -0.03em; }
.display-2 { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -0.025em; }

.text-muted     { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-primary-strong { color: var(--text-primary) !important; }

hr.divider {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: var(--space-6) 0;
}

code, kbd, samp, pre {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.92em;
}
code {
    background: var(--surface-2);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* Focus ring (global) */
:focus-visible {
    outline: none;
}
button:focus-visible, [role="button"]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible {
    box-shadow: var(--shadow-glow);
    border-color: var(--brand-primary);
}

/* Image defaults */
img { max-width: 100%; display: block; }
