#sidebar::-webkit-scrollbar {
    width: 4px;
}

#sidebar {
    width: var(--sidebar-width);
    background: var(--color-pink-60);
    color: var(--color-red);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.1s linear, width 0.3s;
    border-right: 1px solid rgb(220 160 159 / 5%);
}

#sidebar.open {
    width: var(--sidebar-width);
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    visibility: visible;
    opacity: 1;
    z-index: 2;
}

#sidebar .sidebar-extension {
    white-space: nowrap;
}

#sidebar.open .sidebar-extension {
    visibility: visible;
    opacity: 1;
    width: 100%;
}

#sidebar.open + #sidebar-close-invisible {
    display: block;
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
}

#sidebar .section.user {
    display: flex;
    align-items: center;
    padding: 20px 14px;
}

#sidebar .section.user .user-options {
    width: 100%;
}

#sidebar .section.user .name {
    cursor: pointer;
}

#sidebar .section.user .name:hover {
    color: var(--color-pink-16);
}

#sidebar .section.user .logout {
    margin-left: auto;
}

#sidebar .section.user .logout i {
    margin-left: auto;
    line-height: 33px;
    vertical-align: middle;
}

#sidebar .section.bottom {
    margin-top: auto;
    margin-bottom: 10px;
}

#sidebar .section .link {
    display: flex;
    padding: 14px 20px;
    align-items: center;
    column-gap: 8px;
}

#sidebar .section .link.active {
    background: var(--color-title);
}


#sidebar .section .link:hover {
    background: #ffeae2;
}

#sidebar .section .link.unavailable {
    color:grey;
}

#sidebar-close-invisible {
    display: none;
}



@media screen and (max-width: 1200px) {

    #sidebar {
        width: 68px;
    }

    #sidebar .sidebar-extension {
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s;
        width: 0;
        overflow: hidden;
        transition: opacity 0s;
    }

}


@media screen and (max-width: 768px) {

    #sidebar {
        visibility: hidden;
        opacity: 0;
        width: 0;
        position: fixed;
    }

}
