@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Chrome, Edge, Safari scrollbar */
::-webkit-scrollbar {
    width: 1.3em;
    height: 1.3em;
}

::-webkit-scrollbar-track{
    background: var(--sidebar-color);
    border-radius: 100vw;
    margin-block: .5em;
}

::-webkit-scrollbar-thumb{
    background: linear-gradient(var(--primary-color-light),var(--body-color));
    border-radius: 100vw;
    border: .25em solid var(--sidebar-color);
}

::-webkit-scrollbar-thumb:hover{
    background: var(--body-color);
}

body:not(.dark){
    --body-color: #fff;
    --sidebar-color: #b2b2b2;
    --primary-color-light: #cbcaca;
    --toggle-color: #101010;
    --text-color: #101010;
    background: var(--body-color);
}

body.dark{
    --body-color: #212121;
    --sidebar-color: #101010;
    --primary-color-light: #383838;
    --toggle-color: #fff;
    --text-color: #fff;
    background: var(--body-color);
}


.sidebar{
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 260px;
    background: var(--sidebar-color);
    z-index: 100;
    transition: all 0.2s ease;

}
.sidebar.close{
    width: 78px;
}
.sidebar .logo-details{
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
}
.sidebar .logo-details i{
    font-size: 30px;
    color: var(--text-color);
    height: 50px;
    min-width: 78px;
    text-align: center;
    line-height: 50px;
}
.sidebar .logo-details .logo_name{
    font-size: 22px;
    color: var(--text-color);
    font-weight: 600;
    transition: 0.3s ease;
    transition-delay: 0.1s;
}
.sidebar.close .logo-details .logo_name{
    transition-delay: 0s;
    opacity: 0;
    pointer-events: none;
}
.sidebar .nav-links{
    height: 100%;
    padding: 30px 0 150px 0;
    overflow: auto;
}
.sidebar.close .nav-links{
    overflow: visible;
}


.sidebar .nav-links::-webkit-scrollbar{
    display: none;
}


.sidebar .nav-links li{
    position: relative;
    list-style: none;
    transition: all 0.4s ease;
}
.sidebar .nav-links li:hover{
    background: var(--primary-color-light);
}

.sidebar .nav-links li .icon-link{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar.close .nav-links li .icon-link{
    display: block
}
.sidebar .nav-links li i{
    height: 50px;
    min-width: 78px;
    text-align: center;
    line-height: 50px;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sidebar .nav-links li.showMenu i.arrow{
    transform: rotate(-180deg);
}
.sidebar.close .nav-links i.arrow{
    display: none;
}
.sidebar .nav-links li a{
    display: flex;
    align-items: center;
    text-decoration: none;
}
.sidebar .nav-links li a .link_name{
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color);
    transition: all 0.2s ease;
}
.sidebar.close .nav-links li a .link_name{
    opacity: 0;
    pointer-events: none;
}

.sidebar .nav-links li a .link_name2{
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color);
    transition: all 0.2s ease;
}
.sidebar.close .nav-links li a .link_name2{
    opacity: 0;
    pointer-events: none;
}
.sidebar .nav-links li .sub-menu{
    padding: 6px 6px 14px 80px;
    margin-top: -10px;
    background: var(--primary-color-light);
    display: none;
}
.sidebar .nav-links li.showMenu .sub-menu{
    display: block;
}
.sidebar .nav-links li .sub-menu a{
    color: var(--text-color);
    font-size: 15px;
    padding: 5px 0;
    white-space: nowrap;
    opacity: 0.6;
    transition: all 0.3s ease;
}
.sidebar .nav-links li .sub-menu a:hover{
    opacity: 1;
    transform: scale(105%);
}
.sidebar.close .nav-links li .sub-menu{
    position: absolute;
    left: 100%;
    top: -10px;
    margin-top: 0;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    opacity: 0;
    display: block;
    pointer-events: none;
    transition: 0s;
}
.sidebar.close .nav-links li:hover .sub-menu{
    top: 0;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
}
.sidebar .nav-links li .sub-menu .link_name{
    display: none;
}
.sidebar.close .nav-links li .sub-menu .link_name{
    font-size: 18px;
    opacity: 1;
    display: block;
}
.sidebar .nav-links li .sub-menu.blank{
    padding: 3px 20px 6px 16px;
    opacity: 0;
    pointer-events: none;
}
.sidebar .nav-links li:hover .sub-menu.blank{
    top: 50%;
    transform: translateY(-50%);
}
.sidebar .profile-details{
    position: fixed;
    bottom: 0;
    width: 260px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-color-light);
    padding: 12px 0;
    transition: all 0.2s ease;
}
.sidebar.close .profile-details{
    background: none;
}
.sidebar.close .profile-details{
    width: 78px;
}
.sidebar .profile-details .profile-content{
    display: flex;
    align-items: center;
}
.sidebar .profile-details img{
    height: 52px;
    width: 52px;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 14px 0 12px;
    background: var(--primary-color-light);
    transition: all 0.5s ease;
}
.sidebar.close .profile-details img{
    padding: 10px;
}
.sidebar .profile-details .profile_name,
.sidebar .profile-details .job{
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}
.sidebar.close .profile-details i,
.sidebar.close .profile-details .profile_name,
.sidebar.close .profile-details .job{
    display: none;
}

