/*
    This file is part of BDUK (BOII Development UI Kit) and is licensed under the MIT License.
    See the LICENSE file in the root directory for full terms.

    © 2025 Case @ BOII Development

    Support honest development — retain this credit. Don’t be that guy...
*/

/* Container */
#sidebar_container {
    position: absolute;
    height: calc(100vh - 16vh);
    width: 100%;
    z-index: 13;
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* Sidebar */
.sidebar {
    position: absolute;
    height: fit-content;
    max-height: calc(90vh - 16vh);
    background: var(--background_panel);
    border: var(--border_dark);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow_hard);
    overflow-y: auto;
    scrollbar-width: none;
    min-width: 14vw;
    max-width: 18vw;
    pointer-events: auto;
}
.sidebar.right {
    right: 0;
    border-left: var(--border_dark);
    border-right: none;
    border-top-left-radius: var(--border_radius_outer);
    border-bottom-left-radius: var(--border_radius_outer);
}
.sidebar.left {
    left: 0;
    border-right: var(--border_dark);
    border-top-right-radius: var(--border_radius_outer);
    border-bottom-right-radius: var(--border_radius_outer);
}

/* Titles */
.sidebar_title {
    font-family: var(--header_font);
    font-size: 1.5vh;
    padding: 1.5vh;
    color: var(--text_primary);
    border-bottom: var(--border_light);
    background: var(--background_main);
    text-transform: uppercase;
}

/*  Body */
.sidebar_body {
    padding: 1.5vh;
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
}

/* Items */
.sidebar_item_wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}
.sidebar_item {
    display: flex;
    align-items: center;
    gap: 1vh;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0.7vh 1vh;
    border-radius: var(--border_radius_outer);
}
.sidebar_item:hover {
    background: var(--background_hover);
}

/* Icons */
.sidebar_icon {
    width: 2vh;
    height: 2vh;
    object-fit: contain;
    flex-shrink: 0;
    color: var(--icon_primary);
}

/* Text */
.sidebar_text {
    font-family: var(--text_font);
    font-size: 1rem;
    color: var(--text_secondary);
    padding: 0.5vh 0.3vh;
}

/* Buttons */
.sidebar_button_group {
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}

/* Submenu */
.sidebar_submenu {
    margin-left: 1.5vh;
    padding-left: 1vh;
    border-left: 1px solid var(--border_light);
    display: none;
    flex-direction: column;
    gap: 1vh;
    margin-top: 1vh;
}

/* Submenu Items */
.sidebar_subitem {
    display: flex;
    align-items: center;
    gap: 1vh;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0.6vh 1vh;
    border-radius: var(--border_radius_outer);
    background: var(--background_subpanel);
}
.sidebar_subitem:hover {
    background: var(--background_hover);
}
.sidebar_subitem .sidebar_text {
    font-size: 0.9rem;
    color: var(--text_secondary);
}