.menu-container {
    grid-area: menu;
    width: 14.375rem;
    transition: width ease-in-out 0.3s;
    position: relative;
    overflow: auto;
    border-right: 0.0625rem solid var(--bg-light);
    .scrollbar {
        overflow-y: auto;
        overflow-x: hidden;
        height: 100%;
        padding: 0 1rem;
        display: flex;
        gap: 1rem;
        flex-direction: column;
        justify-content: space-between;
        -ms-overflow-style: none;
        scrollbar-width: none;
        &::-webkit-scrollbar {
            display: none;
        }
    }
    .bot-selection {
        position: relative;
        width: 100%;
        overflow: hidden;
        margin-top: 0.625rem;
        &:hover {
            .options {
                height: 5.625rem;
            }
            .selected {
                span {
                    transform: rotate(0deg);
                }
            }
        }
        .selected {
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.625rem 0.625rem;
            border-radius: 0.5rem;
            border: 0.125rem solid var(--bg-light);
            span {
                transform: rotate(180deg);
                font-size: 1rem;
                color: var(--text-muted);
            }
            p {
                overflow: hidden;
                white-space: nowrap;
            }
        }
        .left {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        img {
            width: 1.1875rem;
            border-radius: 50%;
        }
        .options {
            width: 100%;
            height: 0rem;
            display: flex;
            flex-direction: column;
            background-color: var(--bg-light);
            border-radius: 0.5rem;
            overflow: hidden;
            transition: all ease-in-out 0.2s;
            overflow-y: auto;
            .option {
                display: flex;
                padding: 0.625rem 0.75rem;
                align-items: center;
                gap: 0.75rem;
                cursor: pointer;
                &:hover {
                    background-color: var(--bg-dark);
                }
                p {
                    text-overflow: ellipsis;
                    overflow: hidden;
                    white-space: nowrap;
                }
            }
        }
    }
    .top {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .bar {
        background-color: var(--bg-light);
        padding: 0.0625rem;
        border-radius: 0.625rem;
    }
    .section {
        display: flex;
        flex-direction: column;
        overflow: hidden;

        .menu-btn {
            display: flex;
            align-items: center;
            padding: 0.625rem 0.75rem;
            gap: 0.75rem;
            transition: all ease-in-out 0.2s;
            border-radius: 0.5rem;
            cursor: pointer;
            p {
                text-wrap: nowrap;
                font-size: 1rem;
                color: var(--text-muted);
            }
            span {
                font-size: 1.25rem;
                color: var(--text-muted);
            }
            &:hover {
                background-color: color-mix(in srgb, var(--bg-light) 80%, white);
            }
        }
        .menu-btn.center {
            background-color: var(--bg-light);
            justify-content: center;
            border-radius: 1.25rem;
            gap: 0.3125rem;
            margin-bottom: 0.625rem;
            p {
                padding-right: 0.3125rem;
            }
            &:hover {
                background-color: color-mix(in srgb, var(--bg-light) 80%, white);
            }
        }
        .menu-btn.red {
            p {
                color: #cc8889;
            }
            span {
                color: #cc8889;
            }
        }
        .menu-btn.active {
            background-color: var(--bg-light);
            color: var(--text);
            p {
                font-variation-settings:
                    "FILL" 1,
                    "wght" 400,
                    "GRAD" 0,
                    "opsz" 24;
                color: var(--text);
            }
            span {
                font-variation-settings:
                    "FILL" 1,
                    "wght" 400,
                    "GRAD" 0,
                    "opsz" 24;
                color: var(--text);
            }
        }
    }
}
.menu-container.hide {
    width: 4.75rem;
    .bot-selection {
        span {
            display: none;
        }
    }
    .section {
        .header {
            span {
                display: none;
            }
        }
    }
    p {
        display: none;
    }
    .no-icon {
        display: none;
    }
}
@media (max-width: 768px) {
    .menu-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 80vw;
        max-width: 320px;
        height: 100vh;
        z-index: 1002;
        background: var(--bg);
        box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: none;
        &.active {
            transform: translateX(0);
        }
    }
    #menu-overlay.mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1001;
    }
    .menu-container.active + #menu-overlay.mobile-overlay {
        display: block;
    }
}
