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

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

body {
    /*font-family: 'Poppins', sans-serif;*/
    font-size: 0.875rem;
    opacity: 1;
    overflow-y: scroll;
    margin: 0;
}

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

li {
    list-style: none;
}

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

/* Layout for admin dashboard skeleton */

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

#sidebar {
    max-width: 245px;
    min-width: 245px;
    background: var(--bs-dark);
    transition: all 0.35s ease-in-out;
}

#nav-container{
    max-height: 65px!important;
    height: 65px!important;
    background: #fff!important;
    /*position: fixed!important;*/
    /*width: calc(100% - 245px)!important;*/
    margin-bottom: -65px;
    width: 100%;
    min-width: calc(100% - 245px)!important;
    max-width: 100%!important;
    z-index: 1!important;
}

.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 Elements Style */

.sidebar-logo {
    padding: 1.15rem;
    background: #fff;
    border-right: 1px solid #ddd;
    height: 65px!important;
    position: fixed;
    width: 245px;
    margin-bottom: 50px!important;
}

.sidebar-logo a {
    color: var(--color-link);
    font-size: 1.0rem;
    font-weight: 900;
    font-family: 'Urbanist', sans-serif;
    padding-left: 10px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex-grow: 1;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
    margin-left: 0;
    border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    height: calc(100vh - 65px)!important;
    top: 65px;
    position: fixed;
    width: 245px;

}

.sidebar-nav .sidebar-item {
    /*margin: auto;*/
    width: 200px;
}
.sidebar-nav a{
    display: flex!important;
    flex-direction: row!important;
    gap: 10px!important;
    align-items: center;
    font-weight: 400;
    font-size: 14px!important;
    justify-content: flex-start!important;
}
.sidebar-nav a:hover{
    cursor: pointer;
    background-color: #fff;
    font-weight: bolder;
    border-left: 3px solid var(--color-primary);
    padding: .425rem 0.425rem;
}
.sidebar-nav a:hover i{
    color: var(--color-primary);
}
.sidebar-active{
    background-color: #fff;
    font-weight: bolder!important;
    border-left: 3px solid var(--color-primary);
    padding: .425rem 0.425rem!important;
}
.sidebar-active i{
    color: var(--color-primary);
}

.sidebar-header {
    padding: 0.45rem 1.5rem .375rem;
    font-weight: 900;
    font-size: 14px;
    color: rgba(154, 154, 175, 1);
}

.sidebar-nav .sidebar-item {
    width: 100% !important;
}
a.sidebar-link {
    padding: .425rem 0;
    color: var(--color-link);
    position: relative;
    display: block;
    font-size: 0.875rem;
    width: 80%;
    margin: auto;
}

.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;
}

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

.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: 150px;
    width: 100%;
}

/* Sidebar Toggle */

#sidebar.collapsed {
    margin-left: -245px;
}

/* Footer and Nav */

@media (max-width:767.98px) {

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

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

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

/* Theme Toggler */

.theme-toggle {
    position: fixed;
    top: 50%;
    transform: translateY(-65%);
    text-align: center;
    z-index: 10;
    right: 0;
    left: auto;
    border: none;
    background-color: var(--bs-body-color);
}

html[data-bs-theme="dark"] .theme-toggle .fa-sun,
html[data-bs-theme="light"] .theme-toggle .fa-moon {
    cursor: pointer;
    padding: 10px;
    display: block;
    font-size: 1.25rem;
    color: #FFF;
}

html[data-bs-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

html[data-bs-theme="light"] .theme-toggle .fa-sun {
    display: none;
}
