/**
 * LabPulse Base Styles
 * Reset + element defaults. No component-specific rules here.
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--surface-page);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-2);
    font-weight: 650;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

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

a {
    color: var(--accent-text);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* Belt-and-braces: several components (.alert, .card, etc.) set their
   own `display`, which - being author-origin - outranks the browser's
   built-in `[hidden] { display: none }` default regardless of source
   order or specificity. Found during Step 22's visual pass: a
   position:fixed .alert with the `hidden` attribute (e.g. the error
   toasts on pages/admin/computers.php, users.php, etc.) was still
   rendering as an empty box in its fixed corner. Pre-existing, not
   theme-related - just more visually obvious against a dark page. */
[hidden] {
    display: none !important;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
}

::selection {
    background: var(--primary-100);
    color: var(--primary-800);
}

/* Scrollbar (WebKit) - subtle, not required but keeps a polished feel */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    background-clip: content-box;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
}
.icon-sm {
    width: 16px;
    height: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Motion safety: themes-motion.css. LabPulse's own Motion choice (html data-lp-motion) replaced the blanket switch that was here: on a PC with
   Windows animations off it silenced every transition, including the short fades that reduced motion still allows (SOE Phase 2.3). */
