:root {
  --st-ink: #141329;
  --st-muted: #6b6a7e;
  --st-line: #e7e6ef;
  --st-soft: #f6f6fa;
  --st-purple: #6547f5;
  --st-purple-dark: #4a34cf;
  --st-mint: #caffdf;
  --st-success: #16895a;
  --st-danger: #b4233c;
  --st-sidebar: 248px;
  --st-topbar: 68px;
  --st-radius: 18px;
  --st-shadow: 0 20px 55px rgba(24, 20, 62, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  color: var(--st-ink);
  background: #f7f7fb;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.st-topbar {
  min-height: var(--st-topbar);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(224, 223, 234, .9);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
}

.st-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--st-ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.035em;
  flex: 0 0 auto;
}

.st-brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #8169ff, #5136df);
  box-shadow: 0 10px 24px rgba(101, 71, 245, .28);
  font-size: 16px;
}

.st-topbar-context {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  border-left: 1px solid var(--st-line);
  padding-left: 22px;
}

.st-topbar-context span {
  color: var(--st-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.st-topbar-context strong {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.st-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.st-quick-create,
.st-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  background: var(--st-purple);
  color: #fff !important;
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(101, 71, 245, .22);
}

.st-icon-link,
.st-user-link {
  padding: 9px 11px;
  border-radius: 10px;
  text-decoration: none;
  color: #4e4d60;
  font-size: 13px;
  font-weight: 750;
}

.st-icon-link:hover,
.st-user-link:hover { background: #f3f1ff; color: var(--st-purple-dark); }

.st-public-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.st-public-nav a {
  padding: 10px 11px;
  border-radius: 9px;
  color: #555367;
  text-decoration: none;
  font-size: 13px;
  font-weight: 730;
}

.st-public-nav a:hover { background: #f4f2ff; color: var(--st-purple-dark); }
.st-public-nav .st-nav-cta { margin-left: 5px; padding: 0 15px; }

.st-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--st-line);
  border-radius: 11px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

.st-menu-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--st-ink);
  border-radius: 99px;
}

.st-sidebar {
  position: fixed;
  left: 0;
  top: var(--st-topbar);
  bottom: 0;
  width: var(--st-sidebar);
  z-index: 900;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--st-line);
  background: #fff;
}

.st-sidebar-scroll { overflow: auto; padding: 20px 14px; }
.st-nav-group + .st-nav-group { margin-top: 21px; }
.st-nav-group > span {
  display: block;
  padding: 0 11px 7px;
  color: #9b99aa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.st-nav-group a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 11px;
  color: #5d5b6e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 720;
}

.st-nav-group a i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f0eff7;
  color: #6d6a80;
  font-style: normal;
  font-weight: 900;
}

.st-nav-group a:hover { color: var(--st-purple-dark); background: #f7f5ff; }
.st-nav-group a.is-active { color: #4c35d2; background: #eeebff; }
.st-nav-group a.is-active i { color: #fff; background: var(--st-purple); }
.st-sidebar-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border-top: 1px solid var(--st-line);
  font-size: 11px;
  color: #aaa8b4;
}
.st-sidebar-footer a { color: #666477; font-weight: 750; text-decoration: none; }

.st-app-shell .st-main {
  width: auto;
  max-width: none;
  min-height: calc(100vh - var(--st-topbar));
  margin: 0 0 0 var(--st-sidebar);
  padding: 28px clamp(18px, 3vw, 42px) 54px;
}

.st-app-shell .st-footer { margin-left: var(--st-sidebar); }
.st-main > .card,
.st-main > form > .card {
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
}

.st-global-notice {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  border: 1px solid #d7cdfd;
  border-radius: 14px;
  background: #f4f0ff;
}
.st-global-notice strong,
.st-global-notice span { display: block; }
.st-global-notice span { color: #666079; font-size: 12px; margin-top: 2px; }
.st-global-notice a { white-space: nowrap; color: #4b34cd; font-weight: 850; font-size: 12px; }

/* Consistente basis voor de bestaande beheerpagina's. */
.st-app-shell h1,
.st-app-shell h2,
.st-app-shell h3 { color: var(--st-ink); letter-spacing: -.025em; }
.st-app-shell .card { border-color: var(--st-line); }
.st-app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.st-app-shell select,
.st-app-shell textarea {
  min-height: 44px;
  border-radius: 11px;
  border-color: #d9d7e3;
  background: #fff;
}
.st-app-shell input:focus,
.st-app-shell select:focus,
.st-app-shell textarea:focus {
  border-color: var(--st-purple);
  box-shadow: 0 0 0 3px rgba(101, 71, 245, .12);
}
.st-app-shell .btn,
.st-app-shell button:not(.st-menu-toggle) {
  border-radius: 11px;
}
.st-app-shell .btn-primary,
.st-app-shell button[type="submit"] {
  background: var(--st-purple);
  border-color: var(--st-purple);
  color: #fff;
}
.st-app-shell table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: #fff;
}
.st-app-shell th { background: #f5f4f9; color: #747184; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.st-app-shell th,
.st-app-shell td { border-bottom: 1px solid #ecebf2; padding: 12px 13px; }

.st-sidebar-backdrop { display: none; }

.st-footer {
  padding: 26px max(24px, calc((100vw - 1120px) / 2));
  color: #767486;
  background: #fff;
  border-top: 1px solid var(--st-line);
}
.st-footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 60px; padding: 40px 0; }
.st-footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.st-footer-grid p { color: #767486; }
.st-footer-grid strong { color: var(--st-ink); margin-bottom: 3px; }
.st-footer-grid a:not(.st-brand) { color: #6b687b; text-decoration: none; }
.st-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; border-top: 1px solid var(--st-line); font-size: 11px; }

@media (max-width: 980px) {
  .st-public-nav { display: none; }
  .st-public-nav.is-open {
    display: flex;
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--st-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--st-shadow);
  }
  .st-public-nav a { padding: 12px 13px; }
  .st-public-nav .st-nav-cta { margin: 5px 0 0; }
  .st-menu-toggle { display: block; margin-left: auto; }
  .st-topbar-context { display: none; }
  .st-user-link { display: none; }

  .st-sidebar {
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 22px 0 60px rgba(23, 18, 58, .18);
  }
  .st-sidebar.is-open { transform: translateX(0); }
  .st-sidebar-backdrop {
    position: fixed;
    inset: var(--st-topbar) 0 0;
    z-index: 850;
    background: rgba(16, 13, 37, .42);
  }
  .st-sidebar-backdrop.is-open { display: block; }
  .st-app-shell .st-main { margin-left: 0; padding: 22px 16px 45px; }
  .st-app-shell .st-footer { margin-left: 0; }
}

@media (max-width: 620px) {
  :root { --st-topbar: 62px; }
  .st-topbar { padding: 0 14px; gap: 12px; }
  .st-brand { font-size: 16px; }
  .st-brand-mark { width: 33px; height: 33px; }
  .st-quick-create { min-height: 38px; padding: 0 12px; font-size: 12px; }
  .st-icon-link { display: none; }
  .st-global-notice { align-items: flex-start; flex-direction: column; }
  .st-footer { padding: 24px 17px; }
  .st-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .st-footer-grid > div:first-child { grid-column: 1 / -1; }
  .st-footer-bottom { flex-direction: column; }
  .st-app-shell table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .st-sidebar { transition: none; }
}
