/* ── Dashboard shell ── */

.dashboard-page {
  height: 100dvh;
  overflow: hidden;
}

.dashboard {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  height: 100dvh;
}

/* ── Sidebar ── */

.sidebar {
  background: var(--ink);
  border-right: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1.5rem 1.25rem 1.25rem;
}

.brand-logo {
  width: 132px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.75rem 1.5rem;
}

.nav-kop {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a8a8a;
  padding: 1rem 0.5rem 0.4rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.65rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: #f2f2f2;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  transition: background 0.12s, color 0.12s;
}

.nav-link:hover {
  background: #262626;
}

.nav-link.actief {
  background: var(--accent);
  color: #fff;
}

/* currentColor laat het icoon meelopen met de linkkleur, ook op het oranje
   blok van de actieve tool. */
.nav-icoon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icoon .icoon-zacht {
  opacity: 0.45;
}

.nav-naam {
  min-width: 0;
}

/* ── Paneel ── */

.paneel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
}

.paneel-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
  height: 56px;
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
}

.paneel-titel {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.extern-link {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.12s;
}

.extern-link:hover {
  color: var(--accent);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1;
}

.menu-btn:hover {
  background: var(--bg);
}

.paneel-body {
  flex: 1;
  min-height: 0;
  position: relative;
}

.tool-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Welkomstscherm ── */

.welkom {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 2rem;
}

/* Het oranje blokje dat zethet.nl als bullet boven z'n koppen zet. */
.welkom-icoon {
  width: 14px;
  height: 14px;
  background: var(--accent);
  margin-bottom: 1rem;
}

.welkom h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.welkom p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Mobiel: sidebar schuift in ── */

.scrim {
  display: none;
}

@media (max-width: 860px) {
  .dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
  }

  .sidebar.open {
    transform: none;
  }

  .scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.35);
  }

  .menu-btn {
    display: block;
  }

  .welkom p {
    max-width: 22ch;
  }
}

/* ── Beta-schakelaar ── */

.beta-schakelaar {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid #2a2a2a;
}

.beta-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-right: auto;
  cursor: pointer;
  color: #f2f2f2;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.beta-uitleg {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #8a8a8a;
}

.beta-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.beta-knop {
  flex-shrink: 0;
  width: 38px;
  height: 20px;
  background: #3a3a3a;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}

.beta-knop::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #f2f2f2;
  transition: transform 0.15s;
}

.beta-checkbox:checked + .beta-knop {
  background: var(--accent);
}

.beta-checkbox:checked + .beta-knop::after {
  transform: translateX(18px);
}

.beta-checkbox:focus-visible + .beta-knop {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