.sidebar .profile-details .job{
    font-size: 12px;
}

.home-section{
    position: relative;
    height: 100vh;
    left: 260px;
    width: calc(100% - 260px);
    transition: all 0.3s ease;
    padding: 12px;
}
.sidebar.close ~ .home-section{
    left: 78px;
    width: calc(100% - 78px);
}
.home-content{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 150px !important;
    height: 50px;
    margin-left: 20px;
    background: var(--sidebar-color);
    transition: all 0.2s ease;

}
.home-section .home-content .bx-menu,
.home-section .home-content .text
{
    color: var(--text-color);
    font-size: 35px;
}

.title-color{
    color: var(--text-color);
}

.home-section .home-content .bx-menu{
    cursor: pointer;
    margin-right: 10px;
}
.home-section .home-content .text{
    font-size: 26px;
    font-weight: 600;
}

@media screen and (max-width: 400px){
    .sidebar{
        width: 240px;
    }
    .sidebar.close{
        width: 78px;
    }
    .sidebar .profile-details{
        width: 240px;
    }
    .sidebar.close .profile-details{
        background: none;
    }
    .sidebar.close .profile-details{
        width: 78px;
    }
    .home-section{
        left: 240px;
        width: calc(100% - 240px);
    }
    .sidebar.close ~ .home-section{
        left: 78px;
        width: calc(100% - 78px);
    }
}

.mode .sun-moon{
    height: 50px;
    width: 78px;
}

.mode .sun-moon i{
    position: absolute;
}
.mode .sun-moon i.sun{
    opacity: 0;
}
body.dark .mode .sun-moon i.sun{
    opacity: 1;
}
body.dark .mode .sun-moon i.moon{
    opacity: 0;
}

.toggle-switch{
    position: absolute;
    right: 8px;
    height: 100%;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
}
.toggle-switch .switch{
    position: relative;
    height: 22px;
    width: 40px;
    border-radius: 25px;
    background-color: var(--toggle-color);
    transition: all 0.3s ease;
}

.switch::before{
    content: '';
    position: absolute;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    background-color: var(--sidebar-color);
    transition: all 0.3s ease;
}

body.dark .switch::before{
    left: 20px;
}

.bxs-chess{
    transition: transform 0.7s ease-in-out;
}

.bxs-chess:hover{
    transform: rotate(360deg);
}

.bx-menu{
    transition: transform 0.4s ease-in-out;
}

.bx-menu:hover{
    transform: scale(120%);
}