/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0e0c;
  --surface: #1a1814;
  --surface2: #242018;
  --border: #2e2b24;
  --accent: #e8c97a;
  --accent2: #d4a843;
  --text: #f0ece2;
  --text-muted: #8a8070;
  --text-dim: #5a5448;
  --danger: #c0624a;
  --danger-dim: rgba(192,98,74,0.15);
  --green: #6aaa7a;
  --orange: #d4894a;
  --orange-dim: rgba(212,137,74,0.12);
  --purple: #9b7fd4;
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 76px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow: hidden; /* prevent double scroll */
  -webkit-overflow-scrolling: touch;
}

/* =====================
   APP LAYOUT
   ===================== */
#app {
  display: flex;
  flex-direction: row;
  height: 100vh;
  position: relative;
}

#main-area {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

/* =====================
   SIDE NAV — desktop
   ===================== */
.bottom-nav {
  width: 220px;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 32px 12px;
  gap: 4px;
  flex-shrink: 0;
  order: -1;
  position: relative;
  z-index: 10;
}

/* Logo area in sidebar */
.nav-logo {
  height: 36px;
  width: auto;
  display: block;
  align-self: center;
  margin: 0 auto 28px;
}

.nav-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: stroke 0.2s;
}

.nav-btn-label {
  flex: 1;
}

.nav-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-btn.active {
  color: var(--accent);
  background: rgba(232,201,122,0.08);
}

.nav-btn.active svg { stroke: var(--accent); }

/* Active indicator — left bar */
.nav-btn {
  position: relative;
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 28px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

/* =====================
   MOBIEL: bottom nav (≤ 700px)
   ===================== */
@media (max-width: 700px) {
  #app { flex-direction: column; }

  .bottom-nav {
    width: 100%;
    height: var(--nav-h);
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 0 8px;
    gap: 0;
    order: 1;
  }

  /* Verberg logo en tekst op mobiel */
  .nav-logo { display: none; }
  .nav-btn-label { display: none; }
  .nav-btn-logout { margin-top: 0 !important; align-self: center; }

  .nav-btn {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 8px 4px;
    width: auto;
    gap: 0;
    font-size: 0;
  }

  /* Active: dot onderaan */
  .nav-btn.active::before { display: none; }
  .nav-btn.active::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 5px;
  }

  .tab-panel { padding: 20px 14px calc(var(--nav-h) + 16px); }
  .app-title { font-size: 1.7rem; }
  .header-top { flex-direction: column; gap: 10px; }
  .btn-add-vak { width: 100%; justify-content: center; }
  .vakken-grid { grid-template-columns: 1fr; }
  .detail-overlay { padding: 20px 14px 80px; }
  .btn-delete-vak span { display: none; }
  .voortgang-stats { grid-template-columns: 1fr 1fr; }
}

/* =====================
   TAB PANELS
   ===================== */
.tab-panel {
  display: none;
  height: 100%;
  overflow-y: auto;
  padding: 36px 40px 40px;
  animation: fadeIn 0.22s ease;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--surface2) transparent;
}

.tab-panel::-webkit-scrollbar { width: 5px; }
.tab-panel::-webkit-scrollbar-track { background: transparent; }
.tab-panel::-webkit-scrollbar-thumb {
  background: var(--surface2);
  border-radius: 99px;
  transition: background 0.2s;
}
.tab-panel::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
header { margin-bottom: 28px; }

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.app-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.app-subtitle { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.btn-add-vak {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0f0e0c;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
  flex-shrink: 0;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.btn-add-vak:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-add-vak:active { transform: scale(0.97); }
.plus-icon { font-size: 1.1rem; line-height: 1; }

.overall-bar-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.overall-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.overall-bar { height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; }
.overall-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 99px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================
   VAKKEN GRID
   ===================== */
.vakken-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.vak-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  cursor: default;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 280px;
}

.vak-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 1;
}

