/* Menu lateral: 15.25rem (244px) de ancho, padding 0.5rem (8px) en x y 2rem (32px) en y */
.sidebar {
    width: 244px;
    flex: 0 0 244px;
    padding: 32px 8px;
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-right: 1px solid #E0E0E0;
    box-sizing: border-box;
}

.sidebar-logo {
    width: 140px;
    height: 60px;
    object-fit: contain;
    align-self: center;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 0 8px;
}

.sidebar-user-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-label);
}

.sidebar-nav {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.nav-group {
    display: flex;
    flex-direction: column;
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 8px;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-label);
    cursor: pointer;
}

.nav-chevron {
    transition: transform 0.15s ease;
}

.nav-toggle.is-open .nav-chevron {
    transform: rotate(180deg);
}

.nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 8px;
}

.nav-submenu.is-collapsed {
    display: none;
}

.nav-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-label);
    cursor: pointer;
}

.nav-item:hover {
    background-color: var(--color-input-bg);
}

.nav-item.is-active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-label);
    cursor: pointer;
    margin-top: auto;
}

.sidebar-logout img {
    width: 20px;
    height: 20px;
}
