@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;700&display=swap');

body {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    position: relative;
}


/*************************************/
/****************Sidebar**************/
/*************************************/

nav.navbar {
    z-index: 1050;
}

.sidebar {
    position: fixed;
    top: 83px;
    left: 0;
    bottom: 0;
    
    width: 255px;
    padding: 1rem;
    border-right: 1px solid #dee2e6;
    background-color: #fff;

    overflow-y: auto;
    visibility: hidden;

    transform: translateX(-100%);
    transition: all .2s;

    z-index: 1050;
}

.sidebar.open {
    transform: translateX(0);
    visibility: visible;
}

.sidebar-nav-list {
    display: flex;
    flex-direction: column;
    gap: .25rem;

    padding-left: 0;

    list-style: none;
}

.sidebar-nav-item:link,
.sidebar-nav-item:visited {
    text-decoration: none;
    display: flex;
    gap: 0.75rem;

    color: #6c757d;

    padding: 0.5rem 1rem;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.sidebar-nav-item.active {
    background-color: #eff2f6;
}

.sidebar-nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 100%;
    
    background-color: #eff2f6;
    z-index: -1;

    transition: all .3s;
}

.sidebar-nav-item:hover::before {
    width: 100%;
}

.sidebar-label {
    font-weight: 700;
    font-size: .8rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.overlay {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    top: 80px;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.75);
    overflow: hidden;
}


/*************************************/
/*************MAIN CONTENT************/
/*************************************/

.main-content {
    position: relative;
    min-height: calc(100vh - 83px);
    top: 83px;
    padding: 2rem ;
    transition: all .2s;
}

.sidebar.open ~ .main-content {
    padding: 2rem 2rem 2rem calc(255px + 2rem);
}