:root {
    --font: "Anuphan", sans-serif;
    --color: #d4af37;
    --color-light: rgba(212, 175, 55, .2);
    --color-border: rgba(212, 175, 55, .3);
    --color-disabled: #997b33;
    --color-hover: #c4a030;
    --background-color: #121212;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-blue: #5353c9;
    --color-red: #dc3545;
    --dark: #121212;
    --dark-light: rgba(0, 0, 0, .5);
    --navbar-gold-light: rgba(212, 175, 55, .15);
    --navbar-gold-dark: #b58e1e;
    --navbar-bg: rgba(0, 0, 0, .85);
    --navbar-border: rgba(212, 175, 55, .25);
    --navbar-divider: rgba(212, 175, 55, .15);
    --table-gold-light: rgba(212, 175, 55, .15);
    --table-gold-medium: rgba(212, 175, 55, .3);
    --table-gold-dark: #b58e1e;
    --table-bg: rgba(0, 0, 0, .85);
    --table-border: rgba(212, 175, 55, .25);
    --table-white: #fff;
    --table-row-alt: rgba(207, 161, 55, .2);
    --table-hover: rgba(212, 175, 55, .1);
    --table-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    --footer-gold-light: rgba(212, 175, 55, .15);
    --footer-gold-dark: #b58e1e;
    --footer-bg: rgba(0, 0, 0, .85);
    --footer-border: rgba(212, 175, 55, .25);
    --footer-divider: rgba(212, 175, 55, .15)
}

.floating-image {
    position: absolute;
    top: 80px;
    /* ปรับให้อยู่ต่ำลงจากเดิม */
    right: -30px;
    /* ยังคงขยับออกไปข้างขวา */
    pointer-events: none;
    /* กันไม่ให้รบกวนการกด */
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
    /* เพิ่มเงาให้ดูเด่น */
}

/* Media Query สำหรับหน้าจอมือถือ */
@media (max-width: 768px) {
    .floating-image {
        display: none;
        /* ซ่อนรูปภาพในมือถือ */
    }
}

.icon-sidebar {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    background-color: #F3F3F7;
    border-radius: 8px;
    padding: 8px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}


.form-control {
    border-radius: 10px;
    padding: 8px;
    border: 1px solid #ced4da;
    /* กรอบเริ่มต้นเป็นสีเทา */
}

.form-control:focus {
    border: none;
    /* ลบกรอบเดิม */
    border-color: red;
    /* กรอบสีแดงเมื่อโฟกัส */
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
    /* เงาสีแดงแทนกรอบเดิม */
}



a {
    color: #000000;
}

a:hover {
    color: #ababab;
    text-decoration: none;
}


.hero:hover {
    transform: scale(1.02);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.hero img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease-in-out;
}

.hero img:hover {
    transform: scale(1.1);
}

.hero h1 {
    font-size: 28px;
    font-weight: bold;
    margin-top: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 16px;
    opacity: 0.9;
}

/* Animation */
.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

.slide-up {
    animation: slideUp 1.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* สำหรับผู้ใช้ประเภท Member */
.user-status.member {
    color: rgb(0, 255, 0);
    /* สีเขียว */
}

/* สำหรับผู้ใช้ประเภท Admin หรือ CEO */
.user-status.admin,
.user-status.ceo {
    color: #007bff;
    /* สีฟ้า */
}

.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: -30px;
}

.stats .card {
    background: linear-gradient(#f5f5f5, rgb(255, 255, 255));
    color: black;
    padding: 20px;
    border-radius: 15px;
    width: 220px;
    max-width: 90%;
    text-align: center;
    margin: 15px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    padding-top: 60px;
    overflow: hidden;
}

.stats .card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.2);
}

.icon-circle {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: #d32f2f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.icon-circle:hover {
    transform: translateX(-50%) scale(1.15);
}

.stats .card i {
    font-size: 28px;
    color: white;
}

.stats .card h3 {
    font-size: 26px;
    font-weight: bold;
    margin-top: 10px;
}

.stats .card h6 {
    color: #d32f2f;
    font-weight: bold;
    margin-top: 10px;
    font-size: 16px;
}

.card-content {
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    max-height: 150px;
    opacity: 1;
    overflow: hidden;
}

.card-content.hidden {
    max-height: 0px;
    opacity: 0;
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
    .stats {
        flex-direction: column;
        width: 100%;
    }

    .stats .card {
        width: 90%;
        max-width: 350px;
        margin: 10px auto;
    }
}

