/* =========================================================================
   Napoli Medewerkersportaal — stylesheet
   Kleurensysteem: wit / donkergrijs met "Napoli-azuur" als accent,
   geïnspireerd op de Golf van Napels.
   ========================================================================= */

:root {
  /* --- Licht thema (standaard) --- */
  --bg: #ffffff;
  --bg-secondary: #f3f5f7;
  --surface: #ffffff;
  --surface-hover: #f6f8fa;
  --text: #1c1e21;
  --text-muted: #6b7280;
  --text-faint: #9aa1ab;
  --border: #e6e9ed;
  --border-strong: #d6dae0;

  --accent: #0f4c81;
  --accent-strong: #0b3a63;
  --accent-soft: #e6f0fa;
  --accent-contrast: #ffffff;

  --warm: #e8743b;
  --warm-soft: #fdeee5;

  --success: #1e8e5a;
  --success-soft: #e3f6ee;
  --warning: #b7791f;
  --warning-soft: #fdf3df;
  --danger: #cf3b32;
  --danger-soft: #fbe9e7;

  --shadow-sm: 0 1px 2px rgba(20, 24, 32, 0.05), 0 1px 1px rgba(20, 24, 32, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 24, 32, 0.07), 0 2px 4px rgba(20, 24, 32, 0.05);
  --shadow-lg: 0 12px 32px rgba(20, 24, 32, 0.12), 0 4px 8px rgba(20, 24, 32, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --sidebar-width: 264px;
  --topbar-height: 64px;
  --bottom-nav-height: 72px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #1a1b1e;
  --bg-secondary: #141518;
  --surface: #24262b;
  --surface-hover: #2b2d33;
  --text: #f2f3f5;
  --text-muted: #9aa1ab;
  --text-faint: #6b7280;
  --border: #34363c;
  --border-strong: #43464d;

  --accent: #5aa9e6;
  --accent-strong: #7fc0f5;
  --accent-soft: #1f3a52;
  --accent-contrast: #0b1622;

  --warm: #ef9269;
  --warm-soft: #3a2a22;

  --success: #4ade95;
  --success-soft: #1c3a2c;
  --warning: #fbbf24;
  --warning-soft: #3a2f14;
  --danger: #f5847a;
  --danger-soft: #3b2220;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);

  color-scheme: dark;
}

/* =========================================================================
   Reset & basis
   ========================================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-secondary);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

button {
  font-family: var(--font-body);
}

img {
  max-width: 100%;
  display: block;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-pill);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* =========================================================================
   Iconen (inline SVG via <span class="icon">)
   ========================================================================= */

.icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm {
  width: 16px;
  height: 16px;
}
.icon--lg {
  width: 28px;
  height: 28px;
}

/* =========================================================================
   Inlogscherm
   ========================================================================= */

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.auth-screen__wave {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  line-height: 0;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}
.auth-screen__wave svg {
  width: 100%;
  display: block;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  border: 1px solid var(--border);
}

.auth-card__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  text-align: center;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent) 0%, #1c6fb0 60%, var(--warm) 130%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.brand-mark span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: #ffffff;
}

.auth-card__brand h1 {
  font-size: 22px;
}

.auth-card__brand p {
  color: var(--text-muted);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  display: none;
}
.auth-error.visible {
  display: block;
}

.auth-card__footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* =========================================================================
   App-layout
   ========================================================================= */

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar (desktop) --- */

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.sidebar__header {
  padding: 22px 22px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar__header .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}
.sidebar__header .brand-mark span {
  font-size: 19px;
}

.sidebar__brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
}
.sidebar__brand-text small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.sidebar__nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 16px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-item .icon {
  color: var(--text-faint);
  transition: color 0.15s ease;
}

.nav-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.nav-item:hover .icon {
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-item.active .icon {
  color: var(--accent);
}

.nav-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 32px;
  margin-top: 2px;
}

.nav-sub .nav-item {
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
}

.sidebar__footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

/* --- Topbar --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.topbar__title {
  font-size: 19px;
}

.topbar__title small {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.icon-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  box-shadow: var(--shadow-md);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: flex;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: flex;
}

.user-menu {
  position: relative;
}

.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: box-shadow 0.15s ease;
}
.user-menu__trigger:hover {
  box-shadow: var(--shadow-md);
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.user-menu__name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}
.user-menu__name strong {
  font-size: 13.5px;
  font-weight: 600;
}
.user-menu__name span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.user-menu__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  display: none;
  z-index: 30;
}
.user-menu__dropdown.open {
  display: block;
}
.user-menu__dropdown .nav-item {
  font-size: 13.5px;
}

/* --- Hoofdcontent --- */

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.view {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1100px;
  width: 100%;
}

.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.view-header h2 {
  font-size: 22px;
}

.view-header p.subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* --- Bottom nav (mobiel) --- */

.bottom-nav {
  display: none;
}

/* =========================================================================
   Componenten
   ========================================================================= */

/* --- Knoppen --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}
.btn--primary:hover:not(:disabled) {
  background: var(--accent-strong);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--secondary:hover:not(:disabled) {
  background: var(--surface-hover);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  box-shadow: none;
}
.btn--ghost:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
}

.btn--danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}
.btn--danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}

.btn--sm {
  padding: 7px 12px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

/* --- Formuliervelden --- */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.input,
.select,
.textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.textarea {
  resize: vertical;
  min-height: 90px;
  font-family: var(--font-body);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
}

