/* ── GEDEELDE SIDEBAR + TOPBAR ──────────────────────────────────────────────
   Eén bron voor de navigatie-chrome, gebruikt door zowel de React-app
   (index.html) als losstaande tools (bv. snelkoppelingen.html). Wijzig hier
   zodat sidebar en topbar overal identiek blijven. */

:root {
  --yellow: #ffcc00;
  --yellow-light: #fff9e0;
  --black: #1A1A1A;
  --bg: #F4F5F7;
  --white: #ffffff;
  --border: #E8E8EC;
  --text: #1A1A1A;
  --text-muted: #9099A8;
  --sidebar-w: 256px;
  --topbar-h: 90px;
  --radius-sm: 8px;
}

.layout {
  display: flex; min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 20;
}
.sidebar-top {
  height: var(--topbar-h);
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav { padding: 10px 8px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 10px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.12s;
  margin-bottom: 1px;
  user-select: none;
  text-decoration: none;
}
.nav-item:hover { color: var(--text); background: var(--bg); }
.nav-item.active { color: var(--black); background: var(--yellow-light); }
.nav-item.active .nav-icon { background: var(--yellow); color: var(--black); }
.nav-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.12s;
  color: var(--text-muted);
}

/* ── MAIN / TOPBAR ── */
.main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  position: sticky; top: 0; z-index: 10;
  gap: 16px;
  flex-shrink: 0;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-icon {
  width: 38px; height: 38px;
  background: var(--yellow-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--black); flex-shrink: 0;
}
.topbar-title { font-size: 20px; font-weight: 700; color: var(--black); }
.topbar-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.topbar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

@media (max-width: 800px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
}

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