.bg-zinc-800 {
    --tw-bg-opacity: 1;
    background-color: rgb(39 39 42 / var(--tw-bg-opacity));
}

.card-home {
    border-bottom: 4px solid #B87333;
}

.card-home h1 {
    color: #000000;
}

.card-home:hover {
    background-color: #B87333;
    color: #ffffff;
    border-bottom: 4px solid #ffffff;
    transition: 1s;
}

/* ---------------------------------------------- */
/* Form-control */
/* ---------------------------------------------- */




.bg-navbar {
    background-color: #fff;
    padding: 15px;
}

/* ---------------------------------------------- */
/* Card */
/* ---------------------------------------------- */

.card {
    border-radius: 5px;
    border: none;
    box-shadow: 0 0 15px rgb(0 0 0 / 8%);
    color: #000;
}

.card-product {
    border-radius: 15px;
    border: none;
    box-shadow: 0 0 15px rgb(0 0 0 / 8%);
    color: #000;
    background-color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
}

.card-pt-pb-50 {
    border-radius: 15px;
    border: none;
    padding-top: 50px;
    padding-bottom: 50px;
    box-shadow: 0 0 15px rgb(0 0 0 / 8%);
    background-color: #fff;
    color: #000;
}

.cards {
    border-radius: 15px;
    border: none;
    color: #000;
    background-color: rgb(39 39 42);
}

.bg-dark {
    background-color: rgb(39 39 42);
}

.d-flex.w-100 img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    margin-right: 10px;
}

.circle-logo {
    width: 40px;
    height: 40px;
    background-color: #c9c9c994;
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.text-danger {
    color: #dc3545 !important;
    font-weight: bold;
}

/* ---------------------------------------------- */
/* Btn */
/* ---------------------------------------------- */

.btn-darkmode {
    width: 40px;
    height: 40px;
    background-color: #c9c9c994;
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.btn-color {
    background-color: var(--color) !important;
    color: var(--color-white) !important;
    border-radius: 8px !important;
    transition: all .3sease;
}

.rouded-2 {
    width: 100%;
    /* ปรับให้รูปภาพมีขนาดเต็มที่ */
    max-width: 600px;
    /* หรือจะกำหนดขนาดสูงสุดตามต้องการ */
    height: auto;
    /* ให้สูงตามสัดส่วน */
    border-radius: 15px;
    /* โค้งมุม */
    display: block;
    margin: 0 auto;
    /* จัดกึ่งกลาง */
}

.rouded-2 img {
    width: 100%;
    /* ปรับให้รูปภาพเต็มพื้นที่ของ .rouded-2 */
    height: auto;
    /* ให้สูงตามสัดส่วน */
    border-radius: 15px;
    /* โค้งมุมที่รูป */
}

/* ---------------------------------------------- */
/* Loader */
/* ---------------------------------------------- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* พื้นหลังโปร่งใส */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* กล่องของ loader */
.loader-container {
    text-align: center;
    color: #fff;
}

/* กรอบ Progress Bar */
.progress-container {
    width: 300px;
    height: 30px;
    background: #444;
    border-radius: 20px;
    border: 2px solid #ff0000;
    /* กรอบสีแดง */
    margin: 20px auto;
    overflow: hidden;
}

/* Progress Bar (เติมเต็มในรูปแบบ % เป็นแถบสีแดง) */
.progress-bar {
    width: 0%;
    height: 100%;
    background: #ff0000;
    /* สีแดง */
    animation: fillProgress 5s linear infinite;
    border-radius: 20px;
}

/* ข้อความที่แสดงบนหน้าโหลด */
p {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* การเติมแถบ Progress Bar */
@keyframes fillProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 50%;
    }

    100% {
        width: 100%;
    }
}

/* ทำให้ loader เป็นการหมุน */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.toggle-password {
    float: right;
    margin-top: -34px;
    position: relative;
    z-index: 2;
    font-size: 16px;
    color: var(--color-main);
}

.logo-anim {
    transition: 0.5s ease-in-out;
    animation: bounce-10 1s infinite;
}

@keyframes bounce-10 {

    0% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, .2, 1)
    }

    50% {
        transform: translateY(-10%) scale(1.01);
        animation-timing-function: cubic-bezier(.5, 0, 1, 1)
    }

    1000% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, .2, 1)
    }
}