.checkbox-row input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.checkbox-row strong {
  display: block;
  font-size: 13.5px;
}
.checkbox-row span {
  color: var(--text-muted);
  font-size: 12px;
}

/* --- Kaarten --- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card__title {
  font-size: 15.5px;
}

.card__title small {
  display: block;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 2px;
}

/* --- Statistiekkaarten --- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card__label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}

.stat-card__meta {
  font-size: 12px;
  color: var(--text-faint);
}

/* --- Badges --- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge--success {
  background: var(--success-soft);
  color: var(--success);
}
.badge--warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge--danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge--neutral {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

/* --- Tabellen --- */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table tbody tr:hover {
  background: var(--surface-hover);
}

.table td.wrap {
  white-space: normal;
}

.table-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* --- Lege staten --- */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-state .icon {
  width: 40px;
  height: 40px;
  color: var(--text-faint);
}

.empty-state h3 {
  font-size: 15px;
  color: var(--text);
}

.empty-state p {
  font-size: 13.5px;
  max-width: 320px;
}

/* --- Aankondigingen (Home) --- */

.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.announcement {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.announcement__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.announcement__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.announcement__meta strong {
  font-size: 13.5px;
}

.announcement__meta span {
  font-size: 12px;
  color: var(--text-faint);
}

.announcement__message {
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.announcement__image {
  border-radius: var(--radius-sm);
  max-height: 320px;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--border);
}

/* --- Weekplanning --- */

.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.week-nav__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.week-nav__controls {
  display: flex;
  gap: 8px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}

.day-card--today {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}

.day-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.day-card__day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
}

.day-card__date {
  font-size: 12px;
  color: var(--text-faint);
}

.shift-chip {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shift-chip strong {
  font-size: 13px;
}

.shift-chip small {
  color: var(--text-muted);
}

[data-theme="dark"] .shift-chip small {
  color: var(--accent-strong);
  opacity: 0.8;
}

.day-card__empty {
  font-size: 12.5px;
  color: var(--text-faint);
  font-style: italic;
}

/* --- Planning (beheer) --- */

.planning-grid {
  display: grid;
  gap: 10px;
}

.planning-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: start;
}

.planning-row__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding-top: 10px;
}

.planning-row__label small {
  display: block;
  font-weight: 500;
  color: var(--text-faint);
  font-size: 11.5px;
}

.planning-row__shifts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shift-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12.5px;
  border: 1px solid transparent;
}

.shift-pill__info strong {
  display: block;
  font-size: 12.5px;
}
.shift-pill__info span {
  display: block;
  color: var(--text-muted);
  font-size: 11.5px;
}

.shift-pill__actions {
  display: flex;
  gap: 4px;
}

.shift-pill__actions button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 0.7;
}
.shift-pill__actions button:hover {
  opacity: 1;
}

.add-shift-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12.5px;
  cursor: pointer;
  font-family: var(--font-body);
}
.add-shift-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Modals --- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 23, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  backdrop-filter: blur(2px);
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid var(--border);
}

.modal--wide {
  max-width: 640px;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
}

.modal__header h3 {
  font-size: 16.5px;
}

.modal__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

.modal__warning {
  background: var(--warning-soft);
  color: var(--warning);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.modal__error {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
}

/* --- Toasts --- */

.toast-root {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 360px;
  animation: toast-in 0.2s ease;
}

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

.toast--success {
  border-left: 4px solid var(--success);
}
.toast--error {
  border-left: 4px solid var(--danger);
}
.toast--info {
  border-left: 4px solid var(--accent);
}

/* --- Beheer-menu (mobiel) --- */

.beheer-menu {
  display: grid;
  gap: 12px;
}

.beheer-menu__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}

.beheer-menu__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.beheer-menu__text strong {
  display: block;
  font-size: 14.5px;
  color: var(--text);
}
.beheer-menu__text span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.beheer-menu__chevron {
  margin-left: auto;
  color: var(--text-faint);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
}
.back-link:hover {
  color: var(--accent);
}

/* =========================================================================
   Responsief: mobiel
   ========================================================================= */

@media (max-width: 1023px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
  }

  .view {
    padding: 16px;
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
  }

  .topbar {
    padding: 0 16px;
  }

  .topbar__title {
    font-size: 17px;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 20;
    box-shadow: 0 -2px 12px rgba(20, 24, 32, 0.06);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    background: none;
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    padding: 8px 0 6px;
  }

  .bottom-nav__item.active {
    color: var(--accent);
  }

  .planning-row {
    grid-template-columns: 1fr;
  }
  .planning-row__label {
    padding-top: 0;
  }

  .user-menu__name {
    display: none;
  }
  .user-menu__trigger {
    padding: 6px;
  }

  .modal {
    max-height: calc(100vh - 32px);
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 32px 22px;
  }

  .view-header {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================================
   Print
   ========================================================================= */

@media print {
  .sidebar,
  .topbar,
  .bottom-nav {
    display: none !important;
  }
  .main-content {
    margin-left: 0 !important;
  }
}
