/* ==========================================================================
   RESET.CSS — Normalization & Base Styles
   Option 3: Modern Tech / Neo-Corporate Dark Theme
   SRS Management Website
   ========================================================================== */

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

/* ---- Document ---- */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---- Body ---- */
body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  overflow-x: hidden;
}

/* ---- Selection ---- */
::selection {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

::-moz-selection {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--color-accent-dark);
  border-radius: 3px;
}

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

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-dark) var(--color-bg);
}

/* ---- Media Elements ---- */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---- Links ---- */
a {
  color: inherit;
  text-decoration: none;
}

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

/* ---- Inputs & Buttons ---- */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

textarea {
  resize: vertical;
}

/* ---- Table ---- */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* ---- Paragraph ---- */
p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* ---- Strong / Em ---- */
strong,
b {
  font-weight: 600;
}

/* ---- Fieldset ---- */
fieldset {
  border: none;
}

/* ---- Dialog ---- */
dialog {
  padding: 0;
  border: none;
}

/* ---- Summary ---- */
summary {
  cursor: pointer;
}

/* ---- Abbr ---- */
abbr[title] {
  text-decoration: none;
}

/* ---- HR ---- */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
}

/* ---- Focus Visible ---- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ---- Reduced Motion Baseline ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
