/* Opmaak van de hoofdpagina (dashboard). Kleuren en basis staan in basis.css. */
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
header { max-width: 1200px; margin: 0 auto; padding: 20px 16px 8px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
h1 { margin: 0; font-size: 26px; letter-spacing: .5px; }
h1 .r { color: #e8483b; } h1 .w { color: #fff; } h1 .b { color: #4c8dff; }
nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
nav a { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 13px; color: var(--text); }
nav a:hover { border-color: var(--link); text-decoration: none; }
.sub { color: var(--muted); font-size: 13px; }
main { max-width: 1200px; margin: 0 auto; padding: 8px 16px 40px; display: grid; gap: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.card h2 { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--off); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .dot.warn { background: var(--warn); }
.hostname { font-weight: 600; margin: 2px 0 10px; word-break: break-word; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 13px; color: var(--muted); }
.chip b { color: var(--text); font-weight: 600; }
.games { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.game { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.game span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.game small { color: var(--muted); display: block; font-size: 12px; }
.game button { flex-shrink: 0; white-space: nowrap; }
.ic { display: inline-block; min-width: 1.15em; text-align: center; }
.ic.img { width: 1.15em; height: 1.15em; vertical-align: -0.2em; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.searchwrap { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; }
.searchwrap .ic { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.searchwrap input { flex: 1; min-width: 0; padding-left: 34px; }
.iconslots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.iconslot { display: flex; align-items: center; gap: 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.iconslot .ic { font-size: 22px; }
.iconslot div { flex: 1; min-width: 0; } .iconslot small { color: var(--muted); display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconresults { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); margin-top: 12px; max-height: 55vh; overflow: auto; }
.iconresults button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; min-width: 0; }
.iconresults .ic { font-size: 40px; color: var(--text); }
.iconresults small { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#credits { display: block; margin-top: 4px; }
.gamebar { margin-bottom: 10px; flex-wrap: nowrap; }
.gamebar input { flex: 1; min-width: 0; }
.gamebar button { white-space: nowrap; }
code.addr { background: var(--panel2); padding: 2px 6px; border-radius: 6px; font-size: 13px; }
code.copy { cursor: pointer; border: 1px solid transparent; } code.copy:hover { border-color: var(--link); color: #79c0ff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); font-style: italic; padding: 6px 0; }
.utopt { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; align-items: center; }
input, select, button, textarea { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 0; }
input { flex: 1 1 160px; } select { flex: 1 1 120px; }
textarea { width: 100%; font: 13px/1.5 ui-monospace, Consolas, monospace; }
button { cursor: pointer; background: #262b33; } button:hover { border-color: #3d4450; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { color: #ff7b72; } button.small { padding: 3px 9px; font-size: 13px; }
pre.console { background: #0a0b0d; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin: 8px 0 0; height: 220px; overflow: auto; font: 12px/1.4 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.admin, .admincard { display: none; }
body.is-admin .admin { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
body.is-admin .admincard { display: block; }
#logout { display: none; } body.is-admin #logout { display: inline-block; } body.is-admin #loginform { display: none; }
.login { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .login .msg { color: #ff7b72; font-size: 13px; }
.bfmecard { border-color: #8a6a2a; background: radial-gradient(120% 120% at 100% 0%, rgba(212,168,75,.14), transparent 55%), var(--panel); }
.bfmecard h2 { color: var(--bf, #d4a84b); }
/* De drie BFME-spellen bovenaan op een rij (op smalle schermen onder elkaar) */
.bfmerow { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .bfmerow { grid-template-columns: minmax(0, 1fr); } }
.bfmecard { --bf: #d4a84b; --bfg: 212,168,75; --bfl: #8a6a2a; border-color: var(--bfl); background: radial-gradient(120% 120% at 100% 0%, rgba(var(--bfg),.14), transparent 55%), var(--panel); }
.bfmecard.bfme1 { --bf: #f2a640; --bfg: 242,166,64; --bfl: #8a5418; } .bfmecard.bfme2 { --bf: #8cc26a; --bfg: 140,194,106; --bfl: #46703a; } .bfmecard.rotwk { --bf: #86acd6; --bfg: 134,172,214; --bfl: #34506e; }
.bfmecard a.btnlink { background: var(--bf); }
a.btnlink { display: inline-flex; align-items: center; gap: 6px; background: #d4a84b; color: #1a1408; font-weight: 600; border-radius: 8px; padding: 7px 12px; }
a.btnlink:hover { text-decoration: none; filter: brightness(1.08); }
/* Zombie Invasion: eigen spellen van het team, in de huisstijl (rood/wit/blauw), direct in de browser te spelen */
.zombierow { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0; }
@media (max-width: 980px) { .zombierow { grid-template-columns: minmax(0, 1fr); } }
.zcard { position: relative; overflow: hidden; border-color: #7a2a24; background: radial-gradient(120% 140% at 100% 0%, rgba(232,72,59,.22), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(76,141,255,.14), transparent 60%), var(--panel); }
.zcard h2 { color: #ff6a5c; letter-spacing: .02em; }
.zcard .ztag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #fff; background: #e8483b; border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: middle; }
.zcard ul { margin: 8px 0 12px 18px; padding: 0; color: var(--muted); } .zcard li { margin: 2px 0; }
.zcard a.zplay { display: inline-flex; align-items: center; gap: 8px; background: #e8483b; color: #fff; font-weight: 700; font-size: 16px; border-radius: 10px; padding: 10px 18px; box-shadow: 0 4px 18px rgba(232,72,59,.35); }
.zcard a.zplay:hover { text-decoration: none; filter: brightness(1.1); }
.zcard .zhint { margin-left: 10px; color: var(--muted); font-size: 13px; }
/* VPN-kiezer: twee tegels naast elkaar (op smalle schermen onder elkaar) */
#vpncard { margin: 16px 0; }
.vpnhead { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; justify-content: space-between; }
.vpnhead > div { flex: 1 1 320px; } .vpnhead h2 { margin-bottom: 4px; }
.vpngrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 760px) { .vpngrid { grid-template-columns: minmax(0, 1fr); } }
.vpntile { --c: #e8483b; --cg: 232,72,59; border: 1px solid rgba(var(--cg), .45); border-radius: 12px; padding: 14px; min-width: 0;
  background: radial-gradient(130% 110% at 100% 0%, rgba(var(--cg), .13), transparent 60%), var(--panel2); display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, box-shadow .2s; }
#vpn-rm { --c: #4c8dff; --cg: 76,141,255; }
.vpntile.on { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok), 0 0 24px rgba(63,185,80,.18); }
.vpnname { display: flex; align-items: center; gap: 10px; } .vpnname b { font-size: 17px; }
.vpnlogo { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: var(--c); letter-spacing: -.5px; }
.vpnbadge { margin-left: auto; font-size: 12px; border-radius: 999px; padding: 2px 10px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.vpnbadge:empty { display: none; }
.vpnbadge.ok { color: var(--ok); border-color: var(--ok); } .vpnbadge.half { color: var(--warn); border-color: var(--warn); }
.vpnpitch { margin: 0; font-size: 14px; }
.vpngames { display: flex; flex-wrap: wrap; gap: 5px; } .vpngames:empty { display: none; }
.vpngames span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(var(--cg), .14); color: var(--text); border: 1px solid rgba(var(--cg), .3); }
.vpnchecks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; } .vpnchecks:empty { display: none; }
.vpnchecks li { display: flex; gap: 8px; align-items: baseline; color: var(--muted); }
.vpnchecks li::before { content: '○'; width: 14px; flex: none; text-align: center; }
.vpnchecks li.ok { color: var(--text); } .vpnchecks li.ok::before { content: '✓'; color: var(--ok); font-weight: 700; }
.vpnchecks li.no::before { content: '✕'; color: #ff7b72; }
.vpnchecks code { background: var(--panel); padding: 0 5px; border-radius: 5px; font-size: 12px; }
.vpnsteps summary { cursor: pointer; color: var(--link); font-size: 14px; }
.vpnsteps ol { margin: 8px 0; padding-left: 20px; font-size: 14px; display: grid; gap: 4px; }
.vpnbtns { margin: auto 0 0; } .vpnbtns a { display: inline-flex; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { background: var(--panel2); border-radius: 8px; padding: 10px; } .stat .k { color: var(--muted); font-size: 12px; } .stat .v { font-size: 20px; font-weight: 600; }
.bezdagen { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 90px; margin: 12px 0 4px; }
.bezdagen div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; font-size: 11px; color: var(--muted); }
.bezdagen i { display: block; width: 100%; max-width: 22px; background: var(--link); border-radius: 4px 4px 0 0; min-height: 2px; }
.bezdagen b { font-weight: 500; color: var(--text); }
.bez { border-top: 1px solid var(--line); padding: 8px 0; }
.bez summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.bez summary::-webkit-details-marker { display: none; }
.bez .ipa { font: 13px ui-monospace, Consolas, monospace; }
.bez .tag { font-size: 11px; border-radius: 999px; padding: 1px 7px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.bez .tag.jij { color: var(--ok); border-color: var(--ok); } .bez .tag.warn { color: var(--warn); border-color: var(--warn); }
.bez .wat { flex-basis: 100%; }
.bez ol { margin: 8px 0 0; padding-left: 0; list-style: none; max-height: 300px; overflow: auto; font-size: 13px; }
.bez li { display: flex; gap: 10px; padding: 2px 0; } .bez li time { color: var(--muted); flex: none; width: 112px; }
.bez li.actie span { color: var(--text); font-weight: 500; } .bez li.pagina span { color: var(--muted); }
.bezwarn { margin-top: 10px; padding: 8px 10px; border: 1px solid var(--warn); border-radius: 8px; color: var(--warn); font-size: 13px; }
.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.svc .item { background: var(--panel2); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.team { display: flex; flex-wrap: wrap; gap: 6px; }
details.spstats { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
details.spstats summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
details.spstats summary::-webkit-details-marker { display: none; }
details.spstats summary::after { content: '▾'; color: var(--muted); } details.spstats[open] summary::after { content: '▴'; }
details.spstats[open] summary { margin-bottom: 4px; }
details.help { margin-top: 8px; } details.help summary { cursor: pointer; color: var(--muted); font-size: 14px; }
details.help td { font-size: 13px; vertical-align: top; } details.help td:first-child { white-space: nowrap; } details.help code { color: #79c0ff; }
.admincard label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.admincard h3 { font-size: 15px; margin: 14px 0 6px; }
.preview div { padding: 3px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
#modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 10; align-items: center; justify-content: center; padding: 16px; }
#modal.open { display: flex; }
.modal-box { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; }
.modal-box h3 { margin: 0 32px 10px 0; } .modal-box ol { padding-left: 20px; } .modal-close { position: absolute; top: 12px; right: 12px; padding: 2px 9px; }
footer { color: var(--muted); font-size: 12px; text-align: center; padding-bottom: 20px; }
