/* ── Nav Groups (Voice Switchboard / Email / Security Center) ───────── */
/* Additive only — reuses existing .nav-item / .nav-label / .nav-badge
   styling from main.css so hover/active states stay consistent.
   Do not duplicate color/spacing rules that already live in main.css;
   only the group wrapper + chevron + indent are new here. */

.nav-group {
  display: flex;
  flex-direction: column;
}

.nav-group-header {
  width: 100%;
  justify-content: flex-start;
  cursor: pointer;
}

.nav-group-header .nav-label {
  flex: 1 1 auto;
  text-align: left;
}

.nav-group-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}

/* Expanded by default: body visible, chevron pointing down (no rotation) */
.nav-group-body {
  display: flex;
  flex-direction: column;
}

/* Collapsed state only applies once JS adds this class on click */
.nav-group.collapsed .nav-group-body {
  display: none;
}

.nav-group.collapsed .nav-group-chevron {
  transform: rotate(-90deg);
}

/* Sub-items: same .nav-item look, just indented under the group header */
.nav-item.nav-subitem {
  padding-left: 2.25rem;
}

/* Small "Soon" badge for roadmap items that aren't built yet */
.nav-badge-soon {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  margin-left: auto;
}

/* Bottom-pinned group (Infrastructure-as-a-Service, Settings) */
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding-top: 8px;
}

/* Placeholder content for roadmap views not built yet */
/* IMPORTANT: do not set display here unconditionally — that overrides
   main.css's .view{display:none}/.view.active{display:block} toggle
   at equal specificity, since this stylesheet loads after main.css.
   Only apply flex layout when the view is actually the active one. */
.roadmap-placeholder.active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.roadmap-placeholder .roadmap-notice {
  text-align: center;
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 360px;
}

.roadmap-placeholder .roadmap-notice strong {
  display: block;
  font-size: 1.1rem;
  color: inherit;
  margin-bottom: 6px;
}