/* ---------------------------------------------- */
/* Profile */
/* ---------------------------------------------- */
.profile-picture {
    background-color: #7776768c;
}

.profile-list {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.profile-list:hover {
    background-color: #f8f8f8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.profile-list p {
    margin: 0;
    padding: 0;
}

.profile-list a {
    text-decoration: none;
}

.email-blur {
    filter: blur(5px);
    transition: filter 0.3s ease-in-out;
}

.email-blur.show {
    filter: blur(0px);
}

.profile-container {
    padding: 30px;
    border-radius: 10px;
}

.profile-img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid #6c757d;
    object-fit: cover;
}

.info-box {
    background-image: linear-gradient(to right, #1F1C2C 0%, #928DAB 51%, #1F1C2C 100%);
    padding: 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.info-box:hover {
    background-image: linear-gradient(to right, #1f1c2ca6 0%, #928DAB 51%, #1f1c2ca6 100%);
    transition: 0.3s;
}

.text-main {
    color: #007bff;
}

.text-theme {
    color: #6c757d;
}


.btn-profile-change {
    position: absolute;
    margin-right: -110px;
    margin-bottom: -110px;
    width: 50px;
    height: 50px;
    font-size: 20px;
    border: 1px solid #fff;
    border-radius: 100%;
    background-color: #ffffff;
    transition: all .5sease;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.25);
}

#footer {
    background-color: #4d52ec;
    color: #ffffff;
    padding: 10px 10px;
    text-align: center;
}

#footer a:hover {
    color: #ffffff;
}


/* ---------------------------------------------- */
/* nav-tabs */
/* ---------------------------------------------- */

/* ปรับแต่ง .nav-tabs */
.nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    border-radius: 10px;
    padding: 1px;
    -webkit-overflow-scrolling: touch;
}

/* จัดการ nav-item */
.nav-tabs .nav-item {
    flex: 1 0 auto;
    text-align: center;
}

