.nav-container {
    left: 0;
    top: 0;
    bottom: 0;
    position: fixed;
    z-index: 10;
    pointer-events: none;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.nav-pill {
    background-color: #1e1a21;
    border-radius: 20px;
    border-style: solid;
    border-width: 1px;
    border-color: #332c38;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 44px;
    overflow: hidden;
    box-shadow: 2px 10px 60px rgba(0, 0, 0, 0.347);
    transition: max-width 0.35s ease;
}

#nav-toggle:checked ~ .nav-pill {
    max-width: 190px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0;
    color: #7b6c89;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
    padding: 8px 6px;
    border-radius: 14px;
    transition: color 0.12s, gap 0.35s ease;
}

#nav-toggle:checked ~ .nav-pill .nav-item {
    gap: 10px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #e8caff;
}

.nav-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.35s ease, opacity 0.25s ease;
}

#nav-toggle:checked ~ .nav-pill .nav-label {
    max-width: 120px;
    opacity: 1;
}

.nav-sel {
    color: #d0b8e8;
    background-color: #7b6c8967;
}

.nav-item:hover {
    color: #e8caff;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 36px;
    cursor: pointer;
    color: #e8caff;
    transition: color 0.12s;
}

.nav-arrow:hover {
    color: #ffffff;
}

.nav-arrow-icon {
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

#nav-toggle:checked ~ .nav-arrow .nav-arrow-icon {
    transform: rotate(225deg);
}

@media (max-width: 600px) {
    .nav-container {
        z-index: 10;
        top: unset;
        bottom: 0;
        left: 0;
        right: 0;
        align-items: unset;
    }

    .nav {
        flex-direction: row;
    }

    .nav-pill {
        flex-direction: row;
        max-width: 100%;
    }

    .nav-arrow {
        display: none;
    }
}