html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
    font-family: 'Prompt', sans-serif;
}

a {
    color: #ffffff;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    max-width: 1312px; /* ปรับให้เป็นค่าที่ต้องการ */
    max-height: 959px; /* ปรับให้เป็นค่าที่ต้องการ */
}


a:hover {
    color: #4762e8;
    text-decoration: none;
}

#app {
    display: flex;
}

#content-page {
    position: relative; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    overflow-x: hidden;
    flex-direction: column !important;
    display: flex !important;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1 0 auto;
}

#footer {
    flex-shrink: 0;
    background-color: #e9ecef;
    color: #000000;
    padding: 10px 10px;
    text-align: center;
}

#navbar {
    background-color: #e9ecef; /* เปลี่ยนสีพื้นหลังให้เข้ากับพื้นหลังสีขาว */
    color: #343a40; /* ปรับสีข้อความ */
    width: 250px;
    min-height: 100vh;
    padding: 30px;
    position: relative; /* Ensure navbar is positioned correctly */
    z-index: 1; /* Ensure navbar is in front of canvas */
    transition: all 0.3s ease; /* เพิ่มการเปลี่ยนแปลงที่นุ่มนวล */
}

#navbar .title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
}

#navbar hr {
    border-color: rgba(0, 0, 0, 0.1); /* เปลี่ยนสีเส้นขอบ */
}

#navbar .list-item .item,
#navbar .list-item .nav-link {
    display: block;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    color: rgba(52, 58, 64, 0.8); /* ปรับสีข้อความ */
    transition: all 0.3s ease;
}

#navbar .list-item .item:hover,
#navbar .list-item .nav-link:hover {
    color: #343a40; /* ปรับสีข้อความเมื่อ hover */
    background-color: rgba(52, 58, 64, 0.1); /* เปลี่ยนสีพื้นหลังเมื่อ hover */
}

#navbar .list-item .item.active,
#navbar .list-item .nav-link.active {
    color: #ffffff;
    background-color: #007bff; /* เปลี่ยนสีพื้นหลังของรายการที่ active */
}

#navbar .list-item .item .fa,
#navbar .list-item .nav-link .fa {
    width: 20px;
    margin-right: 10px;
}

#navbar .list-item .dropdown-menu {
    background-color: #f8f9fa; /* เปลี่ยนสีพื้นหลังของ dropdown */
}

#navbar .list-item .dropdown-item {
    color: rgba(52, 58, 64, 0.8); /* ปรับสีข้อความ */
}

#navbar .list-item .dropdown-item:hover,
#navbar .list-item .dropdown-item.active {
    color: #ffffff;
    background-color: #007bff; /* เปลี่ยนสีพื้นหลังของ dropdown เมื่อ hover */
}

/* Responsive navbar */
@media (max-width: 768px) {
    #navbar {
        width: 100%;
        min-height: auto;
        padding: 15px;
    }

    #navbar .list-item {
        display: flex;
        flex-direction: column;
    }

    #navbar .list-item .dropdown-menu {
        position: static;
        float: none;
    }
}

@media (max-width: 576px) {
    #navbar {
        padding: 10px;
    }

    #navbar .title {
        font-size: 16px;
    }

    #navbar .list-item .item,
    #navbar .list-item .nav-link {
        padding: 8px;
    }
}




.btn-color {
    background-color: #4762e8;
    color: #ffffff;
    font-size: 12px;
}

.btn-color:hover {
    color: #ffffff;
    background-color: #5b76fd;
}

.btn-border-color {
    background-color: rgba(71, 98, 232, 0);
    color: #ffffff;
    font-size: 12px;
    border: 2px solid #5b76fd;
}

.btn-border-color:hover {
    background-color: #5b76fd;
}

.shake:hover {
    animation-name: shake;
    animation-timing-function: ease;
    animation-duration: 0.88s;
    animation-iteration-count: infinite;
}

#content-home>.details>.button {
    margin-top: 50px;
    display: flex;
}




#content>.container {
    padding-top: 50px;
    padding-bottom: 50px;

}

.table-responsive {
    margin-top: 20px;
}

.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

thead.thead-dark th {
    background: #343a40;
    color: white;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
}

.pagination .page-link {
    color: #343a40;
}

.pagination .page-item.active .page-link {
    background-color: #343a40;
    border-color: #343a40;
}

