#sidebar-indicator-icon {
    z-index: 500;
}

#sidebar-hover-trigger {
    z-index: 501;
    height: 24px;
    width: 1.5rem;
}

#show-sidebar-button {
    display: none;
}

@media (max-width: 768px) {
    #sidebar-indicator-icon,
    #sidebar-hover-trigger {
        display: none;
    }

    #show-sidebar-button {
        display: inline-block;
    }
}

#sidebar {
    z-index: 502;
    height: 100dvh;
    width: 20em;
    overflow: auto;
    color-scheme: light dark;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

#sidebar.show {
    transform: translateX(0);
}

#sidebar > a:first-child {
    padding: .45rem;
}

#sidebar-lists,
#sidebar-lists ul {
    list-style: none;
    padding-left: 0;
}

#sidebar-lists button {
    background-color: transparent;
    border: 0;
    width: 100%;
    color: white;
    text-align: left;
    text-transform: uppercase;
    font-weight: 600;
    padding: .25rem .8rem;
}
#sidebar-lists button::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}
#sidebar-lists button.collapsed::before {
    transform: rotate(-90deg);
}

#sidebar-lists a {
    display: block;
    width: 100%;
    color: white;
    text-decoration: none;
    padding: .25rem 2rem;
}

#sidebar-lists button:hover,
#sidebar-lists button:focus,
#sidebar-lists a:hover,
#sidebar-lists a:focus {
    filter: brightness(1.4);
}

body.lock-scroll {
    overflow: hidden;
}