/* สำหรับ Input โดยรวมทั้งหมด */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
    font-size: 16px !important;
}

#uid_player {
    font-size: 16px !important;
}

.form-control-lg {
    font-size: 16px !important;
}

/* ====================================================== */
/* CSS สำหรับ GTranslate Widget โดยเฉพาะ                   */
/* ====================================================== */
.gtranslate_wrapper .gt_float_switcher {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    color: #ccc;
    box-shadow: none;
    border: solid 1px #ececec;
    border-radius: 12px;
    /* Border radius ที่คุณกำหนด */
    padding: 1px 2px;
}


.gtranslate_wrapper .gt_float_switcher>div:first-child {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.gtranslate_wrapper .gt_float_switcher img {
    width: 16px;
    height: auto;
    margin-right: 4px;
    /* ระยะห่างระหว่างธงกับข้อความ */
    vertical-align: middle;
    /* ช่วยจัดแนวธง */
}

.gtranslate_wrapper .gt_float_switcher .gt-lang-code {
    font-size: 13px;
    text-transform: uppercase;
}

.gtranslate_wrapper .gt_float_switcher .gt_float_switcher_arrow {
    border: solid #e7e7e7;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 0px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    flex-shrink: 0;
}

.gtranslate_wrapper .gt_float_switcher .gt_float_switcher_arrow.gt_arrow_rotate {
    transform: rotate(-135deg);
    /* ลูกศรชี้ขึ้นเมื่อเปิด dropdown */
    -webkit-transform: rotate(-135deg);
    margin-top: 3px;
}


.gtranslate_wrapper .gt_options {
    position: absolute !important;
    z-index: 1001 !important;
    top: 100% !important;
    background-color: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 5px !important;
    min-width: 180px;
    /* กำหนดความกว้างขั้นต่ำ (ปรับตามรูป) */
    padding: 2px 0 !important;
    /* padding ภายใน dropdown */
    list-style: none;
    /* ลบ bullet point หากเป็น ul (แม้ว่าจะเป็น div แต่เผื่อไว้) */
    max-height: 300px;
    /* จำกัดความสูงถ้ามีภาษาเยอะๆ */
    overflow-y: auto;
    /* ทำให้มี scrollbar ถ้าเนื้อหาเกิน max-height */
    display: none;
}

/* Styles สำหรับแต่ละรายการภาษาใน dropdown (a tag) */
.gtranslate_wrapper .gt_options a {
    display: flex !important;
    align-items: center !important;
    padding: 8px 15px !important;
    text-decoration: none !important;
    color: #36373f !important;
    font-size: 12.5px;
    font-weight: 400;
    white-space: nowrap !important;
}

.gtranslate_wrapper .gt_options a img {
    width: 16px !important;
    /* ขนาดธงใน dropdown */
    height: auto !important;
    margin-right: 10px !important;
    /* ระยะห่างระหว่างธงกับข้อความ */
    vertical-align: middle !important;
}

.gtranslate_wrapper .gt_options a:hover {
    background-color: #64cf8d !important;
    /* สีเมื่อเมาส์ชี้ */
    color: #fff !important;
}


.short-vertical-line {
    width: 1px;
    height: 20px;
    background-color: #ececec83;
    align-self: center;
    margin-right: 1rem;
}

/* ถ้าต้องการให้ซ่อนบนหน้าจอเล็กกว่า sm (ตาม d-none d-sm-block) */
@media (max-width: 575.98px) {
    .short-vertical-line {
        display: none !important;
    }
}

.short-vertical-line-phone {
    width: 1px;
    height: 20px;
    background-color: #ececec;
    align-self: center;
    margin-right: 1rem;
}

/* ถ้าต้องการให้ซ่อนบนหน้าจอเล็กกว่า sm (ตาม d-none d-sm-block) */
@media (min-width: 575.98px) {
    .short-vertical-line-phone {
        display: none !important;
    }
}




.btn_mainweb {
    color: #fff;
    background: rgb(65, 78, 151);
    background: linear-gradient(165deg, #6FD97C 8%, var(--sub) 100%);
    border: solid 1px var(--sub);
    border-radius: 10px;

}

.btn_mainweb:hover {
    color: #fff;
    background: rgb(65, 78, 151);
    background: linear-gradient(165deg, var(--main) 8%, #6FD97C 100%);
    border: solid 1px var(--sub);
    border-radius: 10px;

}




.ui.menu {
    display: flex;
    font-size: 14px;
}

/* Styles for individual menu items */
.ui.menu .item {
   /*  padding: 10px 15px; */
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ui.menu .item:hover {
    color: var(--sub);
}

/* Dropdown specific styles (these will be overridden for mobile) */
.ui.pointing.dropdown.link.item {
    position: relative;
}

.ui.pointing.dropdown.link.item>.menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0d0e11e1;
    backdrop-filter: blur(20px);
    border: 1px solid #1e1f24;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    padding: 10px 0;
}

/* Show dropdown menu on hover */
.ui.pointing.dropdown.link.item:hover>.menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown menu items */
.ui.pointing.dropdown.link.item>.menu .item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 15px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 0;
}

.ui.pointing.dropdown.link.item>.menu .item:hover {
    background-color: var(--main);
    color: var(--sub);
}

/* Header styles within dropdowns */
.ui.menu .header {
    color: var(--main);
    padding: 2px 15px 5px;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
}

/* Divider style  */
.ui.menu .divider {
    border-top: none;
    height: 1px;
    width: 80%;
    margin: 5px auto;
    background-size: 20px 1px;
    background-repeat: repeat-x;
}
/* Icon styling */
.ui.menu .dropdown.icon {
    margin-left: 5px;
    font-size: 0.8em;
    color: #999999;
    transition: transform 0.3s ease;
}

/* Rotate icon on dropdown hover */
.ui.pointing.dropdown.link.item:hover .dropdown.icon {
    transform: rotate(180deg);
}

/* Nested dropdowns (for "Clothing" -> "Mens") */
.ui.pointing.dropdown.link.item>.menu .item .menu {
        position: absolute;
        left: 100%;
        top: 0;
        background-color: #13151A;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        min-width: 150px;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
        transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
        padding: 10px 0;
        margin-left: 5px;

        backdrop-filter: blur(10px) saturate(120%);
        -webkit-backdrop-filter: blur(10px) saturate(120%);
        will-change: backdrop-filter, transform, opacity;
}


/* Show nested dropdown on hover */
.ui.pointing.dropdown.link.item>.menu .item:hover>.menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
/* --- Media Query to hide dropdown on mobile --- */
@media (max-width: 768px) {
    #desktop-menu {
        display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
    }
}

.list-group-item {
    background-color: #0d0f1125 !important;
    border-bottom: none !important;
}
.list-group-item:hover {
    border-left: solid 3px var(--main) !important;
}


.list-group-item h6 {
    color: #fff;
    font-size: 15px;
}
.list-group-item small {
    font-size: 11px;
    color: var(--main)
}





.badge_vezign{
    background-color: #a5a9b3;
    border-radius: 8px;
    font-weight: 300;
    font-size: 10px;
    color:#fff;
    padding: 1px 5px;
}


.card-custom {
    border: none;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border-radius: 12px;
}
/* การแสดงข้อความ ของบรรทัด */
.text-truncate-one-lines {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}
.text-truncate-two-lines {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}







.btn-edit-backend{
    background-color: #ecb223;
    border: none;
    padding: 0.65rem;
    border-radius: 14px;
}



/* แถบนำทางครับ */
.fixed-bottom {
    border-radius: 18px 18px 0 0;
    background: rgb(0, 147, 255);
    background: linear-gradient(6deg, var(--main) 2%, var(--sub) 100%);
    border: none;
    /* เส้นขอบด้านบน */
    box-shadow: rgba(20, 40, 70, 0.2) 0px 7px 29px 0px;
}

.fixed-bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #495057;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.fixed-bottom a:hover,
.fixed-bottom a:focus {
    transform: scale(1.2);
}

.fixed-bottom a.active {
    color: #ffffff;
    /* สีข้อความเมื่อเลือก */
}

/* แสดงผลบน iPad (ขนาดหน้าจอ 768px ขึ้นไป) */
@media (min-width: 768px) {
    .fixed-bottom {
        display: flex;
        justify-content: center;
        /* จัดให้อยู่ตรงกลาง */
    }

    .fixed-bottom .container {
        width: 768px;
        /* กำหนดความกว้างของคอนเทนเนอร์ */
    }
}



#table_filter input[type="search"] {
		border-radius: 13px;
		border: solid 1px #373a42;
	 	 color: #fff ;/* แทนที่ #ของคุณต้องการ ด้วยรหัสสีที่คุณต้องการ */
		padding: 0.5rem;
		font-size:12px;
	}






