/* ============================================================
   MAIN.CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  /* ---------- Cor: base ---------- */
  --bg: #eef3fb;
  --surface: #ffffff;
  --surface-alt: #eef5fc;
  --surface-hover: #e3edf9;
  --border: #d4dee9;
  --border-strong: #c3d5ea;

  /* ---------- Cor: texto ---------- */
  --ink: #0d1b2e;
  --ink-soft: #55708c;
  --ink-faint: #93a8bd;

  /* ---------- Cor: acento (azul da referência) ---------- */
  --accent: #1b3554;
  --accent-2: #536888;
  --accent-soft: #dceefc;
  --accent-contrast: #ffffff;

  /* ---------- Cor: estados ---------- */
  --ok: #2f9e6e;
  --ok-soft: #e2f5ec;
  --warn: #c98a1f;
  --warn-soft: #fbf1dc;
  --danger: #d1453d;
  --danger-soft: #fbeae9;
  --info: #1d4ed8;
  --info-soft: #dbeafe;

  /* ---------- Tipografia ---------- */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* ---------- Layout ---------- */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --sidebar-w: 250px;
  --topbar-h: 72px;

  /* ---------- Sombra ---------- */
  --shadow-sm: 0 2px 6px rgba(18, 38, 34, 0.06);
  --shadow-md: 0 12px 28px -10px rgba(18, 38, 34, 0.16);
  --shadow-lg: 0 24px 50px -18px rgba(18, 38, 34, 0.28);

  --transition: .15s ease;
}

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

html{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body{
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

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

ul, ol{
  list-style: none;
}

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

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

/* ---------- Tipografia base ---------- */
h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

h1{ font-size: 22px; letter-spacing: -0.01em; }
h2{ font-size: 16px; }
h3{ font-size: 14.5px; }

p{
  color: var(--ink-soft);
  font-size: 13px;
}

code{
  font-family: var(--font-mono);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--accent-2);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar{
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track{
  background: transparent;
}
::-webkit-scrollbar-thumb{
  background: var(--border-strong);
  border-radius: var(--radius-pill);
  border: 3px solid var(--bg);
}

/* ---------- Foco visível (acessibilidade) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Utilitários usados soltos no HTML ---------- */
.crumb-dim{
  color: var(--ink-faint);
}
.crumb-sep{
  color: var(--ink-faint);
  margin: 0 6px;
}
.sidebar-foot{
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}

