/* nixcape Console — premium dark dashboard, in de nixcape-merkstijl. */
:root {
  --bg: #05060B;
  --bg-2: #0A0C14;
  --panel: #0E1019;
  --panel-2: #12141F;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #F4F6FF;
  --muted: #AEB6C9;
  --faint: #79839B;
  --violet: #6E1FF0;
  --blue: #2E7BFF;
  --cyan: #00C6FF;
  --grad: linear-gradient(115deg, var(--violet), var(--blue) 55%, var(--cyan));
  --ok: #36D399; --ok-bg: rgba(54, 211, 153, .12);
  --warn: #FBBF55; --warn-bg: rgba(251, 191, 85, .12);
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 700px at 100% -10%, rgba(46, 123, 255, .10), transparent 60%), var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; }
.lnk { color: var(--blue); text-decoration: none; }
.lnk:hover { text-decoration: underline; }
small { color: var(--faint); display: block; font-size: .8rem; }

/* Merk */
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(46, 123, 255, .35);
}
.brand__txt { font-size: 1.05rem; letter-spacing: -.01em; }
.brand__txt small { display: inline; color: var(--faint); font-weight: 600; margin-left: .35rem; }

/* Zijbalk-merk: het echte nixcape-logo i.p.v. de losse N */
.side__brand { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; padding: .2rem .3rem .2rem; }
.side__brand img { width: 145px; max-width: 100%; height: auto; }
.side__brand small { color: var(--faint); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; padding-left: .1rem; }

/* Layout */
.side {
  position: fixed; inset: 0 auto 0 0; width: 232px; padding: 1.4rem 1rem;
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.side__nav { display: flex; flex-direction: column; gap: .25rem; margin-top: .5rem; }
.side__nav a {
  padding: .6rem .8rem; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600;
  transition: background .15s, color .15s;
}
.side__nav a:hover { background: var(--panel); color: var(--text); }
.side__nav a.is-active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.side__out { margin-top: auto; }
.main { margin-left: 232px; padding: 2rem 2.4rem; max-width: 1100px; }

/* Koppen */
.head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.head h1 { font-size: 1.5rem; margin: 0; letter-spacing: -.02em; }
.sub { color: var(--muted); margin: .25rem 0 0; }
h2 { font-size: 1.05rem; margin: 0 0 1rem; }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.panel--narrow { max-width: 560px; }
.grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.2rem; align-items: start; }
.note { background: var(--panel-2); border: 1px solid var(--border); border-left: 3px solid var(--blue);
  border-radius: 10px; padding: .8rem 1rem; color: var(--muted); margin: 0 0 1.3rem; }
code { background: rgba(255, 255, 255, .07); padding: .1rem .4rem; border-radius: 6px; font-size: .85em; }

/* Tabel */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 0 .8rem .7rem; font-weight: 700; }
.tbl td { padding: .85rem .8rem; border-top: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .02); }
.ta-r { text-align: right; }
.empty { color: var(--faint); text-align: center; padding: 2rem 0; }

/* Badges */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 100px; font-size: .75rem; font-weight: 700; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--muted { background: rgba(255, 255, 255, .07); color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--panel-2); color: var(--text);
  padding: .6rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: .9rem; font-family: inherit;
  text-decoration: none; transition: transform .12s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--grad); border-color: transparent; box-shadow: 0 8px 22px rgba(46, 123, 255, .3); }
.btn--ghost { background: transparent; }
.btn--sm { padding: .4rem .8rem; font-size: .82rem; }
.btn--block { width: 100%; margin-top: .4rem; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; font-size: .9rem; }
.form input, .form select {
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: .65rem .8rem; color: var(--text); font: inherit;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 123, 255, .2); }

/* Flow-lijst */
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.flow li { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; }
.flow__n { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: .9rem; }
.flow__b { flex: 1; }
.flow__b b { display: block; }
.acts { display: flex; gap: .5rem; }