.dis-x2 {
    font-size: 11px;
    border-radius: 0 0 8px 8px ;
    background-color: #ffffff;
}



.input-seacher {
    background-color: #15161a;
    border: solid 1px #181a1f;
    color: var(--main);
}
.input-seacher:hover {
    border-bottom: solid 1px var(--main);
}
.input-seacher:focus {
    border-bottom: solid 1px var(--main);
}



@keyframes lightningPulse {
    0% {
        color: var(--sub);
    }

    10% {
        color: #59d0ff;
    }

    20% {
        color: var(--sub);
    }

    100% {
        color: var(--sub);
    }
}

.lightning-effect {
    animation: lightningPulse 2s infinite alternate ease-in-out;
}


@keyframes svgFlash {

    0%,
    100% {
        stroke: var(--sub);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        stroke: #fff8da;
        filter: drop-shadow(0 0 5px #ffeabe);
    }

    20%,
    40%,
    60%,
    80% {
        stroke: var(--sub);
        filter: drop-shadow(0 0 2px var(--sub));
    }

}

.lightning-effect svg path {
    animation: svgFlash 1s infinite steps(1);
}





/* ====================================================== */
/* CSS สำหรับ BACKEND                   */
/* ====================================================== */
.blinking-status-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
}

.blinking-light-overlay {
    /* position: absolute;  <-- Remove this if you previously added it for another layout */
    /* top: 5px;            <-- Remove this */
    /* right: 5px;          <-- Remove this */
    width: 10px;
    /* Adjust size as needed */
    height: 10px;
    /* Adjust size as needed */
    background-color: green;
    border-radius: 50%;
    border: solid 2px #6aff5a;
    animation: blink 1s infinite;
    box-shadow: rgba(106, 255, 90, 0.56) 0px 22px 70px 4px;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}




