:root {
    --seed-color: #ffe856;
    --header-height: 48px;
    --toggle-sidebar-width: 23px;
}

body.env-local header.bg-dark {
    background-color: darkgreen !important;
}

body.env-development header.bg-dark {
    background-color: purple !important;
}

/*
 * Sidebar
 */

.sidebar {
    position: fixed;
    top: 0;
    /* rtl:raw:
    right: 0;
    */
    bottom: 0;
    /* rtl:remove */
    left: 0;
    z-index: 100; /* Behind the navbar */
    padding: var(--header-height) 0 0 var(--toggle-sidebar-width);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }
}

.sidebar-sticky {
    height: calc(100vh - var(--header-height));
    overflow: hidden;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link.active {
    color: #2470dc;
}

.sidebar-heading {
    font-size: .75rem;
}

/*sidebar toggle*/
#toggle-sidebar-btn {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 101;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--toggle-sidebar-width);
    border: 0;
    cursor: pointer;
    font-size: 1.25rem;
    color: #333;
    padding: 0;
    background-color: rgba(var(--bs-light-rgb), 1);
}

#toggle-sidebar-btn::before {
    content: '\00AB';
}

/*closed*/
#content:has(#sidebar-menu.collapse:not(.show)) #toggle-sidebar-btn::before {
    content: '\00BB';
}

#content:has(#sidebar-menu.collapse:not(.show)) #toggle-sidebar-btn {
    border-right: 1px solid rgba(0, 0, 0, .1);
}

#toggle-sidebar-btn:hover, #toggle-sidebar-btn:focus {
    background-color: #e9ecef;
}

#sidebar-menu.collapsing {
    transition: none !important;
}

@media (min-width: 768px) {
    #content:has(#sidebar-menu.collapse:not(.show)) main {
        width: calc(100% - var(--toggle-sidebar-width));
    }
}

/*
 * Navbar
 */

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
}

.navbar .form-control {
    padding: .75rem 1rem;
}

.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}


/*
 * Base
 */

main {
    padding-top: calc(var(--header-height) + 1em);
}


.color-red {
    color: red;
}

.color-grey {
    color: grey;
}

.cursor-pointer {
    cursor: pointer;
}