/* สไตล์ปกติของ nav-link */
.nav-tabs .nav-link {
    color: #000000 !important;
    padding: 10px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* สไตล์เมื่อ hover */
.nav-tabs .nav-link:hover {
    color: #000000;
}

/* สไตล์เมื่อ active */
.nav-tabs .nav-link.active {
    border-bottom: none !important;
    font-weight: bold;
    color: #000000 !important;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: #495057;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ตกแต่ง scrollbar ใน .nav-tabs */
.nav-tabs::-webkit-scrollbar {
    height: 3px;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background-color: #ffffffb6;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-tabs::-webkit-scrollbar-thumb:hover {
    background-color: #bbb;
    /* สีเมื่อ hover */
}

.nav-tabs::-webkit-scrollbar-track {
    background-color: #f0f0f0;
    /* สีพื้นหลังของ track */
}

/* ตกแต่ง .nav-tabs ให้ใช้ scrollbar ในมือถือ */
@media (max-width: 768px) {
    .nav-tabs {
        padding: 3px 0;
        color: #000;
    }

    .nav-tabs .nav-link {
        padding: 8px 10px;
        color: #000;
    }

    /* เพิ่มสไตล์ scrollbar สำหรับมือถือ */
    .nav-tabs::-webkit-scrollbar {
        height: 3px;
    }

    .nav-tabs::-webkit-scrollbar-thumb {
        background-color: #ffffffb6;
    }
}

/* ปรับแต่ง scrollbar ทั่วไป */
.scrollable-tabs::-webkit-scrollbar {
    height: 3px;
    /* ใช้ 3px สำหรับ scrollbar */
    background: #f0f0f0;
    /* สีพื้นหลัง scrollbar */
}

.scrollable-tabs::-webkit-scrollbar-thumb {
    background: #ffffffb6;
    /* สีของ scrollbar */
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.scrollable-tabs::-webkit-scrollbar-thumb:hover {
    background: #bbb;
    /* เปลี่ยนสีเมื่อ hover */
}

.scrollable-tabs::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

/* ปรับแต่ง scrollable-tabs ในกรณีที่มีการซ่อน scrollbar */
.invisible-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ปรับแต่ง scrollbar แบบที่ปรับแต่งส่วนใหญ่ */
.mostly-customized-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 3px;
    /* ใช้ 3px สำหรับ scrollbar */
    background-color: #aaa;
}

.mostly-customized-scrollbar::-webkit-scrollbar-thumb {
    background: #000;
}

/* ---------------------------------------------- */
/* dataTables */
/* ---------------------------------------------- */
.dataTables_filter input {
    width: 250px !important;
    height: 40px;
    border-radius: 10px;
    padding: 5px 10px;
}

.dataTables_length select {
    width: 80px !important;
    height: 40px;
    border-radius: 5px;
    padding: 5px;
}

.dataTables_wrapper .dataTables_filter {
    float: right;
    text-align: right;
    margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_length {
    float: left;
    text-align: left;
    margin-bottom: 10px;
}

.hamburger-react {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.bar {
    width: 100%;
    height: 4px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* เมื่อกดปุ่ม เปลี่ยนเป็น "X" */
.hamburger-react.open .bar-1 {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-react.open .bar-2 {
    opacity: 0;
}

.hamburger-react.open .bar-3 {
    transform: translateY(-10px) rotate(-45deg);
}


/* ---------------------------------------------- */
/* product-category */
/* ---------------------------------------------- */
.product-category {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product-category img.bg {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.product-category .text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ครอบคลุมทั้งรูปภาพ */
    background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.219));
    color: #fff;
    display: flex;
    justify-content: flex-start;
    /* ชิดซ้าย */
    align-items: flex-end;
    /* ชิดล่าง */
    font-size: 22px;
    font-weight: bold;
    padding: 10px;
    /* เว้นระยะห่างจากขอบ */
    text-shadow: 2px 2px 10px rgb(0, 0, 0);
    transition: background 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

.product-category:hover {
    transform: translateY(-5px);
}

.product-category:hover img.bg {
    transform: scale(1.05);
}

.product-category:hover .text {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.5));
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 1);
}


/* General Product Image Style */
.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.product-image img {
    transition: transform 0.3s ease;
}

.card:hover .product-image img {
    transform: scale(1.1);
}

/* Product Info Styling */
.product-info {
    background-color: rgba(255, 255, 255, 0.85);
    /* Light translucent background */
    border-radius: 0 0 10px 10px;
}

/* Badge and Price Styling */
.badge-pill {
    font-size: 0.85rem;
}


/* For Hover Effects and Modal */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Adjustments for Modal and Image Styling */
#showImageProduct {
    height: 100%;
    object-fit: cover;
    border-radius: 15px 0 0 15px;
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
}

.card-body {
    padding: 1rem;
}

/* Ensure everything looks great on mobile */
@media (max-width: 767px) {
    .product-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .modal-body .row {
        min-height: auto;
    }
}

#ShowModalProduct .modal-dialog {
    max-width: 800px;
}

#ShowModalProduct .modal-content {
    border-radius: 15px;
}

#ShowModalProduct .close {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: none;
    opacity: 1;
}

#ShowModalProduct .close:hover {
    color: #f8f9fa;
}

#showImageProduct {
    height: 100%;
    object-fit: cover;
    border-radius: 5px 0 0 5px;
}

#ShowModalProduct .badge {
    font-size: 0.9rem;
    font-weight: normal;
}

#ShowModalProduct h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

#ShowModalProduct hr {
    border-color: #dee2e6;
}

#ShowModalProduct .input-group {
    max-width: 150px;
}

#submitBuyProduct {
    font-size: 1rem;
    padding: 0.5rem;
}