/* Margin adjustments for buttons */
.mt-5 {
    margin-top: 5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

/* Responsive adjustments for buttons and container */
@media (max-width: 768px) {
    .btn {
        margin-bottom: 10px;
    }

    .btn-color {
        width: 100%;
    }

    .btn-border-color {
        width: 100%;
    }
}



@media (max-width: 768px) {
    .btn {
        margin-bottom: 10px;
    }
}
.title-home {
    margin-top: 100px;
    color: #ffffff;
    text-align: center;
}

.badge-color {
    background-color: #4762e8;
    padding: 0 2px;
}

.zoom {
    transition: transform .2s;
}

.zoom:hover {
    opacity: 0.5;
    transform: scale(1.1);
}

.text-color {
    color: #4762e8;
}


#checkStatus {
    background-color: #1f232a;
    min-height: 100vh;
    padding-bottom: 20px;
}

.card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    border-radius: 0.25rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.text {
    color: rgba(250, 250, 250, 0.7);
}

#scroll-btn {
    position: fixed;
    right: 20px;
    bottom: 50px;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    cursor: pointer;
    display: none;
}

#scroll-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

@keyframes backgroundScroll {
    from {
        background-position: top;
    }

    to {
        background-position: bottom;
    }
}
hr {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.form-control {
    color: #000000;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: .25rem;
}

.form-control:focus {
    color: #000000;
    background-color: #ffffff;
    outline: 0;
    border: 1px solid #80bdff;
    box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25);
}

.form-control:disabled,
.form-control[readonly] {
    color: #6c757d;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
}

.card-header {
    padding: .75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, .03);
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0;
    color: #000;
    font-weight: bold;
    font-size: 1.25rem;
}

.card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0 0 calc(.25rem - 1px) calc(.25rem - 1px);
    text-align: right;
}

.card-body {
    animation: slideIn 1s ease-in-out;
}

.card-body .form-group {
    margin-bottom: 1rem;
}

.table-responsive {
    margin-top: 20px;
}

@media (max-width: 576px) {
    .card {
        margin-bottom: 1rem;
    }
}

.modal-header {
    background-color: #007bff;
    color: #ffffff;
}

.modal-header .close {
    color: #ffffff;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem;
    text-align: right;
}

.modal-footer .btn {
    margin-left: 0.5rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.d-flex.w-100 img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    margin-right: 10px;
}

.text-required {
    color: #aa1414;
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.clickable {
    cursor: pointer;
}

.page-404 {
    text-align: center;
    color: #333;
}

.page-404 h1 {
    font-size: 100px;
    color: #ff4757; /* สีแดงสดใส ตัดกับพื้นหลังสีขาว */
    font-weight: bold;
    margin-bottom: 20px;
}

.page-404 h2 {
    font-size: 30px;
    color: #2f3542; /* สีเข้ม ตัดกับพื้นหลังสีขาว */
    margin-bottom: 20px;
}

.page-404 a.btn-color {
    color: #fff;
    background-color: #1e90ff; /* สีฟ้า */
    border: none;
}

.page-404 a.btn-color:hover {
    background-color: #3742fa; /* สีฟ้าเข้มเมื่อ hover */
    color: #fff;
}


.list-group-item.active {
    background-color: #4762e8;
    border-color: #4762e8;
}

@media screen and (max-width: 992px) 
{
    .title-home>h1 {
        font-size: 25px;
    }

    .sidenav-black-overlay {
        -webkit-transition-duration: 500ms;
        transition-duration: 500ms;
        width: 100%;
        position: fixed;
        height: 100%;
        top: 0;
        left: 0;
        background-color: rgba(2, 3, 16, .6);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
    }

    .sidenav-black-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .sidenav {
        height: 100%;
        width: 250px;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background-color: #111;
        overflow-x: hidden;
        padding-top: 20px;
    }

    #main 
    {
        margin-left: 250px;
        padding: 20px;
    }
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

@keyframes bounce {
    0% {
        transform: width(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }

}

@keyframes roll {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

.input-group .form-control {
    background-color: transparent;
    border-color: #ccc;
}

.input-group .input-group-append .btn {
    background-color: transparent;
    border-color: #ccc;
    color: #fff;
}

.input-group .input-group-append .btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.card .problem:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card .problem:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.card .problem {
    border-radius: 0;
}
.image-product {
    width: 100%!important;
    height: 200px!important;
}
.form-group label {
    font-weight: bold;
}

.btn-primary {
    background-color: #4CAF50;
    border: none;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #45a049;
}
.modal-content 
{
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);

 }
 ::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

:-ms-input-placeholder {
    color: #999;
}

::-ms-input-placeholder {
    color: #999;
}
::-webkit-input-placeholder {
    color: #999;
    opacity: 1;
}

:-moz-placeholder {
    color: #999;
    opacity: 1;
}

::-moz-placeholder {
    color: #999;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #999;
    opacity: 1;
}
.custom-input {
    /* color: #ffffff;
    border: 1px solid #444444; */
}

.custom-input::placeholder {
    color: #aaaaaa;
}
