.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--color-sidebar);
    display: flex;
    flex-direction: column;
    z-index: var(--z-sidebar);
    transition: width var(--transition-base);
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    height: var(--header-height);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
}

.sidebar-logo-mark {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo-mark svg { color: #fff; }

.sidebar-logo-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-black);
    color: var(--color-text-inverse);
    letter-spacing: -0.02em;
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-4) var(--space-3);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-footer {
    padding: var(--space-4) var(--space-3);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-section-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: var(--space-4) var(--space-3) var(--space-2);
    white-space: nowrap;
}

.sidebar.collapsed .nav-section-label { opacity: 0; }

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-md);
    color: var(--color-text-sidebar);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast);
    position: relative;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: var(--color-sidebar-alt);
    color: var(--color-text-inverse);
}

.nav-item.active {
    background: var(--color-accent);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-accent);
}

.nav-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.nav-badge {
    margin-left: auto;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 10px;
    font-weight: var(--weight-semibold);
    padding: 1px 6px;
    border-radius: var(--radius-full);
}

.sidebar.collapsed .nav-badge,
.sidebar.collapsed .nav-item span { opacity: 0; pointer-events: none; }