/* ═══════════════════════════════════════════════
   SIDEBAR — Minimal, collapsed by default feel
═══════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform .2s ease, width .2s ease;
}

.sb-logo {
  height: var(--topbar-h);
  padding: 0 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--sidebar-border);
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--info);
  border-radius: 7px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 14px; height: 14px; }
.logo-text {
  font-size: 13px; font-weight: 600;
  color: var(--sidebar-text-active);
  white-space: nowrap;
  overflow: hidden;
}
.logo-sub {
  font-size: 10px; color: var(--sidebar-text);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 1px;
}

/* Nav */
.sb-nav { flex: 1; padding: 12px 8px; overflow-y: auto; }
.sb-section { margin-bottom: 20px; }
.sb-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: #4a4e5a; padding: 0 8px; margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 7px;
  font-size: 13px; font-weight: 400;
  color: var(--sidebar-text);
  cursor: pointer; transition: all .12s;
  position: relative; margin-bottom: 1px;
}
.nav-item:hover { background: var(--sidebar-hover); color: var(--sidebar-text-active); }
.nav-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text-active);
  font-weight: 500;
}
.nav-item.active::before {
  content: ''; position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px; background: var(--sidebar-accent);
  border-radius: 0 2px 2px 0;
}
.nav-icon { width: 15px; height: 15px; flex-shrink: 0; opacity: .6; }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { opacity: 1; }
.nav-badge {
  margin-left: auto; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 5px;
  font-family: 'JetBrains Mono', monospace;
}
.badge-critical { background: rgba(229,72,77,.2); color: #fca5a5; }
.badge-warning { background: rgba(229,160,0,.2); color: #fde68a; }

/* Sidebar footer */
.sb-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--sidebar-border);
  display: flex; align-items: center; gap: 8px;
}
.sb-kbd {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--sidebar-text);
}
.sb-kbd kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px; padding: 1px 5px;
  color: var(--sidebar-text-active);
}
