/* ============================================================================
   DLF — Reset + base global
   Reset mínimo, tipografia base, foco acessível, classes utilitárias.
   ============================================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.45;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
}

svg { display: block; }

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

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink-900);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

hr {
  border: 0;
  border-top: 1px solid var(--border-1);
  margin: 16px 0;
}

/* HTML5 `hidden` attribute precisa vencer regras de `display: flex/grid`
   adicionadas por componentes (.modal-overlay tem display: flex). */
[hidden] { display: none !important; }

/* ─── Tipografia base ────────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--fg-1); }
h1 { font: 600 32px/1.1 var(--font-display); letter-spacing: -0.02em; }
h2 { font: 600 18px/1.2 var(--font-sans); }
h3 { font: 600 14px/1.3 var(--font-sans); }
p  { margin: 0; }

/* ─── Decorativo: linha curta tipo brand ─────────────────────────────── */
.ink-bar {
  width: 56px;
  height: 3px;
  background: var(--ink-900);
  border-radius: 2px;
  margin-top: 10px;
}

/* ─── Helpers de texto/cor ───────────────────────────────────────────── */
.muted     { color: var(--fg-4); }
.muted-2   { color: var(--fg-3); }
.muted-soft { color: var(--fg-5); }
.text-danger { color: var(--red-600); }
.mono      { font-family: var(--font-mono); }
.upper     { text-transform: uppercase; letter-spacing: 0.06em; }
.center    { text-align: center; }
.right     { text-align: right; }
.nowrap    { white-space: nowrap; }
.truncate  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.required  { color: var(--red-600); margin-left: 2px; }

/* ─── Scrollbar polida (apenas WebKit) ───────────────────────────────── */
.scroll { overflow-y: auto; }
.scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.scroll::-webkit-scrollbar-thumb {
  background: var(--ink-200);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.scroll::-webkit-scrollbar-thumb:hover {
  background: var(--ink-300);
  background-clip: padding-box;
}

/* ─── Empty state genérico ───────────────────────────────────────────── */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  color: var(--fg-4);
  gap: 12px;
}
.empty .icon-xl { width: 38px; height: 38px; color: var(--fg-5); }
.empty .t { font: 500 14px/1.4 var(--font-sans); color: var(--fg-2); }
.empty .d { font: 400 13px/1.5 var(--font-sans); color: var(--fg-4); max-width: 280px; }
