/* Sidebar - ACL Cloud v11.5 */

/* Right border that starts below the topbar (64px) */
[class*="Sidebar"]::after {
  content: '';
  position: absolute;
  top: 64px;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
  pointer-events: none;
}

@media (max-width: 768px) {
  [class*="Sidebar"]::after {
    display: none;
  }
}

/* Base sidebar (legacy class support) */
.sidebar {
  position: fixed;
  top: 52px;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-4);
  overflow-y: auto;
  z-index: var(--z-fixed);
  transition: transform var(--transition-slow),
              width var(--transition-slow);
}

.sidebar-collapsed {
  width: 80px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.sidebar-link.active {
  color: var(--accent);
  background: var(--accent-light);
}

/* Nav section title (used in DashboardLayout NavTitle) */
.nav-title-small {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

/* a11y contrast fix (Lighthouse): sidebar section headings white@0.42 -> 0.6 on navy */
aside nav div[role="heading"][aria-level] { color: rgba(255,255,255,0.6) !important; }
