:root {
    --header-height: 3rem;
    --nav-width: 68px;
    --first-color: #F4EFED;
    --first-color-light: #000000;
    --white-color: #848484;
    --body-font: 'Open Sans', sans-serif;
    --normal-font-size: 1rem;
    --z-fixed: 100
}

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

body {
    position: relative;
    margin: var(--header-height) 0 0 0;
    padding: 0 1rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: .5s
}

.l-navbar a {
    text-decoration: none
}

#header {
    width: 100%;
    height: calc(var(--header-height) + 1rem);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    /* background-color: var(--white-color); */
    z-index: var(--z-fixed);
    transition: .5s
}

.l-navbar .header_toggle {
    color: var(--first-color-light);
    cursor: pointer;
    padding: 1.5rem;
    position: fixed;
    bottom: 0;
}

#header .header_toggle {
    color: var(--first-color-light);
    font-size: 1.5rem;
    cursor: pointer;
    margin: 0 1rem;
}

.l-navbar .header_toggle .bi.bi-chevron-double-right {
    font-size: 1.25rem;
}

#header .header_img {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden
}

#header .header_img img {
    width: 40px
}

.l-navbar {
    position: fixed;
    top: 0;
    left: -30%;
    width: var(--nav-width);
    height: 100vh;
    background-color: var(--first-color);
    padding: .5rem 1rem 0 0;
    transition: .5s;
    z-index: var(--z-fixed)
}

.l-navbar .nav {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    overflow-x: hidden;
    flex-wrap: nowrap;
}

.l-navbar .nav_logo,
.l-navbar .nav_link {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 1rem;
    padding: .5rem 0 .5rem 1.5rem
}

.l-navbar .nav_logo {
    margin-bottom: 2rem
}

.l-navbar .nav_logo-icon {
    font-size: 1.25rem;
    color: var(--first-color-light)
}

.l-navbar .nav_logo-name {
    color: var(--first-color-light);
    font-weight: 700
}

.l-navbar .nav_link {
    position: relative;
    color: var(--first-color-light);
    margin-bottom: 1.5rem;
    transition: .3s
}

.l-navbar .nav_link:hover {
    color: var(--bs-primary);
}

.l-navbar .nav_icon {
    font-size: 1.25rem
}

.l-navbar.show {
    left: 0;
    width: 100vw;
}

.l-navbar.show .header_toggle.activated {
    width: 100vw;
}

.body-pd {
    padding-left: calc(var(--nav-width) + 1rem) !important;
}

.l-navbar .active {
    color: var(--bs-primary);
}

.l-navbar .active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 2px;
    height: 32px;
    background-color: var(--bs-primary);
}

/* Dropdown Styles */
.nav_dropdown {
    position: relative;
}

.nav_dropdown_toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-right: 0.5rem;
    user-select: none;
    cursor: pointer;
}

.nav_dropdown_toggle:hover {
    color: var(--bs-primary);
}

.nav_arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.nav_dropdown_toggle.show .nav_arrow {
    transform: rotate(180deg);
}

.nav_submenu {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.05);
    border-left: 2px solid var(--bs-primary);
    margin-top: 0.5rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.nav_submenu.show {
    display: flex;
    max-height: 500px;
}

.nav_sublink {
    padding: 0.5rem 0 0.5rem 2rem;
    color: var(--first-color-light);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav_sublink:hover {
    color: var(--bs-primary);
    padding-left: 2.25rem;
}

.height-100 {
    height: 100vh
}

@media screen and (min-width: 768px) {
    body {
        margin: calc(var(--header-height) + 1rem) 0 0 0;
        padding-left: calc(var(--nav-width) + 2rem)
    }

    #header {
        height: calc(var(--header-height) + 1rem);
        padding: 0 2rem 0 calc(var(--nav-width) + 2rem)
    }

    #header .header_img {
        width: 40px;
        height: 40px
    }

    #header .header_img img {
        width: 45px
    }

    .l-navbar {
        left: 0;
        padding: 1rem .5rem 0 0 !important;
    }

    .l-navbar.show {
        width: calc(var(--nav-width) + 256px);
        margin: auto;
    }

    .l-navbar.show .header_toggle.activated {
        width: calc(var(--nav-width) + 256px);
    }

    .body-pd {
        padding-left: calc(var(--nav-width) + 288px) !important;
    }

    .header_toggle.in_header {
        display: none;
    }
}

@media screen and (min-width: 0) and (max-width: 767px) {
    :root {
        --nav-width: 0px;
    }

    .l-navbar.show {
        margin-top: calc(var(--header-height) + 1rem);
    }

    #header {
        padding: 1.5rem 0 !important;
    }

    .l-navbar .header_toggle.activated {
        display: block;
    }

    .l-navbar .header_toggle {
        display: none;
    }

    .l-navbar .nav {
        max-height: 80vh;
    }
}

.l-navbar .header_toggle {
    max-height: 10vh;
    background-color: var(--first-color);
    transition: .5s;
}