/* Snel-paneel */
.rowlink { display: flex; justify-content: space-between; padding: .7rem .2rem; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.rowlink span { color: var(--blue); }
.rowlink:hover { color: var(--blue); }
.statusset { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.statusset__lbl { color: var(--faint); font-size: .85rem; width: 100%; }
.chip { cursor: pointer; border: 1px solid var(--border-strong); background: transparent; color: var(--muted);
  padding: .35rem .7rem; border-radius: 100px; font: inherit; font-size: .82rem; }
.chip:hover { color: var(--text); border-color: var(--blue); }

/* Takenbord */
.taskboard { margin-top: 1.2rem; }
.taskboard__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.progress { display: flex; align-items: center; gap: .6rem; min-width: 220px; }
.progress__track { flex: 1; height: 8px; background: var(--bg-2); border-radius: 100px; overflow: hidden; }
.progress__bar { height: 100%; background: var(--grad); border-radius: 100px; transition: width .3s; }
.progress__txt { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.taskboard__filters { display: flex; gap: .5rem; margin: .8rem 0 1.2rem; }
.taskboard__filters .chip.is-active { color: var(--text); border-color: var(--blue); background: var(--panel-2); }
.phase { margin-bottom: 1.1rem; }
.phase__head { display: flex; align-items: baseline; gap: .6rem; padding: .3rem 0; border-bottom: 1px solid var(--border); margin-bottom: .4rem; }
.phase__head b { font-size: .95rem; }
.phase__count { color: var(--faint); font-size: .78rem; }
.tasks { list-style: none; margin: 0; padding: 0; }
.task { display: flex; align-items: center; gap: .7rem; padding: .5rem .2rem; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.task:hover { background: rgba(255, 255, 255, .02); }
.task__check { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border-strong); background: transparent; cursor: pointer; position: relative; }
.task--bezig .task__check { border-color: var(--warn); }
.task--bezig .task__check::after { content: ''; position: absolute; inset: 3px; border-radius: 2px; background: var(--warn); }
.task--klaar .task__check { border-color: var(--ok); background: var(--ok); }
.task--klaar .task__check::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #05060B; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.task__title { flex: 1; font-size: .9rem; }
.task--klaar .task__title { color: var(--faint); text-decoration: line-through; }
.task__meta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.task__chip { cursor: pointer; }
.task__btn { background: none; border: none; color: var(--faint); cursor: pointer; font: inherit; font-size: .78rem; padding: .15rem .35rem; border-radius: 6px; }
.task__btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.task__btn--del { font-size: 1rem; line-height: 1; }
.task__btn--del:hover { color: #FF9B9B; }
.task-add { margin-top: .4rem; }
.task-add input { width: 100%; background: transparent; border: 1px dashed var(--border-strong); border-radius: 8px; padding: .45rem .6rem; color: var(--text); font: inherit; font-size: .85rem; }
.task-add input::placeholder { color: var(--faint); }
.task-add input:focus { outline: none; border-style: solid; border-color: var(--blue); }

/* Log */
.log { margin-top: 1.2rem; background: #06070D; border: 1px solid var(--border); border-radius: 10px;
  padding: 1rem; color: #C7D0E4; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .82rem;
  white-space: pre-wrap; max-height: 320px; overflow: auto; }

/* Alerts */
.alert { background: rgba(255, 90, 90, .12); border: 1px solid rgba(255, 90, 90, .3); color: #FF9B9B;
  padding: .7rem 1rem; border-radius: 10px; margin: 0 0 .4rem; }
.hint { color: var(--faint); font-size: .85rem; text-align: center; margin: .2rem 0 0; }

/* Login */
.loginpage { position: relative; display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 1.5rem; overflow: hidden; }
.login-glow { position: absolute; width: min(620px, 120vw); height: 620px; top: -220px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(46,123,255,.20), rgba(110,31,240,.10) 45%, transparent 65%); filter: blur(30px); pointer-events: none; }
.loginbox { position: relative; width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 2.2rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.loginbox__logo { display: block; height: 40px; width: auto; max-width: 80%; margin: 0 auto .1rem; }
.loginbox__sub { text-align: center; color: var(--muted); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .6rem; }
.loginbox .brand { justify-content: center; margin-bottom: .5rem; }
.loginbox label { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; font-size: .9rem; }
.loginbox input { background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 10px; padding: .7rem .8rem; color: var(--text); font: inherit; }
.loginbox input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 123, 255, .2); }

@media (max-width: 820px) {
  html, body { overflow-x: hidden; }
  .side { position: static; width: auto; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .side__nav { flex-direction: row; flex-wrap: wrap; margin: 0; }
  .side__out { margin: 0 0 0 auto; }
  .main { margin-left: 0; padding: 1.4rem; }
  .grid { grid-template-columns: 1fr; }
  .head { flex-wrap: wrap; }
  .head h1 { font-size: 1.3rem; }
  /* Brede tabellen horizontaal scrollen i.p.v. samengeperst/afgekapt. */
  .tbl { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  /* 16px voorkomt dat iOS bij focus op een veld inzoomt. */
  input, select, textarea { font-size: 16px; }
  .form .row { grid-template-columns: 1fr; }
  .flow li { flex-wrap: wrap; }
  .taskboard__filters { flex-wrap: wrap; }
  .progress { min-width: 0; width: 100%; }
}

/* === Uitbreidingen: dropzone, onboarding, DNS, serverstatus === */
.dropzone { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 1.6rem; text-align: center; color: var(--muted); transition: border-color .15s, background .15s; }
.dropzone.is-over { border-color: var(--blue); background: rgba(46, 123, 255, .08); }
.dropzone .lnk { background: none; border: none; color: var(--blue); cursor: pointer; font: inherit; padding: 0; }
.dropzone__status.ok { color: var(--ok); }

.onb-files { display: flex; flex-wrap: wrap; gap: .7rem; margin: .8rem 0; }
.onb-file { display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 86px; text-decoration: none; color: var(--muted); font-size: .72rem; }
.onb-file img { width: 86px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--border); }
.onb-file--doc span:first-child { display: flex; align-items: center; justify-content: center; width: 86px; height: 64px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; font-weight: 800; color: var(--blue); }
.onb-answers { margin-top: .8rem; display: flex; flex-direction: column; gap: .5rem; }
.onb-a { display: grid; grid-template-columns: 140px 1fr; gap: .8rem; padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.onb-a__k { color: var(--faint); text-transform: capitalize; }
.onb-a__v { color: var(--text); white-space: pre-wrap; }

.dnsresult { display: flex; flex-direction: column; gap: .1rem; margin-top: .6rem; }
.dnsrow { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.dnsrow b { min-width: 200px; }
.dnsrecs { margin: .5rem 0 .3rem; }
.dnstbl { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: .8rem; }
.dnstbl th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: .4rem .55rem; border-bottom: 1px solid var(--border); font-weight: 600; }
.dnstbl td { padding: .55rem .55rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dnstbl code { background: var(--panel-2); padding: .12rem .45rem; border-radius: 6px; font-size: .85rem; }
.dnsrecs .acts { margin-top: .2rem; align-items: center; gap: .7rem; }
.dnsdot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; background: var(--faint); display: inline-block; }
.dnsdot.ok { background: var(--ok); }
.dnsdot.bad { background: #FF6B6B; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.2rem; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.stat__lbl { color: var(--faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.stat__val { font-size: 1.6rem; font-weight: 800; }
.stat__sub { color: var(--muted); font-size: .8rem; }
.meter { height: 6px; border-radius: 100px; background: var(--panel-2); overflow: hidden; }
.meter__fill { display: block; height: 100%; background: var(--grad); }
.meter__fill.hot { background: linear-gradient(90deg, var(--warn), #FF6B6B); }

/* Publieke onboarding-pagina */
.onbpage { background: radial-gradient(1000px 600px at 100% -10%, rgba(46, 123, 255, .12), transparent 60%), var(--bg); min-height: 100vh; }
.onbwrap { max-width: 640px; margin: 0 auto; padding: 2.4rem 1.2rem 4rem; }
.onbcard { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: 0 24px 60px -30px rgba(0,0,0,.7); }
.onbcard__logo { display: block; margin-bottom: 1.5rem; }
.onbcard h1 { font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 800; letter-spacing: -.01em; margin: 0 0 .5rem; }
.onbcard__lead { color: var(--muted); margin: 0 0 1.8rem; font-size: 1.02rem; line-height: 1.55; max-width: 46ch; }

/* ---- Onboarding-formulier: strak grid, label boven veld ---- */
.onbsec {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.3rem 1.4rem 1.5rem;
  margin: 0 0 1.1rem;
  background: var(--panel-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.05rem 1.2rem;
}
.onbsec legend {
  grid-column: 1 / -1;
  float: none; width: 100%;
  padding: 0; margin: 0 0 .25rem;
  font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.onbsec > p { grid-column: 1 / -1; margin: 0; color: var(--faint); font-size: .82rem; line-height: 1.5; }
.onbsec label {
  display: flex; flex-direction: column; gap: .4rem;
  min-width: 0;
  font-size: .82rem; font-weight: 600; color: var(--muted);
}
.onbsec label:has(textarea) { grid-column: 1 / -1; }
.onbsec input,
.onbsec textarea {
  width: 100%; box-sizing: border-box;
  padding: .72rem .85rem;
  font: 400 .94rem/1.4 var(--font); color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 11px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.onbsec textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.onbsec input::placeholder, .onbsec textarea::placeholder { color: var(--faint); }
.onbsec input:focus, .onbsec textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 123, 255, .22);
}
.onbup { grid-column: 1 / -1; }
.onbup label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.onbsec input[type="file"] { padding: .6rem .7rem; cursor: pointer; font-size: .85rem; color: var(--muted); }
.onbsec input[type="file"]::file-selector-button {
  margin-right: .85rem; padding: .45rem .95rem;
  border: 1px solid var(--border-strong); border-radius: 9px;
  background: var(--panel); color: var(--text); font-weight: 600; cursor: pointer;
}
#onbform .btn--block { margin-top: 1.4rem; padding: .95rem; font-size: 1rem; }
.onbmsg { color: var(--warn); margin-top: .7rem; min-height: 1.2em; text-align: center; }
.onbcard--done { text-align: center; }
.onbcard--done .onbcard__logo { margin-left: auto; margin-right: auto; }
.onbcheck { width: 60px; height: 60px; margin: .6rem auto 1.2rem; display: grid; place-items: center; border-radius: 50%; color: var(--ok); background: var(--ok-bg); border: 1px solid rgba(54, 211, 153, .35); }
.onbcheck svg { width: 30px; height: 30px; }
.onbcard--done p { color: var(--muted); max-width: 42ch; margin: 0 auto; }
@media (max-width: 560px) { .onbsec { grid-template-columns: 1fr; } }

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .onb-a { grid-template-columns: 1fr; gap: .2rem; }
  .dnsrow b { min-width: 0; }
}
