/* Email Migration — klantpagina */
:root {
  --brand: #1a56db;
  --brand-dark: #1240a8;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --ok: #059669;
  --warn: #d97706;
  --err: #dc2626;
  --running: #2563eb;
  --border: #e2e8f0;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; }

header.hero {
  text-align: center;
  margin-bottom: 32px;
}
header.hero .logo {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 15px;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
}
header.hero h1 { font-size: 26px; margin-bottom: 8px; }
header.hero p { color: var(--muted); font-size: 15px; max-width: 560px; margin: 0 auto; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.card h2 { font-size: 18px; margin-bottom: 6px; }
.card .sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 5px; }
input[type="email"], input[type="password"], input[type="text"], input[type="number"], select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus { outline: 2px solid rgba(26, 86, 219, 0.25); border-color: var(--brand); }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 9px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease;
}
button.primary { background: var(--brand); color: #fff; }
button.primary:hover { background: var(--brand-dark); }
button.primary:disabled { background: #93b4f5; cursor: not-allowed; }
button.secondary { background: #eef2ff; color: var(--brand); }
button.secondary:hover { background: #dfe8fd; }
button.ghost { background: transparent; color: var(--muted); font-weight: 500; padding: 8px 10px; }
button.ghost:hover { color: var(--text); }
button.danger { background: #fee2e2; color: var(--err); }

.notice {
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 12px 0;
}
.notice.info { background: #eff6ff; color: #1d4ed8; }
.notice.warn { background: #fffbeb; color: #b45309; }
.notice.error { background: #fef2f2; color: var(--err); }
.notice.ok { background: #ecfdf5; color: var(--ok); }

/* mailbox-kaarten */
.mailbox {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.mailbox .addr { font-weight: 650; font-size: 15px; word-break: break-all; }
.mailbox .meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.mailbox .err { font-size: 13px; color: var(--err); margin-top: 6px; }
.mailbox .actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.mailbox .actions button { padding: 7px 12px; font-size: 13px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.creating, .badge.queued { background: #dbeafe; color: #1e40af; }
.badge.syncing, .badge.delta_pending { background: #dbeafe; color: #1e40af; }
.badge.completed, .badge.delta_done { background: #d1fae5; color: #065f46; }
.badge.failed { background: #fee2e2; color: #991b1b; }

.spinner {
  display: inline-block;
  width: 11px; height: 11px;
  border: 2px solid rgba(30, 64, 175, 0.3);
  border-top-color: #1e40af;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* wachtwoordmeter */
.meter { height: 6px; border-radius: 3px; background: #e5e7eb; margin-top: 8px; overflow: hidden; }
.meter > div { height: 100%; width: 0; transition: width 0.25s ease, background 0.25s ease; }
.meter .zwak { background: var(--err); width: 33%; }
.meter .redelijk { background: var(--warn); width: 66%; }
.meter .sterk { background: var(--ok); width: 100%; }
.meter-label { font-size: 12px; margin-top: 4px; color: var(--muted); }

/* radiogroepen */
.choice { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.choice label.opt {
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  font-weight: 500;
  font-size: 14px;
  margin: 0;
  cursor: pointer;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.choice label.opt:has(input:checked) { border-color: var(--brand); background: #f5f8ff; }
.choice input { margin-top: 3px; }

details.advanced { margin-top: 12px; }
details.advanced summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600; }

.linkbox {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.linkbox input { font-size: 13px; background: #f8fafc; }

.footer-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }
.footer-note a { color: var(--brand); }

.center { text-align: center; }
.hidden { display: none !important; }

.steps { counter-reset: s; margin: 14px 0 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 4px 0 4px 34px; font-size: 14px; color: var(--muted); }
.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px;
  background: #eef2ff; color: var(--brand);
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 560px) {
  .row { flex-direction: column; }
  .mailbox { flex-direction: column; }
  .mailbox .actions { flex-direction: row; }
}
