.alla-sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: var(--alla-surface-elevated);
    border-right: 1px solid var(--alla-border);
    padding: 1rem 0.75rem;
}

.alla-sidebar-brand {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem 1rem;
    border-bottom: 1px solid var(--alla-border);
    margin-bottom: 0.75rem;
}

.alla-sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0.25rem 0;
}

.alla-sidebar-logo img {
    display: block;
    max-width: 100%;
    max-height: 4.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.alla-sidebar-brand strong {
    display: block;
    font-size: 1.1rem;
}

.alla-sidebar-brand span {
    font-size: 0.75rem;
    color: var(--alla-text-muted);
}

.alla-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.alla-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.45rem;
    text-decoration: none;
    font-size: 0.875rem;
    color: var(--alla-text-muted);
}

.alla-sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.alla-sidebar-icon-svg {
    display: block;
}

.alla-sidebar-label {
    min-width: 0;
}

.alla-sidebar-link:hover,
.alla-sidebar-link.is-active {
    background: color-mix(in srgb, var(--alla-primary) 12%, transparent);
    color: var(--alla-primary);
    font-weight: 600;
}

.alla-sidebar-footer {
    flex-shrink: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--alla-border);
    font-size: 0.8rem;
    color: var(--alla-text-muted);
}

.alla-sidebar-footer .alla-sidebar-link {
    color: var(--alla-danger);
    font-weight: 600;
}

.alla-sidebar-footer .alla-sidebar-link:hover {
    background: color-mix(in srgb, var(--alla-danger) 14%, transparent);
    color: var(--alla-danger);
}
