/* Beheerpaneel — bouwt op app.css, alleen wat de gastenpagina niet nodig heeft. */

/* ── PIN ─────────────────────────────────────────────────────────────── */
.pin {
  position: relative; z-index: 1;
  padding: 64px 26px; max-width: 340px; margin: 0 auto; text-align: center;
}
.pin h2 { font-family: var(--font-display); font-size: 27px; font-weight: 500; }
.pin p { margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
/* Verwacht aantal cijfers en waar de code uit komt. Zie je hier 6 terwijl je er
   8 instelde, dan is de app pool nog niet herstart of draait de oude versie. */
.pin__meta {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.pin__dots { display: flex; justify-content: center; gap: 10px; margin: 26px 0; }
.pin__dots s { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line); transition: all .2s; }
.pin__dots s.on { background: var(--moss-diep); border-color: var(--moss-diep); transform: scale(1.15); }
.pin__err { margin-top: 18px; min-height: 20px; font-size: 13px; color: var(--clay-diep); font-weight: 600; }

.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.keys button {
  min-height: 58px; border-radius: var(--r-md); background: var(--paper-2);
  border: 1px solid var(--line-2); font-size: 20px; font-family: var(--font-display);
  box-shadow: var(--shadow-1); transition: background .15s;
}
.keys button:hover { background: var(--paper-3); }
.keys button.k-alt { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* ── Dashboard ───────────────────────────────────────────────────────── */
.adm {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
  padding: 28px calc(env(safe-area-inset-right) + 22px) 60px calc(env(safe-area-inset-left) + 22px);
}
.adm__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.adm__top h2 { font-family: var(--font-display); font-size: 30px; font-weight: 500; margin-right: auto; }
.adm__top h2 s {
  display: block; font-family: var(--font-body); font-size: 11.5px; font-weight: 500;
  color: var(--ink-3); text-decoration: none; letter-spacing: .04em; margin-top: 3px;
}
/* Zichtbaar dat je in beheermodus zit, zodat je niet per ongeluk modereert. */
.adm__badge {
  padding: 5px 12px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--clay-soft); color: var(--clay-diep);
}
.adm__top .btn { text-decoration: none; }

.warn {
  margin-bottom: 20px; padding: 13px 16px; border-radius: var(--r-md);
  background: var(--brass-soft); border: 1px solid color-mix(in srgb, var(--brass) 34%, transparent);
  font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--brass) 85%, var(--ink));
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 10px; }
.stat { padding: 15px 16px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.stat b {
  display: block; font-family: var(--font-display); font-size: 30px; font-weight: 500;
  font-variant-numeric: tabular-nums; line-height: 1.05; white-space: nowrap;
}
.stat span { display: block; margin-top: 5px; }
.stat--vault { background: var(--brass-soft); border-color: color-mix(in srgb, var(--brass) 30%, transparent); }
.stat--vault b { color: color-mix(in srgb, var(--brass) 80%, var(--ink)); }
.stat--album { background: var(--paper-3); }
.stat--album b { color: var(--goud-diep); }
.stat-foot { margin-top: 11px; font-size: 12px; line-height: 1.55; color: var(--ink-3); }
.stat-foot b { color: var(--ink-2); font-weight: 600; }

.panels { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
@media (min-width: 820px) { .panels { grid-template-columns: 1fr 1fr; } }
.panel { padding: 19px 20px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.panel h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.panel > p { margin-top: 6px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.panel__row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 16px; }
.panel__note { font-size: 11.5px; line-height: 1.5; color: var(--ink-3); margin-top: 8px; }
.panel .btn { text-decoration: none; }

.qr-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; flex-wrap: wrap; }
.qr-box img { border-radius: var(--r-sm); background: #fff; padding: 7px; flex: none; }
.qr-box > div { flex: 1; min-width: 190px; }
.qr-box code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 11.5px;
  background: var(--paper-3); padding: 3px 7px; border-radius: 4px; color: var(--ink);
  overflow-wrap: anywhere;
}

.devices { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; max-height: 320px; overflow-y: auto; }
.dev { display: flex; align-items: center; gap: 9px; }
.dev input {
  flex: 1; min-width: 0; min-height: 40px; padding: 9px 12px; font-size: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.dev input:focus { outline: none; border-color: var(--moss-2); }
.dev em { font-style: normal; font-size: 11.5px; color: var(--ink-3); flex: none; min-width: 62px; text-align: right; }

.mod-kop {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  margin-top: 34px;
}
/* Verklaart waarom je hier foto's ziet die in de wachtkamer staan. Zonder deze
   uitleg lijkt een zichtbare foto met het label "Wachtkamer" een tegenspraak. */
.mod-uitleg {
  margin-top: 8px; max-width: 68ch;
  font-size: 13px; line-height: 1.6; color: var(--ink-2);
}
.mod-uitleg b { color: var(--ink); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 14px; }
.chip {
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); transition: all .16s;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 11px; }
.mod {
  border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden;
  background: var(--paper-2); box-shadow: var(--shadow-1); display: flex; flex-direction: column;
}
.mod__img { position: relative; aspect-ratio: 1; background: var(--paper-3); border: 0; padding: 0; width: 100%; cursor: pointer; }
.mod__img img { width: 100%; height: 100%; object-fit: cover; }
.mod.is-hidden .mod__img img { filter: grayscale(1) brightness(1.12); opacity: .45; }
.mod__pill {
  position: absolute; top: 7px; left: 7px;
  padding: 4px 9px; border-radius: 999px; font-size: 9.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
}
.mod__pill[data-s="pending"] { background: var(--brass-soft); color: color-mix(in srgb, var(--brass) 85%, var(--ink)); }
.mod__pill[data-s="live"]    { background: var(--moss-soft); color: var(--moss-diep); }
.mod__pill[data-s="hidden"]  { background: var(--paper-3); color: var(--ink-3); }
.mod__kind {
  position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(26,30,22,.78); color: #F2EDE1;
}
.mod__kind svg { width: 12px; height: 12px; }
/* Onderaan links: rechtsboven zit al het soort-icoontje. */
.mod__harten {
  position: absolute; bottom: 7px; left: 7px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(26,30,22,.78); color: #F7E4D9;
  font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.mod__harten svg { width: 11px; height: 11px; }
.mod__body { padding: 10px 11px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.mod__body b { font-size: 12.5px; font-weight: 600; }
.mod__body em { font-style: normal; font-size: 10.5px; color: var(--ink-3); line-height: 1.35; }
.mod__acts { display: flex; border-top: 1px solid var(--line-2); }
.mod__acts button {
  flex: 1; min-height: 40px; font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.mod__acts button:hover { background: var(--paper-3); color: var(--ink); }
.mod__acts button + button { border-left: 1px solid var(--line-2); }
.mod__acts button.dngr:hover { background: var(--clay-soft); color: var(--clay-diep); }

/* Album: een schakelaar, geen actie. Daarom blijft de aan-stand zichtbaar
   in plaats van alleen bij hover op te lichten. */
.mod__acts button.alb.aan { background: var(--brass-soft); color: var(--goud-diep); }
.mod__acts button.alb.aan:hover { background: color-mix(in srgb, var(--brass) 18%, var(--paper-2)); }
.mod__acts button.alb:disabled { opacity: .5; }

.empty { grid-column: 1 / -1; padding: 22px 0; font-size: 13px; color: var(--ink-3); }