.vak-card:hover { border-color: var(--accent2); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.vak-card:hover::before { transform: scaleX(1); }
.vak-card--gekleurd { background: color-mix(in srgb, var(--vak-kleur) 22%, var(--surface)); }
.vak-card--gekleurd .vak-hfst-btn { border-color: rgba(255,255,255,0.22); }
.vak-card--gekleurd .vak-hfst-item.is-done .vak-hfst-naam { color: var(--text-muted); text-decoration-color: var(--text-muted); }
.vak-card--gekleurd .vak-hfst-item:hover { background: rgba(0,0,0,0.12); }

.vak-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 16px 10px;
}

.vak-card-naam {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.vak-card-pct-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.vak-card-pct { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.vak-card-pct.done { color: var(--green); }

.btn-vak-beheer {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.18);
  color: var(--text-dim);
  border-radius: 6px;
  width: 28px; height: 28px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.btn-vak-beheer:hover { color: var(--text-muted); border-color: var(--text-muted); }

.vak-card-bar {
  height: 3px;
  background: rgba(255,255,255,0.12);
  margin: 0 16px 10px;
  border-radius: 99px;
  overflow: hidden;
}
.vak-card-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.vak-card-bar-fill.done { background: linear-gradient(90deg, #4e9a62, var(--green)); }

.vak-card-moeilijk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 16px 8px;
  background: var(--orange-dim);
  border: 1px solid rgba(212,137,74,0.25);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 0.7rem;
  color: var(--orange);
  align-self: flex-start;
}

.vak-card-lijst {
  /* Standaard: niet scrollbaar → voorkomt dat pagina-scroll in lijst belandt */
  overflow-y: hidden;
  scrollbar-gutter: stable;
  padding: 4px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  position: relative;
  /* Subtiele fade-out onderaan als hint dat er meer is */
  mask-image: linear-gradient(to bottom, black calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 28px), transparent 100%);
}

/* Op hover of als de gebruiker bewust de lijst activeert: scroll inschakelen */
.vak-card-lijst:hover {
  overflow-y: auto;
  mask-image: none;
  -webkit-mask-image: none;
}

/* Slanke, stijlvolle scrollbar in de lijsten */
.vak-card-lijst::-webkit-scrollbar { width: 3px; }
.vak-card-lijst::-webkit-scrollbar-track { background: transparent; }
.vak-card-lijst::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}
.vak-card-lijst::-webkit-scrollbar-thumb:hover { background: var(--accent2); }

.vak-card-leeg { font-size: 0.78rem; color: var(--text-dim); text-align: center; padding: 16px 8px; }

.vak-hfst-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.vak-hfst-item:hover { background: rgba(255,255,255,0.04); }

.vak-hfst-naam {
  flex: 1;
  font-size: 0.83rem;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vak-hfst-item.is-done .vak-hfst-naam { color: var(--text-dim); text-decoration: line-through; text-decoration-color: var(--text-dim); }

.vak-hfst-acties { display: flex; gap: 4px; flex-shrink: 0; }

.vak-hfst-btn {
  width: 24px; height: 24px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.vak-hfst-btn.btn-check:not(.active):hover    { color: var(--green);  border-color: var(--green);  opacity: 0.45; }
.vak-hfst-btn.btn-moeilijk:not(.active):hover { color: var(--orange); border-color: var(--orange); opacity: 0.45; }
.vak-hfst-btn.btn-check.active   { color: var(--green);  border-color: var(--green); }
.vak-hfst-btn.btn-moeilijk.active { color: var(--orange); border-color: var(--orange); }
.vak-hfst-btn.btn-check.active:hover    { opacity: 0.65; }
.vak-hfst-btn.btn-moeilijk.active:hover { opacity: 0.65; }

/* =====================
   EMPTY STATE
   ===================== */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-hint { margin-top: 8px; font-size: 0.85rem; color: var(--text-dim); }
.hidden { display: none !important; }

/* =====================
   TAB HEADERS (watnu/bijwerken/voortgang)
   ===================== */
.tab-header { margin-bottom: 28px; }
.tab-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.tab-subtitle { font-size: 0.85rem; color: var(--text-muted); }

/* =====================
   WAT NU TAB
   ===================== */
.watnu-content { display: flex; flex-direction: column; gap: 12px; }

.watnu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.watnu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.watnu-card:hover {
  border-color: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.watnu-card:hover::before { transform: scaleX(1); }

.watnu-card-secundair { opacity: 0.72; }
.watnu-card-secundair:hover { opacity: 1; }

.watnu-card-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.watnu-info { flex: 1; min-width: 0; }

.watnu-acties {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.watnu-card-leeg {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.watnu-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.watnu-vak {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-family: 'Playfair Display', serif;
}

.watnu-hfst {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.3;
}

.watnu-pct-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.watnu-pct-bar { flex: 1; height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; }
.watnu-pct-fill { height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); border-radius: 99px; }
.watnu-pct-text { font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* =====================
   BIJWERKEN TAB
   ===================== */
.bijwerken-content { display: flex; flex-direction: column; gap: 12px; }

.bijwerken-leeg {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.bijwerken-vak-groep {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.bijwerken-vak-naam {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bijwerken-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid rgba(212,137,74,0.25);
  border-radius: 99px;
  padding: 2px 8px;
}

.bijwerken-hfst-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text);
  transition: background 0.15s;
}
.bijwerken-hfst-item:last-child { border-bottom: none; }
.bijwerken-hfst-item:hover { background: var(--surface2); }

.bijwerken-dot {
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}
.bijwerken-hfst-naam {
  flex: 1;
}

.bijwerken-acties {
  display: flex;
  flex-direction: row;
  gap: 6px;
  flex-shrink: 0;
}

/* =====================
   VOORTGANG TAB
   ===================== */
.voortgang-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-week-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s, border-color 0.2s;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.btn-week-nav:hover { color: var(--text); border-color: var(--text-muted); }
.btn-week-nav:disabled { opacity: 0.3; cursor: default; }

.week-range {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.voortgang-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 16px;
  margin-bottom: 16px;
}

.chart-svg { width: 100%; display: block; }

.voortgang-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =====================
   BEHEER OVERLAY
   ===================== */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px 40px;
  overflow-y: auto;
  animation: fadeOverlay2 0.22s ease;
}

.detail-overlay.hidden { display: none !important; }

@keyframes fadeOverlay2 { from { opacity: 0; } to { opacity: 1; } }

.detail-inner {
  background: #141210;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 780px;
  padding: 28px 32px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  animation: slideUp 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.detail-header {
  display: grid;
  grid-template-areas:
    "back delete"
    "title title"
    "kleur kleur";
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  margin-bottom: 28px;
}

.btn-back        { grid-area: back; }
.detail-title-wrap { grid-area: title; }
.detail-kleur-wrap { grid-area: kleur; }
.btn-delete-vak  { grid-area: delete; justify-self: end; margin-top: 0; }

.btn-back {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
  margin-top: 4px;
  min-height: 44px;
}
.btn-back:hover { color: var(--text); border-color: var(--text-muted); }

.detail-title-wrap { flex: 1; min-width: 200px; }

.detail-naam-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.detail-vak-naam-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.detail-vak-naam-text:hover { color: var(--accent); }

.btn-rename {
  background: transparent; border: none;
  font-size: 0.95rem; cursor: pointer;
  opacity: 0.4; transition: opacity 0.2s;
  padding: 4px; min-height: 44px; min-width: 44px;
}
.btn-rename:hover { opacity: 1; }

.rename-input {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; font-weight: 700;
  color: var(--text); background: transparent;
  border: none; border-bottom: 2px solid var(--accent);
  outline: none; width: 100%; padding-bottom: 2px;
}

.detail-pct-wrap { display: flex; align-items: center; gap: 12px; }
.detail-pct-text { font-size: 1rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; min-width: 38px; }
.detail-pct-bar { flex: 1; height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.detail-pct-fill { height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); border-radius: 99px; transition: width 0.4s ease; }

.btn-delete-vak {
  display: flex; align-items: center; gap: 8px;
  background: var(--danger-dim); border: 1px solid var(--danger);
  color: var(--danger); border-radius: var(--radius-sm);
  padding: 8px 16px; font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0; margin-top: 4px; white-space: nowrap; min-height: 44px;
}
.btn-delete-vak:hover { background: var(--danger); color: #fff; }

.hoofdstukken-wrap { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
.hoofdstuk-list { display: flex; flex-direction: column; gap: 6px; }

.hoofdstuk-item {
  display: flex;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  transition: background 0.15s;
}
.hoofdstuk-item:last-child { border-bottom: none; }
.hoofdstuk-item.drag-over  { border-top: 2px solid var(--accent); }
.hoofdstuk-item.dragging   { opacity: 0.4; }
.hfst-drag-handle {
  cursor: grab;
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
  user-select: none;
}
.hfst-drag-handle:active { cursor: grabbing; }

@keyframes itemAppear {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hfst-naam {
  flex: 1; font-size: 0.92rem; color: var(--text);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.hfst-divider { width: 1px; height: 16px; background: var(--border); flex-shrink: 0; margin: 0 4px; }

.btn-edit-hoofdstuk {
  background: transparent; border: none; color: var(--text-dim);
  cursor: pointer; padding: 4px 8px;
  transition: color 0.15s;
  flex-shrink: 0; min-width: 32px; min-height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.btn-edit-hoofdstuk:hover { color: var(--accent); }

.hfst-edit-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--accent2);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  padding: 2px 4px;
  outline: none;
  min-width: 0;
}

.btn-delete-hoofdstuk {
  background: transparent; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 0.75rem; padding: 4px 6px;
  transition: color 0.15s;
  flex-shrink: 0; min-width: 28px; min-height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.btn-delete-hoofdstuk:hover { color: var(--text-muted); }

.beheer-screenshot-wrap { margin: 8px 0; }

.btn-beheer-screenshot {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px dashed var(--border);
  color: var(--text-muted); padding: 10px 16px;
  border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  width: 100%; justify-content: center; min-height: 44px; margin-bottom: 8px;
}
.btn-beheer-screenshot:hover { border-color: var(--accent2); color: var(--accent); }

.btn-beheer-import-confirm {
  display: block; width: 100%; margin-top: 8px;
  background: var(--accent); border: none; color: #0f0e0c;
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s; min-height: 44px;
}
.btn-beheer-import-confirm:hover { background: var(--accent2); }

.btn-add-hoofdstuk {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 1px dashed var(--border);
  color: var(--text-muted); padding: 13px 16px;
  border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s; margin-top: 4px; min-height: 44px;
}
.btn-add-hoofdstuk:hover { border-color: var(--accent2); color: var(--accent); background: rgba(232,201,122,0.05); }

/* =====================
   MODAL
   ===================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1100; padding: 16px;
  animation: fadeOverlay 0.2s ease;
}
@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 24px 20px;
  width: 100%; max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh; overflow-y: auto;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--text); margin-bottom: 16px; }

.modal input[type="text"] {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  padding: 12px 14px; outline: none; transition: border-color 0.2s; min-height: 44px;
}
.modal input[type="text"]:focus { border-color: var(--accent2); }
.modal input[type="text"]::placeholder { color: var(--text-dim); }

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.btn-cancel {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s; min-height: 44px;
}
.btn-cancel:hover { border-color: var(--text-muted); color: var(--text); }

.btn-confirm {
  background: var(--accent); border: none; color: #0f0e0c;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.1s; min-height: 44px;
}
.btn-confirm:hover { background: var(--accent2); }
.btn-confirm:active { transform: scale(0.97); }
.btn-confirm-danger { background: var(--danger); color: #fff; }
.btn-confirm-danger:hover { background: #c0392b; }

/* Screenshot */
.screenshot-section { margin-top: 16px; }
.screenshot-divider { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.screenshot-divider::before, .screenshot-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.screenshot-divider span { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.screenshot-hint { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.5; }
.screenshot-paste-hint { font-size: 0.75rem; color: var(--text-dim); margin-top: 6px; text-align: center; }

.btn-upload {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px dashed var(--border);
  color: var(--text-muted); padding: 10px 16px;
  border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  width: 100%; justify-content: center; min-height: 44px;
}
.btn-upload:hover { border-color: var(--accent2); color: var(--accent); }

.detected-wrap { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.detected-thumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 10px 0; }
.detected-thumbs:empty { display: none; }
.detected-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: var(--surface2); }
.detecting-state { display: flex; align-items: center; gap: 10px; padding: 14px; font-size: 0.85rem; color: var(--text-muted); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.detected-label { font-size: 0.78rem; color: var(--text-muted); padding: 10px 12px 6px; border-bottom: 1px solid var(--border); }
.detected-list { max-height: 180px; overflow-y: auto; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.detected-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; background: var(--surface2); border-radius: 6px; font-size: 0.85rem; color: var(--text); min-height: 40px; }
.detected-item-naam { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-remove-detected { background: transparent; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.75rem; padding: 4px 6px; border-radius: 4px; transition: color 0.2s, background 0.2s; min-width: 28px; min-height: 28px; }
.btn-remove-detected:hover { color: var(--danger); background: rgba(192,98,74,0.1); }
.detected-error { padding: 12px; font-size: 0.82rem; color: var(--danger); background: rgba(192,98,74,0.08); }

/* Inline input */
/* Inline hoofdstuk toevoegen — subtiel, geen gele knoppen */
.hfst-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.hfst-inline-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 9px 14px;
  outline: none;
  min-height: 40px;
  transition: border-color 0.2s;
}

.hfst-inline-input:focus {
  border-color: var(--text-dim);
}

.hfst-inline-input::placeholder { color: var(--text-dim); }

.hfst-inline-cancel {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 6px 8px;
  border-radius: 4px;
  transition: color 0.2s;
  flex-shrink: 0;
  min-height: 40px;
}
.hfst-inline-cancel:hover { color: var(--text-muted); }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 600px) {
  .tab-panel { padding: 20px 14px calc(var(--nav-h) + 16px); }
  .app-title { font-size: 1.7rem; }
  .header-top { flex-direction: column; gap: 10px; }
  .btn-add-vak { width: 100%; justify-content: center; }
  .vakken-grid { grid-template-columns: 1fr; }
  .detail-overlay { padding: 20px 14px 80px; }
  .btn-delete-vak span { display: none; }
  .voortgang-stats { grid-template-columns: 1fr 1fr; }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
  }

  #main-area {
    overflow-y: auto;
    height: 100%;
  }

  html, body, #app {
    overflow: visible;
    height: 100%;
  }
}

/* =====================
   AUTH SCREEN
   ===================== */
#auth-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

#auth-screen.hidden { display: none !important; }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
}

.auth-logo { text-align: center; margin-bottom: 32px; }

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#auth-form input[type="email"],
#auth-password {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}

#auth-form input:focus {
  border-color: var(--accent2);
}

.auth-btn {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #1a1408;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px;
  width: 100%;
  margin-top: 4px;
  transition: background 0.15s, opacity 0.15s;
}

.auth-btn:hover:not(:disabled)  { background: var(--accent2); }
.auth-btn:disabled               { opacity: 0.5; cursor: not-allowed; }

.auth-error {
  background: var(--danger-dim);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 0.85rem;
  padding: 10px 12px;
}

/* =====================
   LOGOUT KNOP (sidebar)
   ===================== */
.nav-btn-logout {
  margin-top: auto;
  color: var(--text-dim) !important;
}

.nav-btn-logout:hover {
  color: var(--danger) !important;
  background: var(--danger-dim) !important;
}

/* =====================
   WACHTWOORD TOGGLE
   ===================== */
.password-wrap {
  position: relative;
}

.password-wrap #auth-password {
  padding-right: 44px;
  width: 100%;
  box-sizing: border-box;
}

.btn-toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.btn-toggle-pw:hover { color: var(--text); }

/* =====================
   VAKKLEUREN — picker in detail
   ===================== */
.detail-kleur-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.kleur-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-right: 2px;
}

.kleur-cirkel {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.kleur-cirkel:hover { transform: scale(1.2); }

.kleur-cirkel.actief {
  border-color: var(--text);
  transform: scale(1.15);
}

.kleur-reset {
  background: var(--surface2) !important;
  color: var(--text-muted);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================
   POLICY CHECKBOX (registratie)
   ===================== */
.policy-consent-text {
  margin-top: 4px;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-policy-info {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-policy-info:hover { color: var(--accent2); }

/* =====================
   POLICY MODAL & WALL
   ===================== */
.modal--policy {
  max-width: 600px;
  width: 95vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.policy-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.policy-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 14px;
  transition: color 0.15s, background 0.15s;
}
.policy-tab:hover { background: var(--surface2); color: var(--text); }
.policy-tab.active { color: var(--accent); border-bottom: 2px solid var(--accent); margin-bottom: -1px; }

.policy-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.policy-tab-content { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.policy-tab-content h1, .policy-tab-content h2, .policy-tab-content h3 {
  color: var(--text); font-family: 'Playfair Display', serif; margin: 16px 0 8px;
}
.policy-tab-content p { margin-bottom: 10px; }
.policy-tab-content a { color: var(--accent); }

.modal--policy .btn-cancel {
  margin: 0 24px 20px;
  align-self: flex-start;
}

/* =====================
   POLICY WALL
   ===================== */
.policy-wall {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.policy-wall.hidden { display: none !important; }

.policy-wall-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.policy-wall-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text);
  padding: 24px 24px 4px;
}

.policy-wall-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0 24px 16px;
}

.policy-wall-inner .policy-tabs { margin: 0; }
.policy-wall-inner .policy-content { flex: 1; overflow-y: auto; padding: 20px 24px; }
.policy-wall-inner .auth-btn { margin: 16px 24px 24px; width: calc(100% - 48px); }

/* =====================
   GEBRUIKERSMENU POPUP
   ===================== */
.nav-btn-user { margin-top: auto; }

@media (max-width: 700px) {
  .nav-btn-user { margin-top: 0 !important; align-self: center; }
}

.user-menu-popup {
  position: absolute;
  bottom: calc(var(--nav-h) + 8px);
  left: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  min-width: 220px;
  z-index: 50;
  overflow: hidden;
  animation: fadeIn 0.12s ease;
}

@media (min-width: 701px) {
  .user-menu-popup {
    bottom: 80px;
    left: 12px;
  }
}

.user-menu-popup.hidden { display: none; }

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 12px 16px;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.user-menu-item:hover { background: var(--surface2); color: var(--text); }
.user-menu-item--danger { color: var(--danger); }
.user-menu-item--danger:hover { background: var(--danger-dim); color: var(--danger); }

.user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* =====================
   SAMEN (LOBBIES)
   ===================== */

.samen-content { display: flex; flex-direction: column; gap: 14px; }
.samen-laden { color: var(--text-muted); font-size: 0.9rem; padding: 20px 0; }

.samen-sectie-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); font-weight: 600; margin-top: 10px;
}

.btn-plan-sessie { align-self: flex-start; }

/* Invite-blok */
.invite-blok {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}
.invite-blok-kop {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.9rem; color: var(--text);
}
.invite-toggle {
  background: transparent; border: none; color: var(--accent);
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem; cursor: pointer;
}
.invite-blok-body { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.btn-invite-share {
  background: var(--surface2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; cursor: pointer;
  transition: border-color 0.2s; min-height: 44px; text-align: left;
}
.btn-invite-share:hover { border-color: var(--accent2); }
.invite-code-row { display: flex; gap: 8px; }
.invite-code-input {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  padding: 10px 12px; outline: none; min-height: 44px;
}
.invite-code-input:focus { border-color: var(--accent2); }
.invite-code-input::placeholder { color: var(--text-dim); }
.btn-invite-redeem {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s; min-height: 44px;
}
.btn-invite-redeem:hover { border-color: var(--text-muted); color: var(--text); }

/* Lobby cards */
.lobby-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.lobby-card:hover { border-color: var(--accent2); }
.lobby-card--open { border-color: var(--accent2); }
.lobby-card-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.lobby-card-info { flex: 1; min-width: 0; }
.lobby-card-titel { font-size: 0.98rem; font-weight: 600; color: var(--text); }
.lobby-card-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }
.lobby-teller {
  font-size: 0.85rem; color: var(--accent); font-weight: 600;
  white-space: nowrap;
}
.lobby-teller--vol { color: var(--text-dim); }

.lobby-card-detail { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.lobby-leden { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.lobby-leden li { font-size: 0.88rem; color: var(--text); }
.lobby-creator-badge {
  font-size: 0.68rem; color: var(--accent); border: 1px solid var(--accent2);
  border-radius: 99px; padding: 1px 8px; margin-left: 6px; vertical-align: middle;
}
.lobby-aanbeveling { margin-bottom: 12px; }
.lobby-aanbeveling .watnu-card-secundair { opacity: 1; }
.lobby-acties { display: flex; gap: 10px; justify-content: flex-end; }
.btn-lobby-delete:hover { border-color: var(--danger); color: var(--danger); }

.lobby-kurt-hint { font-size: 0.82rem; margin: 8px 0 12px; }
.lobby-kurt-hint a { color: var(--accent); text-decoration: none; }
.lobby-kurt-hint a:hover { text-decoration: underline; }

/* Lobby-modal formulier */
.lobby-form-label {
  display: block; font-size: 0.78rem; color: var(--text-muted);
  margin: 14px 0 6px; font-weight: 500;
}
.modal--lobby input[type="datetime-local"],
.modal--lobby input[type="number"],
.modal--lobby select {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  padding: 12px 14px; outline: none; transition: border-color 0.2s; min-height: 44px;
  color-scheme: dark;
}
.modal--lobby input:focus, .modal--lobby select:focus { border-color: var(--accent2); }
.modal--lobby input[type="text"] { margin-top: 8px; }

.lobby-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lobby-chip {
  background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted);
  padding: 8px 12px; border-radius: 99px;
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lobby-chip:hover { border-color: var(--text-muted); }
.lobby-chip.active { border-color: var(--accent); color: var(--accent); }

.friend-check-list {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 160px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px; background: var(--surface2);
}
.friend-check-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text); cursor: pointer;
  padding: 6px 8px; border-radius: var(--radius-sm);
}
.friend-check-item:hover { background: var(--surface); }
.friend-check-item input { accent-color: var(--accent); width: 16px; height: 16px; }
.friend-check-leeg { font-size: 0.82rem; color: var(--text-muted); padding: 4px; }

.lobby-form-error { color: var(--danger); font-size: 0.82rem; margin-top: 12px; }

/* Toast */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 20px); left: 50%;
  transform: translate(-50%, 12px);
  background: var(--surface2); border: 1px solid var(--accent2); color: var(--text);
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 0.88rem; z-index: 9999;
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  max-width: calc(100vw - 40px);
}
.toast--zichtbaar { opacity: 1; transform: translate(-50%, 0); }
