/* modules/menu/menu.css - app dock topbar */
.vdb-appbar,
.vdb-appbar * { box-sizing: border-box; }

.vdb-appbar {
  width: calc(100% - 32px);
  min-height: 104px;
  margin: 14px 16px 22px;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 245px minmax(390px, 1fr) 205px;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 30% -20%, rgba(50, 116, 255, .46), transparent 34%),
    radial-gradient(circle at 72% 120%, rgba(30, 90, 210, .30), transparent 40%),
    linear-gradient(135deg, #06113a 0%, #071b58 42%, #0d2f8b 100%);
  border: 1px solid rgba(91, 145, 255, .52);
  border-radius: 26px;
  box-shadow:
    0 18px 42px rgba(6, 18, 52, .36),
    0 0 0 1px rgba(42, 105, 255, .18),
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(30, 91, 220, .30);
  overflow: visible;
}

.vdb-appbar a { color: inherit; text-decoration: none; }

.vdb-appbar__environment {
  min-width: 0;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.vdb-appbar__logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffffff 0%, #dbeafe 100%);
  box-shadow: 0 12px 28px rgba(5, 18, 51, .28), inset 0 1px 0 rgba(255,255,255,.85);
}
.vdb-appbar__logo svg { width: 30px; height: 30px; }
.vdb-appbar__logo path { stroke: #2563eb; stroke-width: 1.8; fill: rgba(37,99,235,.16); stroke-linejoin: round; }

.vdb-appbar__env-text { min-width: 0; }
.vdb-appbar__env-name { font-size: 16px; line-height: 1.1; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vdb-appbar__platform { margin-top: 6px; color: rgba(255,255,255,.74); font-size: 13px; font-weight: 600; }
.vdb-chevron { font-size: 18px; opacity: .92; margin-left: 3px; }

.vdb-appbar__modules {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 0 4px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.vdb-module {
  --tile-from: rgba(255,255,255,.16);
  --tile-to: rgba(255,255,255,.055);
  --accent: #3b82f6;
  width: 84px;
  min-width: 76px;
  height: 82px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 58%),
    linear-gradient(145deg, var(--tile-from), var(--tile-to));
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.12),
    0 12px 28px rgba(0,0,0,.20);
  color: #fff;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.vdb-module:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.30);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 62%),
    linear-gradient(145deg, rgba(255,255,255,.20), rgba(255,255,255,.075));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    0 18px 36px rgba(0,0,0,.26),
    0 0 26px color-mix(in srgb, var(--accent) 42%, transparent);
}
.vdb-module__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 22%, rgba(255,255,255,.42), transparent 26%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 96%, white 10%), color-mix(in srgb, var(--accent) 64%, #06153d 36%));
  box-shadow:
    0 10px 26px color-mix(in srgb, var(--accent) 42%, transparent),
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -1px 0 rgba(0,0,0,.16);
}
.vdb-module__icon svg { width: 26px; height: 26px; display: block; }
.vdb-module__icon svg * { stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.vdb-module__label { font-size: 12px; line-height: 1; font-weight: 750; text-align: center; white-space: nowrap; text-shadow: 0 1px 7px rgba(0,0,0,.28); }

.vdb-module--dashboard { --accent: #3182ff; }
.vdb-module--agenda { --accent: #f97316; }
.vdb-module--list { --accent: #7c3aed; }
.vdb-module--membership { --accent: #14b8a6; }
.vdb-module--school { --accent: #10b981; }

.vdb-module.is-active {
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(220,234,255,.86));
  color: #0f2f75;
  border-color: rgba(255,255,255,.82);
  box-shadow:
    0 0 0 1px rgba(74, 144, 255, .28),
    0 18px 36px rgba(0,0,0,.30),
    0 0 34px color-mix(in srgb, var(--accent) 62%, transparent),
    inset 0 1px 0 rgba(255,255,255,.95);
}
.vdb-module.is-active::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -16px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 16px var(--accent);
}

/* Locked / niet-betaalde module */
.vdb-module.is-locked,
.vdb-module.locked {
  opacity: .52;
  filter: grayscale(.42);
  cursor: default;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.04));
}
.vdb-module.is-locked::before,
.vdb-module.locked::before {
  content: "\1F512";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: rgba(255,255,255,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.vdb-appbar__account {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.vdb-profile-menu { position: relative; }
.vdb-profile-card {
  width: 190px;
  height: 68px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  border-radius: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
  font: inherit;
  text-align: left;
}
.vdb-profile-card:hover { background: rgba(255,255,255,.08); }
.vdb-profile-card__avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 850;
  font-size: 18px;
  background: linear-gradient(145deg, #4f6df5, #1d4ed8);
  box-shadow: 0 12px 26px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.20);
}
.vdb-profile-card__text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vdb-profile-card__text strong { font-size: 15px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vdb-profile-card__text small { font-size: 12px; color: rgba(255,255,255,.74); white-space: nowrap; }
.vdb-profile-card__chev { margin-left: auto; opacity: .9; font-size: 18px; }

.vdb-btn,
.vdb-guest-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  text-decoration: none;
}
.vdb-guest-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.vdb-guest-pill--light { background: #fff; color: #0b225c !important; }

.vdb-menu-dropdown { position: relative; }
.vdb-submenu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(8, 19, 50, .97);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 46px rgba(5, 13, 36, .38);
  display: none;
  flex-direction: column;
  gap: 7px;
  z-index: 1000;
}
.vdb-menu-dropdown.is-open .vdb-submenu { display: flex; }
.vdb-submenu__item,
.vdb-lang-trigger {
  display: block;
  width: 100%;
  padding: 11px 12px;
  color: #fff;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  transition: background .16s ease, transform .16s ease;
}
.vdb-submenu__item:hover,
.vdb-lang-trigger:hover { background: rgba(255,255,255,.11); transform: translateY(-1px); }
.vdb-submenu__item--danger { background: rgba(239,68,68,.16); }
.vdb-submenu__item--danger:hover { background: rgba(239,68,68,.25); }
.vdb-submenu__group { margin: 0; padding: 0; }

.vdb-lang-form { margin: 0; width: 100%; }
.vdb-select,
.vdb-guest-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: inherit;
  width: 100%;
  font: inherit;
  cursor: pointer;
}
.vdb-select option { color: #111827; }
.vdb-dashboard-color-input { width: 42px; height: 38px; padding: 0; border: 0; background: transparent; }
.vdb-dashboard-toolbar-color { display: flex; align-items: center; gap: 7px; }

@media (max-width: 1120px) {
  .vdb-appbar { grid-template-columns: 220px minmax(360px, 1fr) 190px; gap: 12px; padding: 16px; }
  .vdb-appbar__modules { gap: 10px; }
  .vdb-module { width: 78px; height: 84px; }
  .vdb-module__icon { width: 42px; height: 42px; }
  .vdb-module__icon svg { width: 26px; height: 26px; }
  .vdb-module__label { font-size: 12px; }
  .vdb-profile-card { width: 180px; }
}

@media (max-width: 820px) {
  .vdb-appbar {
    grid-template-columns: 1fr;
    width: calc(100% - 20px);
    margin: 10px;
    border-radius: 24px;
  }
  .vdb-appbar__environment,
  .vdb-profile-card { width: 100%; }
  .vdb-appbar__modules { justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; }
  .vdb-appbar__account { justify-content: flex-start; }
}
