@import url('https://fonts.googleapis.com/css2?family=Titillium+Web&display=swap');

*,
::after,
::before {
    box-sizing: border-box;
}

body {
    font-family: 'Titillium Web', sans-serif;
    font-size: 0.85rem;
    opacity: 1;
    overflow-y: scroll;
    margin: 0;
}

a {
    cursor: pointer;
    text-decoration: none;
    font-family: 'Titillium Web', sans-serif;
}

li {
    list-style: none;
}

h4 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.25rem;
    color: var(--bs-emphasis-color);
}

.wrapper {
    align-items: stretch;
    display: flex;
    width: 100%;
}

#sidebar {
    max-width: 264px;
    min-width: 264px;
    background: var(--bs-dark);
    transition: all 0.35s ease-in-out;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; 
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    width: 100%;
    background: var(--bs-dark-bg-subtle);
}

.sidebar-logo {
    padding: 1.15rem;
}

.sidebar-logo a {
    color: #e9ecef;
    font-size: 1.15rem;
    font-weight: 600;
}

.sidebar-nav {
    flex-grow: 1;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
    margin-left: 0;
}

.sidebar-header {
    color: #e9ecef;
    font-size: .75rem;
    padding: 1.5rem 1.5rem .375rem;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #e9ecef;
    position: relative;
    display: block;
    font-size: 0.85rem;

    border-radius: .5rem;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a.sidebar-link:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
    text-decoration: none;
}

a.sidebar-link:focus-visible {
    outline: 2px solid rgba(var(--bs-primary-rgb), .6);
    outline-offset: 2px;
    text-decoration: none;
}

a.sidebar-link.active {
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), .22), rgba(var(--bs-primary-rgb), .10));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), .35);
}

a.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: .45rem;
    bottom: .45rem;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgb(var(--bs-primary-rgb)), rgba(var(--bs-success-rgb), .9));
}

a.sidebar-link .bi {
    transition: transform .2s ease, opacity .2s ease;
    opacity: .95;
}
a.sidebar-link:hover .bi { transform: translateX(2px); }

.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;
    opacity: .85;
}

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

.avatar {
    height: 40px;
    width: 40px;
}

.navbar-expand .navbar-nav {
    margin-left: auto;
}

.content {
    flex: 1;
    max-width: 100vw;
    width: 100vw;
}

@media (min-width:768px) {
    .content {
        max-width: auto;
        width: auto;
    }
}

.card {
    box-shadow: 0 0 .875rem 0 rgba(34, 46, 60, .05);
    margin-bottom: 24px;
}

.illustration {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-emphasis-color);
}

.illustration-img {
    max-width: 250px;
    width: 100%;
    border-radius: 10px;
}

/* Sidebar Toggle */
#sidebar.collapsed {
    margin-left: -264px;
}

/* Footer and Nav */
@media (max-width:767.98px) {

    .js-sidebar {
        margin-left: -264px;
    }

    #sidebar.collapsed {
        margin-left: 0;
    }

    .navbar,
    footer {
        width: 100vw;
    }
}

.zoom-hover {
    transition: transform 0.3s ease;
}
.zoom-hover:hover {
    transform: scale(2.9);
    z-index: 999;
    position: relative;
    cursor: zoom-in;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

#sidebar::-webkit-scrollbar { width: 10px; }
#sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 10px;
}
#sidebar:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); }