/* Tap2bSafe beheer - zelfde kleuren als de app en de website (Brandbook v1.0). */
:root {
  --bg: #F6F7F5;
  --surface: #FFFFFF;
  --border: #D8DDD9;
  --text: #111820;
  --muted: #5E6B68;
  --green: #176D4A;
  --green-dk: #0F5237;
  --green-soft: #E8F3ED;
  --red: #C62828;
  --red-soft: #FDEDED;
  --amber: #8A5A00;
  --amber-soft: #FFF4DB;
  --dark: #121A26;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: 15px; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: 12px; border: 2px solid transparent; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none;
}
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-safe { background: var(--green); color: #fff; }
.btn-safe:hover:not(:disabled) { background: var(--green-dk); }
.btn-line { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-line:hover:not(:disabled) { border-color: var(--text); }
.btn-danger { background: var(--surface); color: var(--red); border-color: #F0C4C4; }
.btn-danger:hover:not(:disabled) { border-color: var(--red); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn-wide { width: 100%; }

/* Inloggen */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--dark); }
.gate-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 20px; padding: 32px 28px; text-align: center; }
.gate-card img { margin: 0 auto 12px; }
.gate-card h1 { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 12px; }
.gate-card p { color: var(--muted); }
.gate-card .field { text-align: left; }
.message { min-height: 1.5em; margin: 14px 0 0; font-weight: 700; }
.message[data-state="error"] { color: var(--red); }
.message[data-state="ok"] { color: var(--green); }

.field { display: block; margin: 0 0 14px; }
.field span { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field input { width: 100%; min-height: 48px; padding: 0 14px; border: 2px solid var(--border); border-radius: 12px; font: inherit; background: var(--surface); }
.field input:focus { outline: none; border-color: var(--green); }
.field-inline { max-width: 360px; }

/* Bovenbalk */
.topbar { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; }
.brand img { background: #fff; border-radius: 8px; padding: 2px; }
.tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.tab { background: transparent; border: 0; color: rgba(255, 255, 255, 0.72); font: inherit; font-weight: 800; font-size: 16px; padding: 10px 12px; border-radius: 10px; cursor: pointer; min-height: 44px; }
.tab:hover { color: #fff; }
.tab[aria-current="page"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
@media (max-width: 760px) { .tabs { order: 3; margin-left: 0; width: 100%; } }

.content { padding-top: 24px; padding-bottom: 64px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.subhead { font-size: 20px; font-weight: 800; margin: 32px 0 4px; }

/* Statuskaarten */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.card h3 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.card p { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.dot.ok { background: var(--green); }
.dot.warn { background: #D99A00; }
.dot.bad { background: var(--red); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.badge.ok { background: var(--green-soft); color: var(--green-dk); }
.badge.warn { background: var(--amber-soft); color: var(--amber); }
.badge.bad { background: var(--red-soft); color: var(--red); }

.numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.number { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.number strong { display: block; font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.number span { color: var(--muted); font-size: 14px; }

/* Tabellen */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--bg); }
tr:last-child td { border-bottom: 0; }
td.actions { text-align: right; white-space: nowrap; }
td.nowrap { white-space: nowrap; }

/* Passkeys */
.passkeys { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.passkeys li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; flex-wrap: wrap; }
.passkeys strong { display: block; }
.add-passkey { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; max-width: 520px; }

.device-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