.pp-chip {
    background-color: #1a1d24c5;
    border: none;
    color:#fff;
    border-radius: 10px;
    padding: 1rem;
}
.pp-chip:hover{
    background-color: var(--main);
}



/* BACKEND STYLE */
.card-style-backend {
    background-color: #fff;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
        border-radius: 2vh;
}
.card-popup-user {
    background-color: #131418;
    border-radius: 2vh;
}

.btn-backend {
    background-color: #75d48a;
    color:#fff;
    border-radius: 14px;
    padding: 1rem;
    border: none;
}
.btn-backend:hover {
    background-color: #418550;
    
}









/* Backend NEW DARK */

.card-end{
    background-color: #0d0f13e8;
    border: solid 1px #161a20;
    border-radius: 16px;
}
.btn-end {
    background-color: #171a1fe8;
    border: solid 1px #1c2025;
    border-radius: 6px;
}
.btnmain-end {
    background-color: var(--main);
    border-radius: 6px;
    border: none;
}
.text-header-end {
    color: var(--main);
    font-size: 22px;
    font-weight: 500;
}
.text-dec-end {
    color:#9799a7;
    font-size: 14px;
    font-weight: 400;
}
.input-end {
    font-size: 10px;
    padding: 1rem;
    color:#c2c6d0;
    border-radius: 12px;
    background-color: #13151A;
    border: solid 1px #1E2430;
}
form-control {
    font-size: 10px;
        border-radius: 0px;
        background-color: #13151A;
        border: solid 1px #1E2430;
}