.stat-icon {
    font-size: 3.5rem;
    background-image: linear-gradient(to right, #1F1C2C 0%, #928DAB 51%, #1F1C2C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ---------------------------------------------- */
/* Button Cover */
/* ---------------------------------------------- */
.btn-help {
    position: relative;
    max-width: 300px;
    border-radius: 10px;
    transition: all 0.3s;
}

.btn-help:hover {
    transform: translateY(-10px);
}

.btn-help img {
    max-width: 100%;
    border-radius: 10px;
}

.announce-line {
    overflow: hidden;
    white-space: nowrap;
    border-radius: 10px;
    border: 1px solid #ff950025;
    position: relative;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.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: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.title-name {
    font-weight: 700;
    color: #000000;
}


.image-product {
    border-radius: 15px;
}

.profile-header {
    display: flex;
    align-items: center;
}

.profile-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 10px;
}

.profile-info {
    font-size: 14px;
}

.history-btn {
    width: 100%;
    background-color: #C21807;
    color: white;
    border: none;
    text-align: left;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
}

.history-btn i {
    margin-right: 10px;
}

.logout-btn {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    width: 100%;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
}

.logout-btn i {
    margin-right: 5px;
}



.btn-tw {
    background-color: #ff8324;
    color: #fff;

    &:hover {
        background-color: #ff8324;
        color: #fff;

    }
}

.btn-pp {
    background-color: #113566;
    color: #fff;

    &:hover {
        background-color: #113566;
        color: #fff;

    }
}


/* ---------------------------------------------- */
/* Topup */
/* ---------------------------------------------- */
.drag-area {
    border: 2px dashed #6c757d;
    height: 100%;
    width: 100%;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.drag-area button {
    font-size: 15px;
    border: none;
    outline: none;
    background: #6c757d;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.drag-area .icon,
.drag-area span,
.drag-area h5 {
    transition: all 0.3s;
}

.drag-area.active {
    border: 2px solid var(--color-main);
}

.drag-area.active .icon {
    transform: scale(1.2) translateY(85%);
}

.drag-area.active button,
.drag-area.active span,
.drag-area.active h5 {
    opacity: 0;
}


/* ---------------------------------------------- */
/* Sweet Alert */
/* ---------------------------------------------- */
.swal2-popup {
    border-radius: 1.75vh !important;
}

.swal2-styled {
    border-radius: 1.25vh !important;
    transition: all 0.35s !important;
}

button.swal2-styled:hover,
button.swal2-styled:active {
    transform: scale(0.9) !important;
}


/* ปรับสไตล์ของตาราง DataTable */
.table {
    border-collapse: collapse;
    /* รวมเส้นขอบ */
    width: 100%;
    /* ให้ตารางใช้พื้นที่เต็ม */
}

.table th,
.table td {
    padding: 12px 15px;
    /* เพิ่มระยะห่างให้สบายตา */
    text-align: left;
    /* จัดข้อความให้ชิดซ้าย */
    vertical-align: middle;
    /* จัดแนวตั้งให้อยู่ตรงกลาง */
}

.table th {
    background-color: #f8f9fa;
    /* พื้นหลังของหัวตาราง */
    color: #343a40;
    /* สีตัวอักษร */
    font-weight: 600;
    /* เพิ่มความหนาให้กับข้อความ */
}

.table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
    /* เปลี่ยนพื้นหลังแถวที่คู่ */
}

.table tbody tr:hover {
    background-color: #e9ecef;
    /* เมื่อเลื่อนเมาส์ไปแถวจะเปลี่ยนสี */
}

.table-bordered {
    border: 1px solid #dee2e6;
    /* เส้นขอบรอบตาราง */
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
    /* เส้นขอบของเซลล์ */
}

/* เพิ่มขอบโค้งให้ตาราง */
.table-rounded {
    border-radius: 8px;
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
    /* ทำให้สามารถเลื่อนตารางไปทางขวาได้หากจอเล็ก */
    -webkit-overflow-scrolling: touch;
    /* ให้การเลื่อนทำงานได้ดีบนมือถือ */
}

/* สไตล์ของปุ่มใน DataTable */
.dataTables_length select,
.dataTables_filter input {
    padding: 5px 10px;
    /* เพิ่มระยะห่างใน input */
    border-radius: 4px;
    /* มุมโค้ง */
    border: 1px solid #ced4da;
    /* เส้นขอบสีเทา */
}

.dataTables_length select {
    width: auto;
    /* ทำให้ select มีความกว้างเหมาะสม */
}

.dataTables_filter input {
    width: 200px;
    /* กำหนดความกว้างของช่องค้นหา */
}

/* ---------------------------------------------- */
/* Me */
/* ---------------------------------------------- */

.profile-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0 15px rgb(0 0 0 / 8%);
}

.profile-card .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-card .header .user-info {
    display: flex;
    align-items: center;
}

.profile-card .header .user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.profile-card .header .user-info h5 {
    margin: 0;
    font-weight: 800;
}

.profile-card .header .user-info span {
    font-weight: 300;
    color: #a6a4c9;
}

.profile-card .header .buttons button {
    margin-left: 10px;
}

.profile-card .details {
    margin-top: 20px;
}

.profile-card .details .row {
    margin-bottom: 10px;
}

.profile-card .details .col-md-6 {
    padding: 10px;
    border-radius: 5px;
}

.profile-card .details h6 {
    margin: 0;
    font-weight: 500;
}

.profile-card .details p {
    margin: 5px 0 0;
    font-weight: 300;
    color: #a6a4c9;
}

/* ส่วนของ account container */
.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ส่วนของ account boxes */
.account-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* จัดให้มี 2 คอลัมน์ */
    gap: 20px;
    margin-top: 20px;
}

/* ส่วนของแต่ละ card */
.account-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow: hidden;
}

