/* ============================================================
   DAGPLANNING BORD — stylesheet
   ============================================================ */

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

:root {
  --font-display: 'Baloo 2', cursive;
  --font-body:    'Nunito', sans-serif;

  --bg:           #F7F8FC;
  --surface:      #FFFFFF;
  --surface2:     #F0F3FA;
  --border:       #DDE2EF;
  --text:         #1A1F3C;
  --text-muted:   #6B7299;
  --primary:      #4361EE;
  --primary-light:#EAEDff;
  --shadow-sm:    0 2px 8px rgba(30,35,64,.07);
  --shadow-md:    0 6px 24px rgba(30,35,64,.11);
  --radius:       14px;
  --radius-sm:    8px;

  --hour-bg:      #FEE9C8;
  --hour-text:    #B86E20;
  --cell-bg:      #FFFFFF;
  --taken-bg:     #F4FCF4;
  --taken-hdr:    #D4EFD4;
  --toets-bg:     #FFFBF2;
  --toets-hdr:    #FDEFC4;

  --c-blue:   #4A90D9; --c-blue-bg:   #daeaf8;
  --c-green:  #5CB85C; --c-green-bg:  #d6f0d6;
  --c-orange: #F0A500; --c-orange-bg: #fde8a8;
  --c-red:    #E05C5C; --c-red-bg:    #fad4d4;
  --c-purple: #9B6BDB; --c-purple-bg: #e8d8f8;
  --c-pink:   #E87CA0; --c-pink-bg:   #fad8e8;
  --c-teal:   #3BBFBF; --c-teal-bg:   #c8eeee;
  --c-yellow: #C9A800; --c-yellow-bg: #f8f0b0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Header ───────────────────────────────────────────────── */
.app-header {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}
.header-left  { display: flex; align-items: center; gap: 14px; }
.logo         { font-size: 2rem; line-height: 1; }
.header-title h1 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -.5px;
}
.subtitle { font-size: .78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.header-right { display: flex; align-items: center; gap: 10px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border: none; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .88rem; font-weight: 700;
  cursor: pointer; transition: background .18s, transform .12s; white-space: nowrap;
}
.btn-primary  { background: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(67,97,238,.35); }
.btn-primary:hover { background: #324ccc; transform: translateY(-1px); }
.btn-ghost    { background: var(--surface2); color: var(--text-muted); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-danger   { background: #fff0f0; color: #E05C5C; border: 1.5px solid #f5b8b8; }
.btn-danger:hover { background: #ffe0e0; }

/* ── Settings ─────────────────────────────────────────────── */
.settings-wrap { position: relative; }
.btn-gear {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface2);
  font-size: 1.25rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, transform .3s;
}
.btn-gear:hover   { background: var(--border); }
.btn-gear.open    { transform: rotate(60deg); }

.settings-panel {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 300px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 300;
  padding: 18px;
  animation: panelIn .2s ease both;
}
.settings-panel.open { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.settings-title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 800;
  color: var(--text); margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
}
.settings-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.settings-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.settings-label { font-size: .75rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.settings-hint  { font-size: .75rem; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }

.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.settings-row label { font-size: .88rem; font-weight: 600; color: var(--text); }
.settings-row input[type="number"] {
  width: 60px; padding: 6px 10px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: .9rem; font-weight: 700; color: var(--text); background: var(--surface2);
  outline: none; text-align: center;
}
.settings-row input[type="number"]:focus { border-color: var(--primary); }

.slot-inputs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; max-height: 200px; overflow-y: auto; }
.slot-row { display: flex; align-items: center; gap: 6px; }
.slot-row .slot-num { font-size: .75rem; font-weight: 800; color: var(--text-muted); width: 18px; flex-shrink: 0; text-align: right; }
.slot-row input[type="time"] {
  flex: 1; padding: 5px 6px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: .8rem; font-weight: 700; color: var(--text); background: var(--surface2); outline: none;
}
.slot-row input[type="time"]:focus { border-color: var(--primary); }
.slot-row .slot-sep { font-size: .75rem; color: var(--text-muted); flex-shrink: 0; }

.btn-settings-apply {
  width: 100%; padding: 8px;
  background: var(--primary); color: #fff; border: none;
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: .85rem; font-weight: 700; cursor: pointer; transition: background .18s;
}
.btn-settings-apply:hover { background: #324ccc; }

.toggle-row { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--text); cursor: pointer; padding: 4px 0; }
.toggle-row input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }

.danger-section .settings-label { color: #c03030; }
.btn-danger-full {
  width: 100%; padding: 9px;
  background: #fff0f0; color: #E05C5C;
  border: 1.5px solid #f5b8b8;
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: .88rem; font-weight: 700; cursor: pointer; transition: background .18s;
}
.btn-danger-full:hover { background: #ffe0e0; }

/* ── Week nav ─────────────────────────────────────────────── */
.day-nav {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  overflow-x: auto;
}
.week-nav-btn {
  width: 32px; height: 32px;
  border: 2px solid var(--border); border-radius: 50%;
  background: var(--surface2); color: var(--text-muted);
  font-size: 1.1rem; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .18s;
}
.week-nav-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

.week-label {
  font-family: var(--font-display); font-size: .85rem; font-weight: 700;
  color: var(--text-muted); white-space: nowrap; min-width: 140px; text-align: center;
}

.day-nav-divider { width: 1.5px; height: 28px; background: var(--border); border-radius: 2px; flex-shrink: 0; }

.day-btn {
  padding: 7px 18px; border: 2px solid var(--border); border-radius: 999px;
  background: transparent; font-family: var(--font-display);
  font-size: .9rem; font-weight: 700; color: var(--text-muted);
  cursor: pointer; transition: all .18s; white-space: nowrap;
}
.day-btn:hover  { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.day-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(67,97,238,.3); }
.day-btn.is-today { outline: 2px solid var(--primary); outline-offset: 2px; }

.today-jump { background: var(--surface2); border-color: var(--border); color: var(--text-muted); font-size: .82rem; padding: 7px 14px; }
.today-jump:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* ── Day date bar ─────────────────────────────────────────── */
.day-date-bar {
  background: var(--primary-light);
  border-bottom: 1.5px solid #c8d4ff;
  padding: 8px 28px;
  font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--primary);
}

/* ── App layout: main + right sidebar ─────────────────────── */
.app-layout {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── Board: 2-column layout inside main ───────────────────── */
.board-container {
  width: 100%;
  margin: 0;
  padding: 20px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 16px;
  align-items: start;
}

/* ── Grid wrapper ─────────────────────────────────────────── */
.grid-wrapper {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--surface);
  border: 2px solid var(--border);
  overflow: hidden;
  width: 100%;
}

.extra-sections { display: flex; flex-direction: column; gap: 14px; }

/* ── Table ────────────────────────────────────────────────── */
.planning-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }

/* Force rows to size based on tallest cell */
.planning-grid tbody tr { height: auto; }

.planning-grid thead tr th {
  padding: 12px 10px;
  font-family: var(--font-display); font-size: .95rem; font-weight: 800;
  text-align: center; border-bottom: 2px solid var(--border);
}
.planning-grid thead th.hour-col   { background: var(--hour-bg); color: var(--hour-text); width: 90px; }
.planning-grid thead th.day-col    { background: var(--primary-light); color: var(--primary); }
.planning-grid thead th.taken-col  { background: var(--taken-hdr); color: #2a6a2a; width: 240px; }
.planning-grid thead th.toets-col  { background: var(--toets-hdr); color: #8a5a00; width: 240px; }

.planning-grid tbody tr { border-bottom: 1.5px solid var(--border); }
.planning-grid tbody tr:last-child { border-bottom: none; }

/* Hour cell */
.planning-grid td.hour-cell {
  background: var(--hour-bg); color: var(--hour-text);
  font-family: var(--font-display); text-align: center; vertical-align: middle;
  border-right: 2px solid var(--border); padding: 0;
}
.hour-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 10px 6px; }
.hour-num   { font-size: 1rem; font-weight: 800; line-height: 1; }
.hour-time  { font-size: .65rem; font-weight: 700; opacity: .8; white-space: nowrap; }

/* Lesson cell */
.planning-grid td.day-cell {
  background: var(--cell-bg); vertical-align: top;
  padding: 8px; min-height: 88px;
  cursor: pointer; transition: filter .15s; position: relative;
  border-right: 1.5px solid var(--border);
}
.planning-grid td.day-cell:hover { filter: brightness(.95); }
.planning-grid tr.current-row td.hour-cell { background: #FFD580; color: #8a5a00; }
.planning-grid tr.current-row td.day-cell  { background: #e8eeff; outline: 2px solid rgba(67,97,238,.35); outline-offset: -2px; }

.cell-empty-hint {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-height: 72px;
  color: rgba(100,110,180,.25); font-size: 1.5rem; pointer-events: none;
}
.day-cell:hover .cell-empty-hint { color: rgba(67,97,238,.4); }

/* Side cells (taken/toetsen per uur) */
.planning-grid td.taken-cell,
.planning-grid td.toets-cell {
  vertical-align: top;
  padding: 6px 8px;
  min-height: 88px;
  border-right: 1.5px solid var(--border);
  cursor: default;
  transition: background .15s;
}
.planning-grid td.taken-cell { background: var(--taken-bg); }
.planning-grid td.toets-cell { background: var(--toets-bg); }

.side-cell-items { display: flex; flex-direction: column; gap: 4px; min-height: 72px; }

.side-item {
  display: flex; align-items: flex-start; gap: 5px;
  padding: 4px 6px; border-radius: 6px;
  font-size: .72rem; font-weight: 700;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.07);
  cursor: pointer; transition: background .12s;
  line-height: 1.3;
}
.side-item:hover { background: rgba(255,255,255,.95); }
.side-item.done .side-item-text { text-decoration: line-through; opacity: .5; }
.side-item input[type="checkbox"] { accent-color: var(--primary); width: 12px; height: 12px; flex-shrink: 0; margin-top: 1px; cursor: pointer; }
.side-item-inner { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.side-item-text  { white-space: normal; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.side-item-date  { font-size: .65rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.side-item-date.overdue { color: #E05C5C; font-weight: 800; }
.side-item-date.soon    { color: #F0A500; font-weight: 800; }

.side-add-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 3px;
  background: transparent; border: 1.5px dashed rgba(0,0,0,.15);
  border-radius: 6px; color: rgba(0,0,0,.25);
  font-size: .8rem; cursor: pointer; transition: all .15s;
  margin-top: auto;
}
.side-add-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(67,97,238,.06); }

/* ── Lesson card ──────────────────────────────────────────── */
.lesson-card {
  border-radius: 10px; padding: 9px 12px 9px 16px;
  height: 100%; min-height: 72px;
  display: flex; flex-direction: column; gap: 3px;
  position: relative; overflow: hidden;
  animation: cardIn .22s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes cardIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.lesson-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 10px 0 0 10px; }

.lesson-card[data-color="blue"]   { background: var(--c-blue-bg);   } .lesson-card[data-color="blue"]::before   { background: var(--c-blue);   }
.lesson-card[data-color="green"]  { background: var(--c-green-bg);  } .lesson-card[data-color="green"]::before  { background: var(--c-green);  }
.lesson-card[data-color="orange"] { background: var(--c-orange-bg); } .lesson-card[data-color="orange"]::before { background: var(--c-orange); }
.lesson-card[data-color="red"]    { background: var(--c-red-bg);    } .lesson-card[data-color="red"]::before    { background: var(--c-red);    }
.lesson-card[data-color="purple"] { background: var(--c-purple-bg); } .lesson-card[data-color="purple"]::before { background: var(--c-purple); }
.lesson-card[data-color="pink"]   { background: var(--c-pink-bg);   } .lesson-card[data-color="pink"]::before   { background: var(--c-pink);   }
.lesson-card[data-color="teal"]   { background: var(--c-teal-bg);   } .lesson-card[data-color="teal"]::before   { background: var(--c-teal);   }
.lesson-card[data-color="yellow"] { background: var(--c-yellow-bg); } .lesson-card[data-color="yellow"]::before { background: var(--c-yellow); }

.lesson-icon  { font-size: 1rem; line-height: 1; }
.lesson-title { font-family: var(--font-display); font-size: .95rem; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-desc  { font-size: .75rem; color: var(--text-muted); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ── Extra sections (meenemen) ────────────────────────────── */
.extra-sections-items { display: flex; flex-direction: column; gap: 14px; }

.extra-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.extra-card-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--surface2); border-bottom: 1.5px solid var(--border);
}
.extra-icon { font-size: 1.2rem; }
.extra-card-header h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--text); flex: 1; }
.extra-add-btn {
  background: var(--primary); color: #fff; border: none;
  width: 28px; height: 28px; border-radius: 50%; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.extra-add-btn:hover { background: #324ccc; transform: scale(1.1); }

.extra-list { list-style: none; padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 36px; }

.extra-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px; background: var(--surface2);
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  animation: cardIn .2s ease both; transition: background .15s;
}
.extra-item:hover { background: #e4e8f5; }
.extra-item input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.extra-item-body  { flex: 1; min-width: 0; cursor: pointer; }
.extra-item-text  { font-size: .88rem; font-weight: 600; color: var(--text); }
.extra-item-date  { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.extra-item-date.overdue { color: #E05C5C; font-weight: 800; }
.extra-item-date.soon    { color: #F0A500; font-weight: 800; }
.extra-item.done .extra-item-text { text-decoration: line-through; color: var(--text-muted); }
.extra-item-del {
  background: none; border: none; font-size: .85rem; color: var(--text-muted);
  cursor: pointer; opacity: 0; transition: opacity .15s; padding: 2px 4px; border-radius: 4px; flex-shrink: 0;
}
.extra-item:hover .extra-item-del { opacity: 1; }
.extra-item-del:hover { color: #E05C5C; background: #fff0f0; }
.extra-empty { font-size: .85rem; color: var(--text-muted); padding: 4px 0; font-style: italic; }

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,24,50,.45);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  z-index: 500; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .22s;
}
.modal-overlay.visible { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(20,24,50,.25); width: 100%; max-width: 480px;
  overflow: hidden; transform: translateY(24px) scale(.97);
  transition: transform .25s cubic-bezier(.34,1.3,.64,1);
}
.modal-overlay.visible .modal { transform: none; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1.5px solid var(--border); }
.modal-header h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--text); }
.modal-close { background: var(--surface2); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: .9rem; cursor: pointer; color: var(--text-muted); }
.modal-close:hover { background: var(--border); }
.modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; max-height: 65vh; overflow-y: auto; }
.modal-slot-info { background: var(--primary-light); border: 1.5px solid #c0ccff; border-radius: var(--radius-sm); padding: 8px 14px; font-size: .85rem; font-weight: 700; color: var(--primary); display: none; }
.modal-slot-info.visible { display: block; }

.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label { font-size: .78rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.form-row .optional { font-weight: 600; text-transform: none; }

input[type="text"], input[type="date"], textarea {
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--text);
  background: var(--surface2); border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; outline: none; transition: border-color .18s, background .18s; width: 100%;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--primary); background: var(--primary-light); }

.color-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: transform .15s; }
.color-swatch:hover { transform: scale(1.18); }
.color-swatch.active { border-color: var(--text) !important; transform: scale(1.15); }

.icon-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--surface2); font-size: 1.3rem; cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--primary-light); border-color: var(--primary); transform: scale(1.1); }
.icon-btn.active { background: var(--primary-light); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67,97,238,.2); }

.modal-footer { display: flex; align-items: center; padding: 16px 24px 20px; border-top: 1.5px solid var(--border); gap: 10px; }
.modal-actions { display: flex; gap: 10px; margin-left: auto; }

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .app-header, .day-nav, .day-date-bar .settings-wrap, .extra-add-btn, .extra-item-del, .side-add-btn, .modal-overlay { display: none !important; }
  .board-container { margin: 0; padding: 0; max-width: 100%; grid-template-columns: 1fr; }
  .grid-wrapper, .extra-card { box-shadow: none; border: 1px solid #ccc; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .board-container { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .app-header { padding: 12px 14px; flex-wrap: wrap; }
  .day-nav { padding: 10px 12px; gap: 6px; }
  .day-btn { padding: 6px 12px; font-size: .82rem; }
  .board-container { padding: 0 12px 40px; margin-top: 16px; }
  .settings-panel { width: 260px; }
  .planning-grid thead th.taken-col,
  .planning-grid thead th.toets-col,
  .planning-grid td.taken-cell,
  .planning-grid td.toets-cell { display: none; }
}

/* ── Confirm modal ────────────────────────────────────────── */
.modal-confirm { max-width: 400px; }
.confirm-icon {
  font-size: 2.8rem; text-align: center;
  margin-bottom: 12px; line-height: 1;
  animation: confirmIconIn .3s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes confirmIconIn { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-message {
  text-align: center; font-size: .97rem; font-weight: 600;
  color: var(--text); line-height: 1.55;
}
.confirm-btn-ok {
  background: #E05C5C; color: #fff; border: none;
  box-shadow: 0 3px 10px rgba(224,92,92,.35);
}
.confirm-btn-ok:hover { background: #c43c3c; transform: translateY(-1px); }

/* ── Overview sidebar (fixed right column, full page height) ─ */
.overview-sidebar {
  width: 270px;
  flex-shrink: 0;
  background: var(--surface);
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.overview-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 14px;
  background: var(--primary-light);
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
}
.overview-icon { font-size: 1.2rem; }
.overview-header h3 {
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 800; color: var(--primary);
}

.overview-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}
.ov-tab {
  flex: 1; padding: 9px 4px;
  font-family: var(--font-body); font-size: .73rem; font-weight: 800;
  border: none; background: transparent; color: var(--text-muted);
  cursor: pointer; border-bottom: 3px solid transparent;
  transition: all .15s; white-space: nowrap;
  margin-bottom: -2px;
}
.ov-tab:hover { color: var(--primary); background: var(--primary-light); }
.ov-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--primary-light); }

.overview-body {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}

.overview-group-label {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 5px;
  font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--text-muted);
  position: sticky; top: 0;
  background: var(--surface);
  z-index: 1;
}
.overview-group-label::after {
  content: ''; flex: 1; height: 1.5px;
  background: var(--border); border-radius: 2px;
}
.overview-group-label.future { color: var(--primary); }
.overview-group-label.future::after { background: #c0ccff; }
.overview-group-label.today  { color: #2a6a2a; }
.overview-group-label.today::after  { background: var(--taken-hdr); }
.overview-group-label.past   { color: var(--text-muted); }

.overview-item {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 7px 14px;
  transition: background .13s;
}
.overview-item:hover { background: var(--surface2); }

.overview-item-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.overview-item-dot.taken  { background: #5CB85C; }
.overview-item-dot.toets  { background: #F0A500; }

.overview-item-body { flex: 1; min-width: 0; }
.overview-item-text {
  font-size: .82rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.overview-item.past .overview-item-text { color: var(--text-muted); }
.overview-item-meta {
  font-size: .68rem; font-weight: 600; color: var(--text-muted);
  margin-top: 1px; display: flex; align-items: center; gap: 4px;
}
.overview-item-meta .meta-type {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 5px; border-radius: 99px; font-size: .65rem; font-weight: 800;
}
.meta-type.taken  { background: var(--c-green-bg);  color: #2a6a2a; }
.meta-type.toets  { background: var(--c-orange-bg); color: #8a5a00; }
.overview-item-date {
  font-size: .72rem; font-weight: 700; padding: 2px 7px;
  border-radius: 99px; flex-shrink: 0; margin-top: 3px;
  align-self: flex-start; white-space: nowrap;
}
.overview-item-date.overdue { background: #fad4d4; color: #c03030; }
.overview-item-date.soon    { background: var(--c-orange-bg); color: #8a5a00; }
.overview-item-date.future  { background: var(--primary-light); color: var(--primary); }
.overview-item-date.past    { background: var(--surface2); color: var(--text-muted); }

.overview-empty {
  padding: 20px 14px;
  font-size: .82rem; color: var(--text-muted);
  font-style: italic; text-align: center;
}
.overview-done-badge {
  font-size: .65rem; font-weight: 800; padding: 1px 6px;
  border-radius: 99px; background: var(--surface2); color: var(--text-muted);
  opacity: .6; flex-shrink: 0; align-self: flex-start; margin-top: 3px;
}

/* Meenemen items in sidebar */
.ov-meenemen-item {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 8px 14px; transition: background .13s; border-bottom: 1px solid var(--border);
}
.ov-meenemen-item:hover { background: var(--surface2); }
.ov-meenemen-item input[type="checkbox"] { accent-color: var(--primary); width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; margin-top: 3px; }
.ov-meenemen-body { flex: 1; min-width: 0; }
.ov-meenemen-text { font-size: .82rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-meenemen-item.done .ov-meenemen-text { text-decoration: line-through; color: var(--text-muted); }
.ov-meenemen-date { font-size: .68rem; font-weight: 600; color: var(--text-muted); margin-top: 1px; }
.ov-meenemen-date.overdue { color: #c03030; font-weight: 800; }
.ov-meenemen-date.soon    { color: #8a5a00; font-weight: 800; }
.ov-add-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 10px 14px; padding: 7px;
  background: transparent; border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm); color: var(--text-muted);
  font-size: .8rem; font-weight: 700; cursor: pointer; transition: all .15s;
}
.ov-add-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

@media (max-width: 1100px) {
  .overview-sidebar { display: none; }
  .board-container  { grid-template-columns: 1fr; }
}

