    @import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

    :root {
        --sidebar-bg: #ffffff;
        --sidebar-text: #CC0066;
        --sidebar-active: #f4bfd1;
        --content-bg: #f8f9fa;
        --navbar-bg: #ffffff;
        --navbar-text: #e75290;
        --button-bg: #e75290;
        --button-text: #fff;
        --icon-color: #e75290;
        --active-bg: #f4bfd1;
        --btn-custom: #e85a9c;
      }
    
    body.dark-mode {
        --sidebar-bg: #2d2d3a;
        --sidebar-text: #f8f9fa;
        --sidebar-active: #444;
        --content-bg: #121212;
        --navbar-bg: #2d2d3a;
        --navbar-text: #f8f9fa;
        --button-bg: #a62a5b;
        --button-text: #fff;
        --icon-color: #f8f9fa;
        --active-bg: #444;
        --btn-custom: #444;
    }
    
    body {
        display: flex;
        background-color: var(--content-bg);
        color: var(--navbar-text);
        transition: all 0.3s ease;
        font-family: "Kanit", serif;
        font-weight: 400;
        font-style: normal;
        height: 100vh; 
        width: 100%!important;
        margin: 0;      
        padding-right: 0 !important; 
    }
 

    .sidebar {
        /*width: 250px;*/
        min-width: 250px;
        background-color: var(--sidebar-bg);
        transition: width 0.3s ease;
        padding: 10px;
        overflow: hidden;
        z-index: 1050;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
    }

.sidebar {
    width: 250px;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 80px; 
}

.main-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}


.sidebar.collapsed + .main-content {
    margin-left: 90px;
}

@media (max-width: 767.98px) {
    .main-content {
        margin-left: 0 !important;
    }

    .sidebar.collapsed + .main-content {
        margin-left: 0 !important;
    }
}

    .sidebar.collapsed {
        width: 85px;
        min-width: 85px;
    }
    

    .sidebar a {
        color: var(--sidebar-text);
        text-decoration: none;
        padding: 12px 15px;
        display: flex;
        align-items: center;
        border-radius: 5px;
        transition: all 0.3s;
        /*font-weight: bold;*/
    }

    .sidebar a i {
        margin-right: 10px;
    }

    .sidebar a:hover, .sidebar a.active {
        background-color: var(--sidebar-active);
        /*font-weight: bold;*/
    }

    .dropdown ul {
     background-color: var(--sidebar-bg);        
     color: var(--sidebar-text);   
    }
    .dropdown a {
     background-color: var(--sidebar-bg);        
     color: var(--sidebar-text);   
    }    
     
    .dropdown a:hover, .sidebar a.active {
        background-color: var(--sidebar-active);
        color:var(--navbar-text);
        font-weight: bold;
    }


    .sidebar.collapsed a span {
        display: none;
    }

    .sidebar-logo {
        display: block;
        margin: 10px auto;
        width: 180px;
        transition: width 0.3s ease;
    }

    .sidebar.collapsed .sidebar-logo {
        width: 40px;
    }

    .navbar {
        background-color: var(--navbar-bg);
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s;
        color: var(--navbar-text);
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .submenu a {
        font-size: 15px;
        font-weight: normal;
        text-decoration: none;  
        color: inherit; 
        display: flex;          
        align-items: center;    
        padding: 8px 12px;  
    }
    
    .submenu {
        display: none;
        padding-left: 30px;
    }

    .submenu.show {
        display: block;
    }

    .sidebar.collapsed .submenu {
        position: fixed;
        z-index: 1060;
        left: 85px; 
        top: 160px;
        background: var(--sidebar-bg);
        width: 200px;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        display: none;
        
    }

    .sidebar.collapsed .submenu.show {
        display: block !important;
    }
 
    .container {
        display: flex;
        flex-direction: column;
        padding-top: 20px;
        flex-grow: 1;
    }
    
    
    .container {
        flex-grow: 1;
    }
    

    @media (min-width: 1400px) {
        .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
            max-width: 1420px !important;
        }
    }
 
        
    @media (max-width: 768px) {
        .sidebar {
            position: fixed;
            left: -250px;
            top: 0;
            height: 100vh;
            z-index: 1050;
            box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2);
            transition: left 0.3s ease-in-out;
        }

        .sidebar.show {
            left: 0;
        }

        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1049;
        }

        .overlay.show {
            display: block;
        }
    }
    
    .user-avatar {
        width: 40px; 
        height: 40px; 
        object-fit: cover;
    }
    
    .bg-custom{
        background-color: var(--sidebar-bg);
        color: var(--sidebar-text);        
    }

        
.footer {
    /*position: fixed;*/
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1040;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    text-align: center;
    line-height: 0px;
}


        
        .btn-custom {
         background-color: var(--btn-custom);    
         color: var(--sidebar-text);               
        }
        
        .bg-customtow {
         background-color: var(--btn-custom)!important;   
         color: var(--sidebar-text);                           
        }
        
        .btn-custom:hover {
         background-color: var(--sidebar-active);
        }        
