/* css/sidebar.css — grouped navigation sidebar */

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w); z-index: 200;
  background: var(--sb-bg);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--dark-border);
}

.app-version {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #9ca3af;
}

/* ── Logo ───────────────────────────────────────── */

.sidebar-logo {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  overflow: hidden;
  border-bottom: 1px solid var(--dark-border);
  flex-shrink: 0;
}

.sidebar-logo-img {
  width: 75px;
  height: 58px;
  margin-left: -12px;
  margin-right: -12px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.15));
}

.sidebar-brand {
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* ── Scrollable nav ── */
.sidebar-nav {
  flex: 1; overflow-y: auto;
  padding: 12px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: #21262d transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #21262d; border-radius: 99px; }

/* ── Group ── */
.nav-group { margin-bottom: 4px; }

.nav-group-label {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 18px 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--sb-label);
  user-select: none;
}
.nav-group-label span { font-size: 13px; }

/* ── Nav item ── */
.nav-item {
  display: block; width: 100%;
  padding: 7px 18px 7px 36px;
  font-size: 13px; color: var(--sb-text);
  background: transparent; border: none; text-align: left;
  transition: background 0.1s, color 0.1s;
  border-radius: 0;
  position: relative;
}
.nav-item::before {
  content: ''; position: absolute;
  left: 22px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: #30363d;
  transition: background 0.1s;
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--sb-text-h); }
.nav-item:hover::before { background: #6b7280; }

.nav-item.active { color: var(--sb-active); background: var(--sb-active-bg); }
.nav-item.active::before { background: var(--sb-active); }