.btn-dashbord {
    color:#d14040;
    background-color: #130808;
        border: none;
        padding: 1rem;
        border-radius: 16px;
}






.bg-from {
    background-color: #fff;
    padding: 0.8rem;
    margin-top: 0.5rem;
    border-radius: 1vh;
    border: solid 1px #f5f5f5;
    color: #cecece;
}

.password-input-container {
    position: relative;
    display: flex;
    /* Ensures input fills space and button is positioned correctly */
    align-items: center;
    /* Vertically aligns icon */
}

.password-input-container .form-control {
    padding-right: 40px;
    flex-grow: 1;
}

.password-input-container .toggle-password-btn {
    position: absolute;
    right: 15px;
    /* Adjust as needed for spacing from the right edge */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    color: var(--sub);
    /* Bootstrap secondary color for consistency */
    font-size: 12.5px;
    /* Adjust icon size */
}

.password-input-container .toggle-password-btn:focus {
    outline: none;
    /* Remove focus outline if desired */
    box-shadow: none;
    /* Remove focus shadow if desired */
}









/* PAYMENT BACKEND */
.text-pay {
    font-size: 12px;
    line-height: 2.5em;
}


.switch {
    /* switch */
    --switch-width: 46px;
    --switch-height: 24px;
    --switch-bg: rgb(131, 131, 131);
    --switch-checked-bg: rgb(0, 218, 80);
    --switch-offset: calc((var(--switch-height) - var(--circle-diameter)) / 2);
    --switch-transition: all .2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
    /* circle */
    --circle-diameter: 18px;
    --circle-bg: #fff;
    --circle-shadow: 1px 1px 2px rgba(146, 146, 146, 0.45);
    --circle-checked-shadow: -1px 1px 2px rgba(163, 163, 163, 0.45);
    --circle-transition: var(--switch-transition);
    /* icon */
    --icon-transition: all .2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
    --icon-cross-color: var(--switch-bg);
    --icon-cross-size: 6px;
    --icon-checkmark-color: var(--switch-checked-bg);
    --icon-checkmark-size: 10px;
    /* effect line */
    --effect-width: calc(var(--circle-diameter) / 2);
    --effect-height: calc(var(--effect-width) / 2 - 1px);
    --effect-bg: var(--circle-bg);
    --effect-border-radius: 1px;
    --effect-transition: all .2s ease-in-out;
}

.switch input {
    display: none;
}

.switch {
    display: inline-block;
}

.switch svg {
    -webkit-transition: var(--icon-transition);
    -o-transition: var(--icon-transition);
    transition: var(--icon-transition);
    position: absolute;
    height: auto;
}

.switch .checkmark {
    width: var(--icon-checkmark-size);
    color: var(--icon-checkmark-color);
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
}

.switch .cross {
    width: var(--icon-cross-size);
    color: var(--icon-cross-color);
}

.slider {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: var(--switch-width);
    height: var(--switch-height);
    background: var(--switch-bg);
    border-radius: 999px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    -webkit-transition: var(--switch-transition);
    -o-transition: var(--switch-transition);
    transition: var(--switch-transition);
    cursor: pointer;
}

.circle-switch {
    width: var(--circle-diameter);
    height: var(--circle-diameter);
    background: var(--circle-bg);
    border-radius: inherit;
    -webkit-box-shadow: var(--circle-shadow);
    box-shadow: var(--circle-shadow);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: var(--circle-transition);
    -o-transition: var(--circle-transition);
    transition: var(--circle-transition);
    z-index: 1;
    position: absolute;
    left: var(--switch-offset);
}

.slider::before {
    content: "";
    position: absolute;
    width: var(--effect-width);
    height: var(--effect-height);
    left: calc(var(--switch-offset) + (var(--effect-width) / 1));
    background: var(--effect-bg);
    border-radius: var(--effect-border-radius);
    -webkit-transition: var(--effect-transition);
    -o-transition: var(--effect-transition);
    transition: var(--effect-transition);
}

