/* Hostaweb Drop — stylesheet */

:root {
  --ink: #16233b;        /* diep marineblauw */
  --ink-soft: #47546e;
  --paper: #eef1f6;      /* koel grijsblauw canvas */
  --card: #ffffff;
  --accent: #2e5bff;     /* kobalt */
  --accent-dark: #1e42c8;
  --ok: #0f8a4c;
  --ok-bg: #e8f6ee;
  --err: #b3261e;
  --err-bg: #fdecea;
  --line: #d9dfea;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(22, 35, 59, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

/* ------------------------------------------------------------------ */
.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { height: 27px; width: auto; display: block; }
.brand::after { content: "."; color: var(--accent); }
.topbar-note { font-size: 13px; color: var(--ink-soft); }

.wrap {
  flex: 1;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}

.hero { text-align: center; margin: 22px 0 26px; }
.hero h1 {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.hero p { color: var(--ink-soft); max-width: 480px; margin: 0 auto; font-size: 15px; }

/* ------------------------------------------------------------------ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.dropzone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone:focus-visible, .dz-over {
  border-color: var(--accent);
  background: #f6f8ff;
  outline: none;
}
.dz-icon { font-size: 34px; color: var(--accent); margin-bottom: 8px; }
.dz-title { font-weight: 700; font-size: 17px; }
.dz-sub { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.dz-browse { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* ------------------------------------------------------------------ */
.picked-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.file-badge {
  flex: 0 0 auto;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 8px;
  padding: 12px 10px;
  min-width: 48px;
  text-align: center;
}
.picked-meta { min-width: 0; flex: 1; }
.picked-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked-size { color: var(--ink-soft); font-size: 13px; }

.opts { display: grid; gap: 14px; margin-bottom: 18px; }
.opt-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.opt-optional { color: var(--ink-soft); font-weight: 400; }
.opt-hint { color: var(--ink-soft); font-size: 12.5px; margin: 5px 0 0; }

input[type="text"], input[type="password"], input[type="email"], select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
input:focus, select:focus { border-color: var(--accent); outline: 2px solid rgba(46, 91, 255, 0.15); }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 9px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-big { width: 100%; padding: 14px; font-size: 16px; }
.btn-danger { background: var(--err); color: #fff; }
.btn-link {
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ------------------------------------------------------------------ */
.progress-name { font-weight: 700; margin-bottom: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-track {
  height: 14px;
  background: var(--paper);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #5a80ff);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.hint { color: var(--ink-soft); font-size: 13px; margin-top: 14px; }

/* ------------------------------------------------------------------ */
.done-check {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
#step-done h2 { margin: 0 0 14px; font-size: 20px; letter-spacing: -0.02em; }
.share-link { display: flex; gap: 8px; }
.share-link input { flex: 1; font-size: 14px; background: var(--paper); }

/* ------------------------------------------------------------------ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.feat {
  background: transparent;
  padding: 4px 2px;
  font-size: 13px;
  color: var(--ink-soft);
}
.feat strong { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.foot { text-align: center; color: var(--ink-soft); font-size: 12.5px; padding: 18px; }

/* ------------------------------------------------------------------ */
.alert { border-radius: 9px; padding: 11px 14px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: var(--err-bg); color: var(--err); border: 1px solid #f2c4c0; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe6cf; }

/* ------------------------------------------------------------------ */
/* Downloadpagina */
.page-gate .wrap { max-width: 540px; padding-top: 40px; }
.file-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.file-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin: 0; word-break: break-word; }
.file-meta { color: var(--ink-soft); font-size: 13.5px; margin: 3px 0 0; }
.gate-form label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.gate-form input { margin-bottom: 12px; }
.gate-resend { margin-top: 12px; }
.code-input { font-size: 22px; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ */
/* Admin */
.admin-nav {
  display: flex;
  gap: 4px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.admin-nav a {
  padding: 10px 14px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.admin-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.admin-nav a:hover { color: var(--ink); }
.admin-wrap { max-width: 980px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat .n { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.stat .l { color: var(--ink-soft); font-size: 13px; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
table.list td.actions { white-space: nowrap; text-align: right; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
.pill-active { background: var(--ok-bg); color: var(--ok); }
.pill-gone { background: var(--paper); color: var(--ink-soft); }
.pill-locked { background: #fff4e0; color: #a05a00; }

.form-grid { display: grid; gap: 14px; max-width: 480px; }
.form-grid label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 5px; }

.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: inline-block; margin: 10px 0; }
.secret-mono { font-family: ui-monospace, Consolas, monospace; background: var(--paper); border-radius: 8px; padding: 8px 12px; font-size: 14px; word-break: break-all; display: inline-block; }

.wizard-steps { display: flex; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--ink-soft); }
.wizard-steps .ws { padding: 5px 12px; border-radius: 999px; background: var(--paper); }
.wizard-steps .ws.on { background: var(--accent); color: #fff; font-weight: 700; }

.req-table td:first-child { width: 60%; }
.req-ok { color: var(--ok); font-weight: 700; }
.req-fail { color: var(--err); font-weight: 700; }
