/* ═══════════════════════════════════════════════════════════
   EduSpark — Base Reset
   reset.css · Normalise browser defaults, set body + scrollbars.
   Load after vars.css, before globals.css.
   ═══════════════════════════════════════════════════════════ */

/* ── Box model ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Root ── */
html { font-size: 15px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Interactive elements ── */
button {
  cursor: pointer;
  font-family: inherit;
  background: none;
  border: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ── Lists ── */
ul, ol { list-style: none; }


/* ═══════════════════════════════════════════════════════════
   Scrollbars — thin, theme-aware, applied globally
   ═══════════════════════════════════════════════════════════ */

::-webkit-scrollbar         { width: 5px; height: 5px; }
::-webkit-scrollbar-track   { background: transparent; }
::-webkit-scrollbar-thumb   { background: var(--border2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

[data-theme="dark"] ::-webkit-scrollbar-thumb       { background: rgba(255,255,255,0.12); }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* Narrow variant for sidebars and small panels */
.scroll-thin::-webkit-scrollbar       { width: 4px; }
.scroll-thin::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 4px; }
