.sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 300px;
    max-width: 80vw;
    height: 100vh;
    background-color: var(--color-primary);
    padding: var(--space-xl);
    transition: var(--transition-base);
    z-index: var(--z-sidebar);
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar__logo {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    color: var(--color-white);
    font-weight: 700;
}

.sidebar__close {
    font-size: var(--fs-2xl);
    color: var(--color-white);
    cursor: pointer;
    padding: var(--space-sm);
    line-height: 1;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.sidebar__link {
    display: block;
    padding: var(--space-md) var(--space-lg);
    color: var(--color-white);
    font-size: var(--fs-lg);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.sidebar__link:hover,
.sidebar__link--active {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: calc(var(--space-lg) + var(--space-sm));
}

.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: calc(var(--z-sidebar) - 1);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}