/* actions */

.switch input:checked+.slider {
    background: var(--switch-checked-bg);
}

.switch input:checked+.slider .checkmark {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.switch input:checked+.slider .cross {
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
}

.switch input:checked+.slider::before {
    left: calc(100% - var(--effect-width) - (var(--effect-width) / 2) - var(--switch-offset));
}

.switch input:checked+.slider .circle {
    left: calc(100% - var(--circle-diameter) - var(--switch-offset));
    -webkit-box-shadow: var(--circle-checked-shadow);
    box-shadow: var(--circle-checked-shadow);
}





#loading-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #f1f1f1;
    z-index: 9999;
    overflow: hidden;
}

#loading-bar {
    height: 100%;
    width: 0;
    background-color: var(--sub);
    transition: width 0.4s ease-in-out;
    /* เอา opacity ออก */
}

.loaded #loading-bar-container {
    opacity: 0;
    transition: opacity 0.5s ease;
}







.quill-content-wrapper {
    /* Optional: Add some basic padding if needed */
    padding: 10px;
}

/* Headings (h1-h6) */
.quill-content-wrapper h1 {
    font-size: 2em !important;
}

.quill-content-wrapper h2 {
    font-size: 1.5em !important;
}

.quill-content-wrapper h3 {
    font-size: 1.17em !important;
}

.quill-content-wrapper h4 {
    font-size: 1em !important;
}

.quill-content-wrapper h5 {
    font-size: 0.83em !important;
}

.quill-content-wrapper h6 {
    font-size: 0.67em !important;
}


/* Text Formatting */
.quill-content-wrapper strong {
    font-weight: bold !important;
}

.quill-content-wrapper em {
    font-style: italic !important;
}

.quill-content-wrapper u {
    text-decoration: underline !important;
}

.quill-content-wrapper s {
    text-decoration: line-through !important;
}

/* Background & Text Colors */
.quill-content-wrapper span[style*="background-color"] {
    display: inline;
}

/* Blockquote */
.quill-content-wrapper blockquote {
    border-left: 4px solid #ccc !important;
    margin-bottom: 5px !important;
    margin-top: 5px !important;
    padding-left: 16px !important;
    font-style: italic !important;
    color: #555 !important;
}

/* Text Alignment */
.quill-content-wrapper .ql-align-center {
    text-align: center !important;
}

.quill-content-wrapper .ql-align-right {
    text-align: right !important;
}

.quill-content-wrapper .ql-align-justify {
    text-align: justify !important;
}

/* Lists and Indentations */
.quill-content-wrapper ol,
.quill-content-wrapper ul {
    list-style-position: inside !important;
    padding-left: 0 !important;
}

/* This is the key for the indent problem */
.quill-content-wrapper .ql-indent-1 {
    padding-left: 3em !important;
}

.quill-content-wrapper .ql-indent-2 {
    padding-left: 6em !important;
}

.quill-content-wrapper .ql-indent-3 {
    padding-left: 9em !important;
}

/* Line Spacing */
.quill-content-wrapper p,
.quill-content-wrapper li {
    margin-bottom: 0.5em;
    /* You can adjust this to your preference */
}

/* Code Blocks */
.quill-content-wrapper pre.ql-syntax {
    background-color: #f0f0f0 !important;
    border-radius: 3px !important;
    padding: 1em !important;
    font-family: monospace !important;
    white-space: pre-wrap !important;
}

/* Links */
.quill-content-wrapper a {
    color: #007bff;
    /* You can change this color */
    text-decoration: underline;
}
.ql-editor .font-size-12 {
    font-size: 12px;
}

.ql-editor .font-size-14 {
    font-size: 14px;
}

.ql-editor .font-size-16 {
    font-size: 16px;
}

.ql-editor .font-size-18 {
    font-size: 18px;
}

.ql-editor .font-size-20 {
    font-size: 20px;
}

.ql-editor .font-size-22 {
    font-size: 22px;
}