/* TNDRDSK Settings — Versie 1.0 (2026-05-24) */
:root {
  --blue: #022688;
  --blue-mid: #1a3fa8;
  --blue-light: #e8edf8;
  --blue-xlight: #f4f6fc;
  --accent: #0e4fff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --orange: #ea580c;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(2,38,136,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #f7f8fc;
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

nav {
  background: var(--blue);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo { color: #fff; font-size: 18px; font-weight: 800; text-decoration: none; letter-spacing: 0.05em; }
.nav-logo span { opacity: 0.5; font-weight: 400; font-size: 13px; margin-left: 8px; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link { color: rgba(255,255,255,0.75); font-size: 13px; text-decoration: none; font-weight: 500; }
.nav-link:hover { color: #fff; }

.container { max-width: 1100px; margin: 32px auto; padding: 0 32px 80px; }

.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 24px; color: var(--blue); font-weight: 800; margin-bottom: 6px; }
.page-header .subtitle { color: var(--muted); font-size: 14px; max-width: 700px; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab {
  background: transparent;
  border: none;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.tab:hover { color: var(--blue); }
.tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card .muted { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 8px;
}
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* Fields */
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.field input[type="number"],
.field input[type="text"] {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.15s;
}
.field input:focus { outline: none; border-color: var(--blue); }
.field small { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* Tag input */
.tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--blue-xlight);
  min-height: 50px;
  cursor: text;
}
.tag-input.focus { border-color: var(--blue); }
.tag {
  background: var(--white);
  border: 1px solid var(--blue-light);
  padding: 4px 10px 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
}
.tag .remove {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
}
.tag .remove:hover { color: var(--red); }
.tag-input input {
  flex: 1;
  min-width: 120px;
  border: none;
  background: transparent;
  font-size: 13px;
  padding: 4px;
  outline: none;
}

/* CPV list */
.cpv-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cpv-row:last-child { border-bottom: none; }
.cpv-toggle {
  width: 44px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cpv-info { flex: 1; }
.cpv-info .naam { font-weight: 700; color: var(--text); font-size: 14px; }
.cpv-info .prefixes {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}
.cpv-info .omschrijving { color: var(--muted); font-size: 13px; margin-top: 4px; }
.cpv-info .voorbeelden {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: #cbd5e0;
  border-radius: 24px;
  cursor: pointer;
  transition: 0.2s;
}
.slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch input:checked + .slider { background: var(--blue); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* Verticals list */
.vertical-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.vertical-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--blue-xlight);
  cursor: pointer;
}
.vertical-head .arrow {
  color: var(--muted);
  font-size: 12px;
  transition: transform 0.2s;
}
.vertical-row.open .vertical-head .arrow { transform: rotate(90deg); }
.vertical-head .naam { flex: 1; font-weight: 700; color: var(--text); }
.vertical-head .omschrijving { color: var(--muted); font-size: 12px; font-weight: 400; }
.vertical-body { padding: 18px; display: none; background: var(--white); }
.vertical-row.open .vertical-body { display: block; }
.vertical-body label { font-size: 12px; font-weight: 600; color: var(--text); display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Actions bar */
.actions-bar {
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  margin: 32px -32px 0;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
}
.btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--blue);
  color: white;
}
.btn-primary:hover { background: var(--blue-mid); }
.btn-secondary {
  background: var(--white);
  color: var(--muted);
  border-color: var(--border);
}
.btn-secondary:hover { color: var(--red); border-color: var(--red); }

.status { color: var(--muted); font-size: 13px; margin-left: auto; }

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background: var(--text);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.2s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
