/* ---------- merk ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-width: 0;
}
.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 48%, color-mix(in srgb, var(--accent) 70%, transparent) 49%, var(--accent) 100%),
    var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 20%, transparent);
}

/* ---------- bovenbalk ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px clamp(16px, 3vw, 32px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.tab:hover {
  color: var(--ink);
}
.tab[aria-current='page'] {
  background: var(--primary);
  color: var(--on-primary);
}
.tab-count:empty {
  display: none;
}
.tab-count {
  font-size: 12px;
  font-weight: 600;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
}
.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

/* ---------- algemeen ---------- */
.admin-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px) 80px;
}
.view-head {
  margin-bottom: 26px;
  max-width: 720px;
}
.view-head h1 {
  font-size: clamp(34px, 4vw, 46px);
}
.view-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.4vw, 28px);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.row.three {
  grid-template-columns: 1.2fr 1fr 1fr;
}
.optional {
  font-style: normal;
  font-weight: 450;
  opacity: 0.75;
}
.form-error {
  color: var(--danger);
  font-size: 14px;
  min-height: 0;
}
.form-error:empty {
  display: none;
}
.hint {
  color: var(--muted);
  font-size: 13px;
}
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.eyebrow-admin {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- versturen ---------- */
.send-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.dropzone {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 44px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover,
.dropzone.over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
  margin-bottom: 6px;
}
.dropzone-icon .icon {
  width: 24px;
  height: 24px;
}
.dropzone-title {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
}
.dropzone-sub {
  color: var(--muted);
  font-size: 14px;
  max-width: 380px;
}
.dropzone-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.selection {
  margin-top: 18px;
}
.selection-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 340px;
  overflow: auto;
  border-top: 1px solid var(--line);
}
.file-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.file-list .icon {
  color: var(--muted);
  width: 16px;
  height: 16px;
}
.file-list .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-list .dir {
  color: var(--muted);
}
.file-list .size {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.file-list .more {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  justify-self: center;
}
.send-form {
  display: grid;
  gap: 16px;
}
.send-form .btn.big {
  margin-top: 4px;
}

/* voortgang */
.progress-panel {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.progress-top h2 {
  font-size: 30px;
  margin-top: 4px;
}
.progress-percent {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bar {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--ink)));
  transition: width 0.3s ease;
}
.progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.progress-file {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress-notice:empty {
  display: none;
}
.progress-notice {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 14px;
}
.progress-actions {
  display: flex;
  justify-content: flex-end;
}

/* klaar */
.done-panel {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding-block: 40px;
}
.done-badge {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
}
.done-badge .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
}
.done-panel h2 {
  font-size: 36px;
}
.done-sub {
  color: var(--muted);
}
.link-box {
  display: flex;
  gap: 8px;
  width: min(560px, 100%);
  margin-top: 8px;
}
.link-box .input {
  font-size: 14px;
  background: var(--surface-2);
}
.done-password {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

/* ---------- verzendingen ---------- */
.transfer-list {
  display: grid;
  gap: 12px;
}
.transfer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  align-items: center;
  padding: 18px 20px;
}
.transfer.is-expired {
  opacity: 0.7;
  box-shadow: none;
}
.t-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.t-title-row h3 {
  font-size: 23px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.badge .icon {
  width: 12px;
  height: 12px;
}
.badge.ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: transparent;
}
.badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: transparent;
}
.t-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.t-meta .sep {
  margin: 0 6px;
  opacity: 0.5;
}
.t-downloads {
  margin-top: 8px;
  font-size: 14px;
}
.t-downloads strong {
  font-weight: 650;
}
.t-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

/* ---------- mijn beelden ---------- */
.image-drop {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  margin-bottom: 22px;
  transition: border-color 0.15s, background 0.15s;
}
.image-drop:hover,
.image-drop.over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.image-drop > div:first-child {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.image-drop-title {
  font-weight: 650;
}
.image-drop-sub {
  font-size: 13.5px;
  color: var(--muted);
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.img-card {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
}
.img-card.dragging {
  opacity: 0.4;
}
.img-card.drop-target {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.img-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}
.img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-thumb .handle {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: grab;
}
.img-thumb .orient {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 11.5px;
  font-weight: 550;
}
.img-uploading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  padding: 20px;
}
.img-uploading .bar {
  width: 70%;
}
.img-body {
  display: grid;
  gap: 8px;
  padding: 12px;
  align-content: start;
}
.img-body .input {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 14px;
}
.img-title {
  font-weight: 600;
}
.img-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 6px;
  margin-top: 2px;
}
.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.img-tools {
  margin-left: auto;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip .icon {
  width: 13px;
  height: 13px;
  display: none;
}
.chip:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.chip:has(input:checked) .icon {
  display: block;
}
.chip:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.img-tools {
  display: flex;
  gap: 2px;
}
.img-tools .btn {
  width: 30px;
  min-height: 30px;
}

/* ---------- instellingen ---------- */
.settings {
  display: grid;
  gap: 24px;
  max-width: 860px;
  margin-bottom: 20px;
}
.settings fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.settings legend {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
  padding: 0;
}
.form-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}
.color-input {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: none;
  cursor: pointer;
}
.color-input::-webkit-color-swatch-wrapper {
  padding: 3px;
}
.color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 7px;
}
.swatches {
  display: flex;
  gap: 6px;
}
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  cursor: pointer;
  padding: 0;
}
.swatch[aria-pressed='true'] {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- inlogpagina ---------- */
.login-page {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100svh;
}
.login-art {
  position: relative;
  background: radial-gradient(120% 90% at 70% 30%, #3a3129 0%, #1a1715 55%, #0f0e0d 100%);
  overflow: hidden;
}
.login-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.login-art.loaded img {
  opacity: 1;
}
.login-art-caption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.login-wrap {
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.login-card {
  width: min(400px, 100%);
  display: grid;
  gap: 16px;
}
.login-card .brand {
  margin-bottom: 18px;
}
.login-card h1 {
  font-size: 42px;
}
.login-card .lead {
  color: var(--muted);
  margin-top: -6px;
  margin-bottom: 6px;
}

/* ---------- smaller scherm ---------- */
@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    scrollbar-width: none;
    justify-self: start;
    max-width: 100%;
  }
  .send-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .row,
  .row.three {
    grid-template-columns: 1fr;
  }
  .tab {
    padding: 7px 11px;
    font-size: 13.5px;
  }
  .transfer {
    grid-template-columns: 1fr;
  }
  .t-actions {
    justify-content: flex-start;
  }
  .link-box {
    flex-direction: column;
  }
  .login-page {
    grid-template-columns: 1fr;
    grid-template-rows: 32svh 1fr;
  }
  .dropzone {
    padding: 30px 16px;
  }
  #previewLink {
    display: none;
  }
}
