/*@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');*/
/*@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital@0;1&display=swap');*/

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

body {
    font-family: 'Sarabun'; 
    /*font-family: "Taviraj", serif;*/
    /*font-family: 'Noto Sans Thai', 'Noto Sans';*/
    /*font-family: 'Noto Sans Thai', 'Noto Sans';*/
}

.wrapper {
    display: flex;
}

.main {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    background-color: #0d0a1c;
}

#sidebar {
    width: 70px;
    min-width: 70px;
    z-index: 1000;
    transition: all .25s ease-in-out;
    background-color: #0e2238;
    display: flex;
    flex-direction: column;
}

#sidebar.expand {
    width: 260px;
    min-width: 260px;
}

.toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

.toggle-btn i {
    font-size: 1.5rem;
    color: #FFF;
}

.sidebar-logo {
    margin: auto 0;
}

.sidebar-logo a {
    color: #FFF;
    font-size: 1.15rem;
    font-weight: 600;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
    display: none;
}

.sidebar-nav {
    padding: 2rem 0;
    flex: 1 1 auto;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #FFF;
    display: block;
    /* font-size: 0.9rem; */
    font-size: 20px;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-link i {
    font-size: 1.1rem;
    margin-right: .75rem;
}
a.sidebar-link:hover {
    background-color: #ffffff13;
    border-left: 3px solid #3b7ddd;
}

.sidebar-item {
    position: relative;
}
.sidebar-dropdown {
    background-color: #142d46;
}
#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #0e2238;
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
    display: block;
    max-height: 100em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}
#alert-danger,#alert-success {
    width: 200px;
    position: fixed;
    bottom: 0px;
    right: 15px;
    padding: 0;
    font-size: 0;
    border: 0;
    transition-duration: 0.1s;
    z-index: 2001;
}

/* Switch Button */

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 1px;
    bottom: 1px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .2s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Active and Inactive Color */

.active-color-text {
    border: 1px solid #0bd18a;
    color: #0bd18a;
    border-radius: 7px;
    padding: 2px 8px;
    margin-top : 5px;

}
.inactive-color-text {
    border: 1px solid #FC6161;
    color: #FC6161;
    border-radius: 7px;
    padding: 2px 8px;
}
.active-color-text {
    border: 1px solid #0bd18a;
    color: #0bd18a;
    border-radius: 7px;
    padding: 2px 8px;

}
.pending-color-text {
    border: 1px solid #EEE500;
    color: #EEE500;
    border-radius: 7px;
    padding: 2px 8px;
}
.processing-color-text {
    border: 1px solid #fa92b5;
    color: #fa92b5;
    border-radius: 7px;
    padding: 2px 8px;
}
.custom-text-danger {
    color: #FC6161;
}
.custom-text-success {
    color: #0bd18a;
}
.custom-text-pending {
    color: #f0ad4e;
}

/* Modal */

.main,.table {
    color: #fff;
    text-align: center;
}
.modal-content {
    background-color: #0d0a1c;
    color: #fff;
}
.modal-header > .btn-close {
    /* background: #fff; */
    color: #000000;
}
.btn-close {
    filter: brightness(0) invert(1);
}
.form-control,
.form-control:focus{
    background: #252636;
    color: #fff;
    text-align: center;
    color-scheme: dark;
}
.form-select,
.form-select:focus{
    background: #252636;
    color: #fff;
    text-align: center;
}
.form-control::placeholder {
    color: #fff;
    opacity: 0.3; /* Firefox */
}
input[readonly] {
    border: 1px solid #dc3545;
}
input[readonly]:focus {
    border: 1px solid #dc3545;
    box-shadow: 0px 0px 3px 1px #dc3545;
}

/* Loader */

#loader {
    background: black;
    position:fixed;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: .50;
    z-index: 2000;
  }
#loaderWheel {
    position:fixed;
    visibility: hidden;
    top: 50%;
    left: 50%;
    transform:translate(-50%,-50%);
    animation: spin 1s infinite linear;
    border: 5px solid #0e2238;
    border-top: 4px solid #3498db;
    box-shadow: 0px 0px 5px 2px #3498db;
    border-radius: 50%;
    height: 100px;
    margin-bottom: 10px;
    width: 100px;
    z-index: 2000;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
        border-top: 5px solid #3498db;
    }
    100% {
        transform: rotate(360deg);
        border-top: 5px solid #FC6161;
    }
}
.border-color {
    border-color:#FFFFFF;
}
.text-color {
    color: #FFFFFF;
}