/* ================================================================
   GASTROGEST — Reset & Base
   Arquivo: assets/css/reset.css
   ================================================================ */

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

/* --- Documento ---------------------------------------------------- */
html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Tipografia --------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--color-text-primary);
}

p { line-height: var(--lh-base); }

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

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

/* --- Imagens ------------------------------------------------------ */
img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

/* --- Formulários -------------------------------------------------- */
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  line-height: inherit;
}

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

input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: none;
}

/* --- Tabelas ------------------------------------------------------ */
table {
  border-collapse: collapse;
  width: 100%;
}

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

/* --- Seleção de texto --------------------------------------------- */
::selection {
  background-color: var(--color-primary-alpha-20);
  color: var(--color-primary-darker);
}

/* --- Focus visível ------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

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

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

/* Scrollbar na sidebar (mais discreta) */
.sidebar-nav::-webkit-scrollbar {
  width: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
}
