/* Huisstijl Van Ree Accountants voor de Azure-versie van AVG in Control.
   Overgenomen uit de Interimcontrole-tool (frontend/src/index.css, gebaseerd op Brandbook Visuele
   Identiteit v1.1): Diepgroen voor koppen en merk, Lentegroen als merkaccent (geen statuskleur),
   Aqua Blauw alleen voor de hoofdactie, Lora voor de paginatitel en Silka voor de rest,
   ronding op drie van de vier hoeken voor vlakken en pilvormige knoppen.
   Alleen licht thema, net als de Interimcontrole-tool.
   Silka is een gelicenseerd lettertype; webgebruik moet nog schriftelijk bevestigd worden
   (zie de opmerking in de Interimcontrole-tool). Lora: SIL Open Font License (fonts/Lora-OFL.txt). */

@font-face { font-family: "Silka"; src: url("fonts/Silka-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Silka"; src: url("fonts/Silka-SemiBold.otf") format("opentype"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Silka"; src: url("fonts/Silka-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #f2f4f1;
  --ink: #20201f;
  --heading: #194a27;
  --muted: #4d4d4b;
  --line: #e2e4e0;
  --accent: #194a27;
  --accent-ink: #ffffff;
  --accent-soft: #e8eee6;
  --cta: #36a0b5;
  --cta-hover: #2c8296;
  --cta-soft: rgba(54, 160, 181, 0.08);
  --cta-tekst: #1f6b78;
  --lentegroen: #9bc42d;
  --lentegroen-soft: #f2f7e6;
  --ok: #4c6f1c; --ok-soft: #eef6dc;
  --warn: #a15c00; --warn-soft: #fbf0dd;
  --bad: #a4262c; --bad-soft: #fbe9e9;
  --na: #6b6b69; --na-soft: #ececea;
  --shadow: 0 1px 2px rgba(20, 24, 28, 0.05), 0 1px 1px rgba(20, 24, 28, 0.04);
  --shadow-hover: 0 6px 16px rgba(20, 24, 28, 0.08), 0 2px 5px rgba(20, 24, 28, 0.05);
  --radius-brand: 14px 14px 14px 3px;
  --radius-brand-sm: 8px 8px 8px 2px;
  --f-display: "Silka", "Segoe UI", system-ui, sans-serif;
  --f-body: "Silka", "Segoe UI", system-ui, sans-serif;
  --f-serif: "Lora", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: light; } }

body { -webkit-font-smoothing: antialiased; }

/* Typografie: Lora alleen voor de paginatitel, Silka voor de rest; koppen in Diepgroen. */
h1, h2, h3 { color: var(--heading); letter-spacing: 0; }
h1 { font-family: var(--f-serif); font-weight: 500; font-size: 34px; line-height: 42px; }
h2 { font-weight: 700; font-size: 20px; line-height: 28px; }
h3 { font-weight: 600; font-size: 17px; line-height: 24px; }
.eyebrow { font-family: var(--f-body); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--lentegroen); margin-right: 8px; vertical-align: 3px; }

/* Zijbalk met logo en Lentegroen merklijn. */
.side { box-shadow: inset -3px 0 0 var(--lentegroen); border-right: 0; }
.brand { flex-direction: column; align-items: flex-start; gap: 10px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); }
.brand-logo { display: block; width: 168px; height: auto; }
.brand b { font-family: var(--f-body); font-weight: 600; color: var(--heading); font-size: 16px; }
.nav a { border-radius: var(--radius-brand-sm); }
.nav a.active { background: var(--lentegroen-soft); color: var(--heading); box-shadow: inset 3px 0 0 var(--lentegroen); font-weight: 600; }
.nav a:focus-visible, :focus-visible { outline-color: var(--cta); }

/* Knoppen: pilvorm; Aqua Blauw alleen voor de hoofdactie. */
.btn { border-radius: 999px; padding: 8px 16px; font-weight: 600; border-width: 1.5px; min-height: 36px; }
.btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn.primary { background: var(--cta); border-color: var(--cta); color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(54, 160, 181, 0.3); }
.btn.primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); filter: none; }
.btn.ghost { color: var(--cta); }
.btn.ghost:hover { background: transparent; text-decoration: underline; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn.danger.armed { background: var(--bad); color: #fff; }

/* Vlakken: ronding op drie van de vier hoeken, zachte schaduw. */
.panel, .tile, .table-wrap, .snap { border-radius: var(--radius-brand); box-shadow: var(--shadow); }
.tile { position: relative; overflow: hidden; padding-top: 17px; }
.tile::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--lentegroen); }
.tile:hover { border-color: var(--line); box-shadow: var(--shadow-hover); }
.tile .t-n, .ring .val b { font-family: var(--f-serif); font-weight: 600; color: var(--heading); }
.fact b { color: var(--heading); font-weight: 700; }
.verdict { border-radius: var(--radius-brand); box-shadow: var(--shadow); border: 1px solid var(--line); }
.banner, .callout { border-radius: var(--radius-brand-sm); }
.banner { background: var(--cta-soft); border: 1px solid rgba(54, 160, 181, 0.25); color: var(--cta-tekst); }
.banner.local { background: var(--warn-soft); border-color: rgba(161, 92, 0, 0.2); color: var(--ink); }

/* Invoervelden en tabellen. */
.field input, .field select, .field textarea, .search, .status-select { border-radius: var(--radius-brand-sm); background: var(--surface); border-color: #c7cac5; }
.field input:focus, .field select:focus, .field textarea:focus, .search:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 3px rgba(54, 160, 181, 0.22); }
th { background: var(--surface-2); color: var(--muted); }
tbody tr:hover td { background: var(--lentegroen-soft); }
.support a, .side-foot a { color: var(--cta-tekst); }
.issue:hover .issue-t { color: var(--heading); }

/* Status-pills met een dunne rand, zoals de badges in de Interimcontrole-tool. */
.pill { font-weight: 600; border: 1px solid rgba(77, 77, 75, 0.14); }
.pill.ok { border-color: rgba(76, 111, 28, 0.16); }
.pill.warn { border-color: rgba(161, 92, 0, 0.2); }
.pill.bad { border-color: rgba(164, 38, 44, 0.22); }
.pill.info { background: var(--accent-soft); color: var(--accent); border-color: rgba(25, 74, 39, 0.14); }

.drawer { border-radius: 14px 0 0 3px; }
.drawer-head h2 { font-family: var(--f-serif); font-weight: 500; }
.toast { border-radius: 999px; background: var(--heading); color: #fff; }

@media (max-width: 820px) {
  .side { box-shadow: inset 0 -3px 0 var(--lentegroen); }
  .brand { border-bottom: 0; padding-bottom: 0; }
  .brand-logo { width: 120px; }
  h1 { font-size: 26px; line-height: 32px; }
}
