/* ============================================================
   css/reset.css
   Normalize browser defaults so the dashboard looks identical
   in Chrome, Firefox, Safari, and Edge.
   ============================================================ */

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

/* ── Base ──────────────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;

  /* Prevent flash of unstyled content */
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.ready {
  opacity: 1;
}

/* ── Typography reset ──────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

a:hover {
  text-decoration: none;
}

/* ── Media ─────────────────────────────────────────────── */
img, svg {
  display: block;
  max-width: 100%;
}

/* ── Forms (not used much but good to reset) ───────────── */
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

/* ── Scrollbar styling (Chrome/Edge) ───────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: var(--border-base);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal);
}

/* ── Selection ─────────────────────────────────────────── */
::selection {
  background: var(--teal-subtle);
  color: var(--teal);
}

/* ── Google Fonts import ───────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:wght@300;400;500;600&display=swap');