@import url('https://fonts.googleapis.com/css2?family=Athiti:wght@200;300;400;500;600;700&family=Bai+Jamjuree:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Charmonman:wght@400;700&family=IBM+Plex+Sans+Thai+Looped:wght@100;200;300;400;500;600;700&family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&family=Itim&family=K2D:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&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&family=Kodchasan:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Mali:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Mitr:wght@200;300;400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700;900&family=Pattaya&family=Pridi:wght@200;300;400;500;600;700&family=Prompt: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&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=Sriracha&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

:root {
    --blue: #287bff;
    --green: #237d5f;
    --greenbg: linear-gradient(to right, #237d5f, #237d5f, #237d5f);
    --white: #fff;
    --grey: #e0e0e0;
    --black1: #222;
    --black2: #999;
}

body {
   font-family: 'Noto Sans Thai', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--grey);
}

/* width */
::-webkit-scrollbar {
    width: 10px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey; 
    border-radius: 10px;
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #428f75;
    border-radius: 10px;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: var(--green);
  }

.containerx {
    position: relative;
    width: 100%;
}

.navigation {
    position: fixed;
    width: 250px;
    height: 100%;
    background: var(--greenbg);
    border-left: 10px solid var(--green)!important;
    border-top: 5px solid var(--green);
    transition: 0.5s;
    overflow: overlay;
}

.navigation.active {
    width: 80px;
}

.navigation ul {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-left: 0%;
}

.navigation ul li {
    position: relative;
    width: 100%;
    list-style: none;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.navigation ul li:hover,
.navigation ul li.hovered {
    background: var(--white);
}

.navigation ul li:nth-child(1) {
    margin-bottom: 20px;
}

.navigation ul li a {
    position: relative;
    display: block;
    width: 100%;
    display: flex;
    text-decoration: none;
    color: var(--white);
}

.navigation ul li:hover a,
.navigation ul li.hovered a {

    color: var(--green);
}

.navigation ul li a .icon {
    position: relative;
    display: block;
    min-width: 60px;
    height: 60px;
    line-height: 70px;
    text-align: center;
}

.navigation ul li a .icon i {
    font-size: 1.75em;
}

.navigation ul li a .title {
    position: relative;
    display: block;
    padding: 0 10px;
    height: 60px;
    line-height: 60px;
    text-align: start;
    white-space: nowrap;
}

.navigation ul li:hover a::before,
.navigation ul li.hovered a::before {
    content: '';
    position: absolute;
    right: 0;
    top: -50px;
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    box-shadow: 35px 35px 0 10px var(--white);
    pointer-events: none;
}

.navigation ul li:hover a::after,
.navigation ul li.hovered a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -50px;
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    box-shadow: 35px -35px 0 10px var(--white);
    pointer-events: none;
}

.mainx {
    position: absolute;
    width: calc(100% - 250px);
    left: 250px;
    min-height: 100vh;
    background: var(--white);
    transition: 0.5s;
}

.mainx.active {
    width: calc(100% - 80px);
    left: 80px;
}

.topbar {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;

}

.toggle {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    cursor: pointer;
}

.user {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.user img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badgeX {
    font-family: Kanit, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    display: inline-block;
    font-size: 10px;
    padding: 3px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 30.25rem;
}

.line {
    width: 95%;
    background: #fff;
}

.navigation ul div a {
    position: relative;
    display: block;
    width: 100%;
    display: flex;
    text-decoration: none;
    color: var(--white);
    margin-bottom: 20px;
}

.navigation ul div a .icon i {
    font-size: 1.75em;
}

.navigation ul div a .icon {
    position: relative;
    display: block;
    min-width: 60px;
    height: 60px;
    line-height: 70px;
    text-align: center;
}

.navigation ul div a .title {
    position: relative;
    display: block;
    padding: 0 10px;
    height: 60px;
    font-size: 1.5em;
    line-height: 60px;
    text-align: start;
    white-space: nowrap;
}

.topbar-divider {
    width: 0;
    border-left: 1px solid #e3e6f0;
    height: calc(4.375rem - 2rem);
    padding-left: 10px;
    padding-right: 10px;
}

.btn-animate:hover {
    animation: pulse;
    animation-duration: 1s;
}

.shutdown {
    color: #212529 !important;
}

.shutdown:hover {
    color: #dc3545 !important;
    text-shadow: 0 0 3px #ff0000;
}


.WBbox {
    color: #fff;
    background: linear-gradient(#287afe 0%, rgb(40 122 254) 100%);
}


.badge.badge-outlined {
    background-color: transparent
  }
  
  .badge.badge-outlined.badge-default {
    border-color: #B0BEC5;
    color: #B0BEC5
  }
  
  .badge.badge-outlined.badge-primary {
    border-color: #0d6efd!important;
    color: #0d6efd!important;
    
  }
  
  .badge.badge-outlined.badge-secondary {
    border-color: #323a45;
    color: #323a45
  }
  
  .badge.badge-outlined.badge-success {
    border-color: #64DD17;
    color: #64DD17
  }
  
  .badge.badge-outlined.badge-warning {
    border-color: #FFD600;
    color: #FFD600
  }
  
  .badge.badge-outlined.badge-info {
    border-color: #29B6F6;
    color: #29B6F6
  }
  
  .badge.badge-outlined.badge-danger {
    border-color: #ef1c1c;
    color: #ef1c1c
  }


.action .menu {
    position: absolute;
    top: 80px;
    right: 20px;
    padding: 10px 20px;
    background: #287bff;
    width: 200px;
    box-sizing: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: 0.5s;
    color: #ffffff;
    z-index: 999999 !important;
    opacity: 0;
    display: none;
}

.action .menu.active {
    top: 60px;
    visibility: visible;
    opacity: 1;
    z-index: 999999 !important;
    display: inline;
}

.action .menu::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 28px;
    width: 20px;
    height: 20px;
    background: #287bff;
    color: #ffffff;
    transform: rotate(45deg);
}

.action .menu ul li {
    list-style: none;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    direction: flex;
    align-items: center;
}

.action .menu ul li i {
    max-width: 20px;
    margin-right: 10px;
    opacity: 0.5;
    transition: 0.5s;
}

.action .menu h3 {
    width: 100%;
    text-align: center;
    font-size: 18px;
    padding: 10px 0;
    font-weight: 500;
    color: rgb(255, 255, 255);
    line-height: 1.2em;

}

.action .menu span {
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: rgb(196, 196, 196);
    line-height: 1.2em;
}

.action .menu ul li:hover i {
    opacity: 1;
    padding-left: 5px;
}

.action .menu ul li a {
    display: inline-block;
    text-decoration: none;
    color: rgb(221, 221, 221);
    font-weight: 500;
    transition: 0.5s;
}

.action .menu ul li:hover a {
    color: #ffffff;
    padding-left: 5px;
}

.boxheader {
    font-size: 1.5em;
    font-weight: 500;
    background: rgba(40, 123, 255, 1);
    border: 1px solid #ccc;
    border-radius: 16px;
    padding: 5px;
    align-items: center;
    color: #fff;
}

input {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;

}



@media only screen and (max-width: 768px) {
    .toggle {
        display: none !important;
    }

    .navigation {
        width: 80px !important;
    }

    .mainx {
        width: calc(100% - 80px) !important;
        left: 65px !important;
    }

    .topbar {
        justify-content: end;


    }

    .btn-group-justified .btn {
        padding: 0.2rem 0.2rem !important;
        font-size: 0.9rem !important;
    }
}