/* ส่วนหัวของ account card */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.account-header .head-1 {
    display: flex;
    align-items: center;
}

.account-header .head-1 img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

.account-header h2 {
    font-size: 20px;
    color: #333;
}

.account-header .head-2 a {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.account-header .head-2 a:hover {
    color: #0056b3;
}

/* ส่วนของ account info */
.account-info {
    margin-top: 20px;
}

.account-info .info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.account-info h2 {
    font-size: 16px;
    color: #333;
}

.account-info .sub-text {
    font-weight: bold;
    color: #555;
}

.account-info .text {
    font-size: 14px;
    color: #666;
}

.account-info .non-check {
    color: #ff4d4d;
}

/* ส่วนของ account transactions */
.account-transactions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 10px;
}

.transaction {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.transaction h2 {
    font-size: 18px;
    color: #333;
}

.transaction .text {
    font-size: 14px;
    color: #666;
}

/* ส่วนของ account wallet */
.account-wallet {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.wallet-total {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.wallet_mb {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-account {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.config-account:hover {
    background-color: #0056b3;
}

/* ส่วนของ account coin */
.account-coin {
    margin-top: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.rank {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rank h2 {
    font-size: 18px;
    color: #333;
}

.rank .sub-text {
    font-weight: bold;
    color: #555;
}

.coin_mb {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coin {
    font-size: 22px;
    color: #333;
}

.rank-level {
    display: flex;
    align-items: center;
}

.rank-level img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

/* Media Query สำหรับขนาดหน้าจอเล็ก */
@media (max-width: 767px) {
    .account-boxes {
        grid-template-columns: 1fr;
        /* ทำให้ทุกคอลัมน์อยู่ในแนวตั้ง */
    }

    .transaction {
        font-size: 14px;
    }

    .account-header h2 {
        font-size: 18px;
    }

    .account-info h2 {
        font-size: 14px;
    }

    .wallet-total {
        font-size: 18px;
    }

    .rank h2 {
        font-size: 16px;
    }
}

.note-box ul li {
    font-size: 0.875rem;
    /* ขนาดฟอนต์เล็กลง */
    line-height: 1.6;
    /* เว้นระยะบรรทัดเพื่อให้อ่านง่ายขึ้น */
}

@media (max-width: 767px) {
    .logo-center {
        margin-right: 130px;
    }
}

@media (min-width: 768px) {
    #darkModeToggle {
        display: none;
        /* ซ่อนในหน้าจอที่กว้างกว่า 768px (โหมด Desktop) */
    }
}


/* สไตล์เริ่มต้นของ Hamburger Icon (3 เส้น) */
.hamburger-react {
    cursor: pointer;
    height: 50px;
    position: relative;
    padding: 10px;
    width: 50px;
    transition: 0.4s cubic-bezier(0, 0, 0, 1);
    margin-left: -10px;
    /* ชิดซ้าย */
}

.hamburger-react .bar {
    background: currentcolor;
    height: 2px;
    position: absolute;
    width: 18px;
    left: 15px;
    transition: 0.4s cubic-bezier(0, 0, 0, 1);
}

.hamburger-react .bar-1 {
    top: 17px;
}

.hamburger-react .bar-2 {
    top: 23px;
}

.hamburger-react .bar-3 {
    top: 29px;
}

/* สไตล์เมื่อเปิด Navbar (แปลงเป็น X) */
.hamburger-react.open .bar-1 {
    transform: rotate(45deg);
    top: 23px;
    /* ปรับให้ตรงกลาง */
}

.hamburger-react.open .bar-2 {
    opacity: 0;
    /* ซ่อนเส้นกลาง */
}

.hamburger-react.open .bar-3 {
    transform: rotate(-45deg);
    top: 23px;
    /* ปรับให้ตรงกลาง */
}

/* สำหรับปุ่ม navbar-toggler */
.navbar-toggler {
    border: none;
    background: transparent;
}

/* ลบกรอบเมื่อคลิกหรือ focus ที่ navbar-toggler */
.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
    /* กำจัดเงา focus (ถ้ามี) */
}

.bg-navbar {
    background-color: #fff;
    box-shadow: 0 0 15px rgb(0 0 0 / 8%);
    padding: 15px;
}

.btn-light {
    color: #212529;
    background-color: #e0e0e07e;
    border-color: #f8f9fa;
}

.card product {
    transition: border-color 0.3s ease;
}

.product:hover {
    border: 2px solid red;
    /* เพิ่มกรอบสีแดง */
}

.form-container {
    max-width: 600px;
    margin: 20px auto;
}

.form-group {
    margin-bottom: 20px;
}

select {
    border-radius: 5px;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-boost {
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
}

.remove-boost:hover {
    background-color: #c82333;
}

.total-price {
    font-size: 18px;
}

.selected-boost-image {
    width: 50px;
    height: 50px;
    margin-left: 10px;
}

/* Dropdown ปกติ */
.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    z-index: 1050 !important;
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    min-width: 250px;
    /* กำหนดความกว้างขั้นต่ำ */
}

/* ปรับสีของตัวเลือกใน Dropdown */
.dropdown-menu .dropdown-item {
    color: #333 !important;
    background-color: transparent !important;
    padding: 10px 15px !important;
}

/* เพิ่มเอฟเฟกต์ Hover */
.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa !important;
}

/* ปรับสไตล์ให้ชื่อผู้ใช้และอีเมลดูดีขึ้น */
.dropdown-menu p.fw-semibold {
    color: #333 !important;
}

.dropdown-menu small.text-muted {
    color: #666 !important;
}

/* ปรับแต่งปุ่มออกจากระบบ */
.dropdown-menu .btn-danger {
    background-color: #dc3545 !important;
    border: none !important;
    color: white !important;
}

.dropdown-menu .btn-danger:hover {
    background-color: #c82333 !important;
}

/* ปรับขนาดของวงกลมด้านล่าง */
.carousel-indicators li {
    width: 15px;
    height: 15px;
    background-color: #fff;
    /* สีของวงกลม */
    border-radius: 50%;
    /* ทำให้เป็นวงกลม */
}

/* ปรับเมื่อเลือกวงกลม */
.carousel-indicators .active {
    background-color: #dc3545;
    /* สีของวงกลมที่เลือก */
}

/* Dark Mode */
body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0;
}

/* Navbar */
body.dark-mode .navbar {
    background-color: #1d1d1d !important;
}

body.dark-mode .navbar a {
    color: #e0e0e0 !important;
}

/* Button */
body.dark-mode .btn-light {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* Card */
body.dark-mode .card {
    background-color: #1d1d1d !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
}

/* Form Control */
body.dark-mode .form-control {
    background-color: #222222 !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
}

body.dark-mode .form-control::placeholder {
    color: #bbb !important;
}

/* Profile Card */
body.dark-mode .profile-card {
    background-color: #1d1d1d !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
}

/* Stats */
body.dark-mode .stats {
    background-color: #333333 !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 10px;
}

/* Hamburger Menu */
body.dark-mode .hamburger-react .bar {
    background-color: #ffffff !important;
}

/* DataTable */
body.dark-mode .dataTables_wrapper {
    background-color: #1d1d1d !important;
    color: #e0e0e0 !important;
}

body.dark-mode .dataTables_length select,
body.dark-mode .dataTables_filter input {
    background-color: #222222 !important;
    color: #e0e0e0 !important;
    border: 1px solid #444444 !important;
}

body.dark-mode .dataTable {
    background-color: #1d1d1d !important;
    color: #e0e0e0 !important;
}

body.dark-mode .dataTable th,
body.dark-mode .dataTable td {
    border-color: #444444 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .dataTable thead th {
    background-color: #222222 !important;
}

body.dark-mode .dataTable tbody tr:hover {
    background-color: #333333 !important;
}

/* Nav Tabs */
body.dark-mode .nav-tabs {
    border-bottom: 1px solid #444444 !important;
}

body.dark-mode .nav-tabs .nav-link {
    background-color: #222222 !important;
    color: #e0e0e0 !important;
    border: 1px solid transparent;
}

body.dark-mode .nav-tabs .nav-link.active {
    background-color: #1d1d1d !important;
    color: #e0e0e0 !important;
    border: 1px solid #444444 !important;
}

/* Modal */
body.dark-mode .modal {
    background-color: #1d1d1d !important;
    color: #e0e0e0 !important;
    border: 1px solid #444444 !important;
}

body.dark-mode .modal-header {
    background-color: #222222 !important;
    color: #ffffff !important;
    border-bottom: 1px solid #444444 !important;
}

body.dark-mode .modal-footer {
    background-color: #222222 !important;
    border-top: 1px solid #444444 !important;
}

body.dark-mode .modal-body {
    background-color: #1d1d1d !important;
    color: #e0e0e0 !important;
}

/* Button in Modal */
body.dark-mode .modal .btn {
    background-color: #333333 !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
}

body.dark-mode .modal .btn:hover {
    background-color: #444444 !important;
    border-color: #555555 !important;
}

/* Dropdown Menu */
body.dark-mode .dropdown-menu {
    background-color: #222222 !important;
    border: 1px solid #444444 !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

/* Dropdown Menu Item */
body.dark-mode .dropdown-menu .dropdown-item {
    color: #e0e0e0 !important;
    background-color: transparent !important;
    border: none !important;
}

/* Dropdown Menu Item Hover */
body.dark-mode .dropdown-menu .dropdown-item:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* Dropdown Divider */
body.dark-mode .dropdown-divider {
    border-top: 1px solid #444444 !important;
}

/* Username Styling */
body.dark-mode .m-0.fw-semibold.text-dark {
    color: #ffffff !important;
}

/* Dropdown Menu Item Active */
body.dark-mode .dropdown-menu .dropdown-item.active,
body.dark-mode .dropdown-menu .dropdown-item:focus {
    background-color: #1d1d1d !important;
    color: #ffffff !important;
}

/* Table */
body.dark-mode .table thead {
    background-color: #333333;
}

body.dark-mode .table tbody tr {
    border-bottom: 1px solid #444444;
}

body.dark-mode .table tbody tr:nth-child(even) {
    background-color: #2a2a2a;
}

body.dark-mode .table tbody tr:nth-child(odd) {
    background-color: #1e1e1e;
}

body.dark-mode .table th,
body.dark-mode .table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #555555;
}

body.dark-mode .table th {
    border-bottom: 2px solid #555555;
}

/* Account Card */
body.dark-mode .account-card {
    background-color: #1d1d1d !important;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
}

/* Account Header */
body.dark-mode .account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444444;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

body.dark-mode .account-header h2 {
    font-size: 20px;
    color: #e0e0e0;
}

/* Account Info */
body.dark-mode .account-info h2 {
    font-size: 16px;
    color: #e0e0e0;
}

body.dark-mode .account-info .sub-text {
    font-weight: bold;
    color: #bbb;
}

body.dark-mode .account-info .text {
    font-size: 14px;
    color: #aaa;
}

body.dark-mode .account-info .non-check {
    color: #ff4d4d;
}

/* Account Transactions */
body.dark-mode .account-transactions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 10px;
}

body.dark-mode .transaction {
    background-color: #333333;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

body.dark-mode .transaction h2 {
    font-size: 18px;
    color: #e0e0e0;
}

body.dark-mode .transaction .text {
    font-size: 14px;
    color: #aaa;
}

/* Account Wallet */
body.dark-mode .account-wallet {
    background-color: #141212 !important;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

body.dark-mode .wallet-total {
    font-size: 22px;
    color: #e0e0e0;
    margin-bottom: 15px;
}

body.dark-mode .wallet_mb {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Account Coin */
body.dark-mode .account-coin {
    margin-top: 20px;
    background-color: #333333;
    padding: 20px;
    border-radius: 10px;
}

body.dark-mode .rank {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

body.dark-mode .rank h2 {
    font-size: 18px;
    color: #e0e0e0;
}

body.dark-mode .rank .sub-text {
    font-weight: bold;
    color: #bbb;
}

body.dark-mode .coin_mb {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .coin {
    font-size: 22px;
    color: #e0e0e0;
}

body.dark-mode .rank-level {
    display: flex;
    align-items: center;
}

body.dark-mode .rank-level img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

/* Media Queries for Smaller Screens */
@media (max-width: 767px) {
    body.dark-mode .account-boxes {
        grid-template-columns: 1fr;
    }

    body.dark-mode .transaction {
        font-size: 14px;
    }

    body.dark-mode .account-header h2 {
        font-size: 18px;
    }

    body.dark-mode .account-info h2 {
        font-size: 14px;
    }

    body.dark-mode .wallet-total {
        font-size: 18px;
    }

    body.dark-mode .rank h2 {
        font-size: 16px;
    }
}