@import "core.css";
/* Sidebar styling */
/* Forked and extended from https://github.com/codzsword/sidebar-bootstrap/tree/main */
/* note: transitions are commented because of the poor tablet performance */

/* define sidebar wrapper */
#sidebar {
    width: 75px;
    min-width: 75px;
    z-index: 1000;
    background-color: var(--primary-blue);
    display: flex;
    flex-direction: column;
    /*transition: all .25s ease-in-out;*/
    /*-webkit-transition: all .25s ease-in-out;*/
}
/* larger if expanded */
#sidebar.expand {
    width: 235px;
    min-width: 235px;
}

/* show full sidebar and hide toggle button per default on larger screens */
@media (min-width: 992px) {
    #sidebar {
        width: 235px;
        min-width: 235px;
    }
    .toggle-btn {
        display: none;
    }
    .sidebar-header {
        margin-top: 1rem;
        margin-left: 2rem;
    }
}

.toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1.5rem;
    /*transition: all .25s ease-in-out;*/
    /*-webkit-transition: all .25s ease-in-out;*/
}
.toggle-btn i {
    font-size: 1.5rem;
    color: white;
}

.rotated {
    transform: rotate(90deg);
}

.sidebar-logo {
    margin: auto 0 auto -1rem;
}
.sidebar-logo img {
    width: 90%;
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1 1 auto;
}

.sidebar-link {
    position: relative;
}
a.sidebar-link {
    padding: 1rem .5rem 1rem 1.5rem; /* top right bottom left */
    color: white;
    display: block;
    font-size: 1.1rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}
/* hovering color indicator */
a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, .075);
    border-left: 3px solid var(--secondary-blue);
}
.sidebar-link .sidebar-icon {
    font-size: 1.2rem;
}

/* Initially hide the spans, logo and footer when sidebar is collapsed */
#sidebar:not(.expand) .sidebar-title,
#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) .sidebar-footer
{
    display: none;  /* Completely hides the element */
    opacity: 0;
    /*transition: all .1s ease-out;  !* Quick fade out *!*/
    /*-webkit-transition: all .1s ease-out;*/
    visibility: hidden;  /* Ensure the spans are not clickable when hidden */
}
/* When the sidebar is expanded, the spans, logo and footer should become visible */
#sidebar.expand .sidebar-title,
#sidebar.expand .sidebar-logo,
#sidebar.expand .sidebar-footer
{
    opacity: 1;
    /*transition: all .5s ease-in;  !* Slow fade in *!*/
    /*-webkit-transition: all .5s ease-in;*/
    visibility: visible;
}

.sidebar-item a {
    text-decoration: none;
}
li.sidebar-item {
    list-style: none;
}

.filter-badge {
    margin-left: -1.7rem;
    padding: .25rem .3rem;
    opacity: 0.6;
    font-size: .5rem;
    color: black;
    background-color: white;
    border-radius: 50rem;
    display: inline-block;
    line-height: .75;
    font-weight: 700;
}

/* dropdown stuff, not used */
/*#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 70px;*/
/*    background-color: #0e2238;
/*    padding: 0;*/
/*    min-width: 15rem;*/
/*    display: none;*/
/*}*/

/*#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {*/
/*    display: block;*/
/*    max-height: 15em;*/
/*    width: 100%;*/
/*    opacity: 1;*/
/*}*/

/*#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {*/
/*    border: solid;*/
/*    border-width: 0 .075rem .075rem 0;*/
/*    content: "";*/
/*    display: inline-block;*/
/*    padding: 2px;*/
/*    position: absolute;*/
/*    right: 1.5rem;*/
/*    top: 1.4rem;*/
/*    transform: rotate(-135deg);*/
/*    transition: all .2s ease-out;*/
/*    -webkit-transition: all .2s ease-out;*/
/*}*/

/*#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {*/
/*    transform: rotate(45deg);*/
/*    transition: all .2s ease-out;*/
/*    -webkit-transition: all .2s ease-out;*/
/*}*/