/*---------- เพิ่มฟอนต์ Sarabun ----------*/

@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
html,
body,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Sarabun !important;
}

h5,
.h5 {
    font-size: 18px !important;
}

.boxmain {
    font-size: 14px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.6s ease forwards;
    animation-delay: 0.2s;
    /* หน่วง */
}


/*---------- พื้นหลังหน้า Login ----------*/

.pages_login {
    background-image: url('../img/system/BG-Nongmuang-school.jpg');
    background-size: cover;
    background-position: bottom;
}

.pages_login::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #28243d;
    /*background: -webkit-linear-gradient(bottom, #005bea, #00c6fb);
  background: -o-linear-gradient(bottom, #005bea, #00c6fb);
  background: -moz-linear-gradient(bottom, #005bea, #00c6fb);
  background: linear-gradient(bottom, #005bea, #00c6fb);*/
    opacity: 0.9;
}

.authentication-wrapper .authentication-image {
    opacity: 0.9;
}


/*---------- เมนูซ้าย ----------*/

.bg-menu-theme {
    background-color: #28243d !important;
    color: #ffffff;
}

.bg-menu-theme .menu-inner-shadow {
    background: linear-gradient(rgb(40 36 61) 5%, rgba(40, 36, 61, 0.75) 45%, rgba(40, 36, 61, 0.2) 80%, transparent);
}

.bg-menu-theme .menu-link,
.bg-menu-theme .menu-horizontal-prev,
.bg-menu-theme .menu-horizontal-next {
    color: #ffffff;
}

.layout-wrapper:not(.layout-horizontal) .bg-menu-theme .menu-inner>.menu-item.active:before {
    content: "";
    position: absolute;
    right: 0;
    width: 0.25rem;
    height: 2.6845rem;
    border-radius: 0.375rem 0 0 0.375rem;
}

.bg-menu-theme .menu-inner>.menu-item.active:before {
    background: #696cff;
}

.app-brand {
    height: 60px;
    padding: 0px !important;
}

.bg-menu-theme .menu-inner>.menu-item.active>.menu-link {
    color: #FFFFFF;
    background-image: linear-gradient(98deg, #C6A7FE, #9155FD 94%);
}

.bg-menu-theme .menu-sub>.menu-item.active>.menu-link:not(.menu-toggle) {
    background: rgba(67, 89, 113, 0.5);
}

.menu-vertical .menu-item .menu-link {
    font-size: 14px;
}

.layout-wrapper:not(.layout-horizontal) .menu-vertical .menu-inner>.menu-item>.menu-sub>.menu-item>.menu-link::before {
    content: "";
    height: 6px;
    width: 6px;
    border-radius: 50rem;
    position: absolute;
    left: 29px;
    top: 18px;
    background-color: #ffffff !important;
}

.layout-wrapper:not(.layout-horizontal) .menu-vertical .menu-inner>.menu-item>.menu-sub>.menu-item.active>.menu-link::before {
    height: 14px;
    width: 14px;
    left: 25px;
    top: 14px;
    background-color: #696cff !important;
    border: 3px solid #e7e7ff !important;
}

.light-style .menu-vertical .menu-item .menu-link:hover {
    background-color: rgb(54 63 87);
}

.bg-menu-theme .menu-link:hover,
.bg-menu-theme .menu-link:focus,
.bg-menu-theme .menu-horizontal-prev:hover,
.bg-menu-theme .menu-horizontal-prev:focus,
.bg-menu-theme .menu-horizontal-next:hover,
.bg-menu-theme .menu-horizontal-next:focus {
    color: #ffffff;
}

.menu-toggle::after {
    font-size: 20px;
    color: #ffffff;
}

.layout-navbar {
    backdrop-filter: unset;
}

ul.menu-sub li.menu-header {
    margin: unset;
    padding: 0.625rem 2rem 0.625rem 2rem;
}

.bg-menu-theme .menu-header:before {
    background-color: #a1acb8 !important;
}

.bg-menu-theme .menu-header:before {
    content: "";
    position: absolute;
    left: 0;
    margin-top: 10px;
    width: 25px;
    height: 1px;
    transition: all 0.3s ease-in-out;
}


/*---------- รูปโปรไฟล์ ----------*/

.avatar_profile {
    width: 40px;
    height: 40px;
    object-fit: cover;
    background: #eee;
    object-position: center 0%;
}

.rounded-circle {
    border: solid 2px #fff;
    box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 1px 5px 0 rgb(0 0 0 / 12%), 0 3px 1px -2px rgb(0 0 0 / 20%);
}

.nav-name {
    padding: 10px 15px;
    border-radius: 20px;
    color: #FFFFFF;
    background-image: linear-gradient(98deg, #C6A7FE, #9155FD 94%);
}


/*---------- พื้นหลัง ----------*/

.layout-container {
    background-image: url('../img/illustrations/misc-mask-light.png');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: contain;
}


/*---------- แสดงชื่อเพจ ----------*/

div.box_topicpage button {
    height: 38px;
}

.topic_page {
    color: #2255a4 !important;
    font-size: 20px;
    font-weight: 700 !important;
    margin: 0 0 2px 0;
}

.topic_page p.textsub {
    font-size: 14px;
    color: #697a8d !important;
    margin-bottom: 0px;
}


/*---------- ไอคอน ----------*/

.mdi:before,
.mdi-set {
    font-size: unset;
}

.menu-icon {
    font-size: 1.25rem;
}

.drag-ghost {
    opacity: 0.5;
}

.drag-handle i {
    font-size: 18px;
    color: #999;
}

.select2-container--default .select2-selection--single {
    width: 100%;
    padding: 0.4375rem 1.875rem 0.4375rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #544f5a;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 9px 5px;
    border: 1px solid #d4d3d5 !important;
    border-radius: 0.375rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: calc(2.940725rem + 2px) !important;
    min-height: calc(2.940725rem + 2px);
    line-height: 1.47;
    padding-top: 0.7813rem;
    padding-bottom: 0.7813rem;
}

span.select2-container--open span.select2-container--default .select2-selection--single {
    border: 1px solid #9055fd !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 25% !important;
    right: 9px !important;
}


/*
.select2-container {
  z-index: 1091;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border: solid #9055fd 1px !important;
  border-width: 2px !important;
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid #d4d3d5 !important;
  height: 38.05px;
}

.select2-container--default .select2-selection--multiple:hover:not([focus]) {
  border: 1px solid #b4b2b7 !important;
}

.select2-container--default .select2-selection--multiple {
  height: auto;
}
*/

div:where(.swal2-container) {
    z-index: 1092 !important;
}


/*---------- dataTable ----------*/

.dataTables_length,
.dataTables_filter,
.dataTables_info,
.dataTables_paginate {
    padding: 10px;
}

.paginate_button {
    border-radius: 26px !important;
}


/*---------- Tap ----------*/

li.nav-item button.active {
    border-bottom: solid #9055fd !important;
}


/* Header */

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f1f1f1;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    border-radius: 18px 18px 0 0;
}

.device-name {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-name i {
    font-size: 18px;
    color: #4e73df;
}


/* badge */

div.device-name>.badge.bg-success {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 50px;
}


/* row ข้อมูล */

.device-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px dashed #f0f0f0;
}

.device-row:last-child {
    border-bottom: none;
}

.device-row .label {
    color: #6c757d;
    font-weight: 500;
}

.device-row .value {
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}


/* footer */

.device-footer {
    padding: 15px 20px;
    border-top: 1px solid #f1f1f1;
    text-align: right;
}


/* ปุ่ม */

.logout-device {
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.logout-device:hover {
    transform: scale(1.05);
}


/*-------------------- อัพโหลดรูปภาพแบบเอาเมาส์ชี้ --------------------*/

.avatar-upload {
    position: relative;
    cursor: pointer;
}

.avatar-upload img {
    border-radius: 8px;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 14px;
    opacity: 0;
    transition: 0.2s;
    border-radius: 8px;
    pointer-events: none;
}

.avatar-upload:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay span {
    display: block;
}

.delete span {
    color: #ffb3b3;
    font-size: 12px;
    margin-top: 4px;
}


/*-------------------- สีปุ่มชุด2 --------------------*/

.bg-secondary2 {
    background-color: #737373 !important;
}

.btn-success2 {
    color: #fff;
    background-color: #10b981;
    border-color: #10b981;
}

.btn-success2:hover {
    color: #fff !important;
    background-color: #059669 !important;
    border-color: #059669 !important;
}

.btn-danger2 {
    color: #fff;
    background-color: rgb(239 68 68);
    border-color: rgb(239 68 68);
}

.btn-danger2:hover {
    color: #fff !important;
    background-color: rgb(220 38 38) !important;
    border-color: rgb(220 38 38) !important;
}

.btn-secondary2 {
    color: #fff;
    background-color: #737373;
    border-color: oklch(55.6% 0 0);
}

.btn-secondary2:hover {
    color: #fff !important;
    background-color: oklch(43.9% 0 0) !important;
    border-color: oklch(43.9% 0 0) !important;
}

.btn-warning2 {
    color: #fff;
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.btn-warning2:hover {
    color: #fff !important;
    background-color: oklch(76.9% 0.188 70.08) !important;
    border-color: oklch(76.9% 0.188 70.08) !important;
}

.btn-info2 {
    color: #fff;
    background-color: #2255a4;
    border-color: #2255a4;
}

.card2 {
    box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
    background-color: #fff;
    border: 0 solid #d9dee3;
    border-radius: 0.5rem;
    z-index: 1;
    position: relative;
}


/*-------------------- เช็กชื่อนักเรียน --------------------*/

.card-student {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-student:hover {
    transform: translateY(-4px);
}

.card-student>.card {
    border: 2px solid;
    border-color: #ffffff;
    border-radius: 13px;
    min-height: 140px;
}

.card-student .number {
    position: absolute;
    top: -10px;
    left: -11px;
    display: grid;
    background-color: #3a3541;
    color: #ffffff;
    font-size: 12px;
    border-radius: 50px;
    font-weight: 500;
    width: 25px;
    height: 25px;
    justify-content: center;
    align-content: center;
    z-index: 1;
}

.card-student>.card.status-present {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border-color: #10b981;
}

.card-student>.card.status-absent {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%) !important;
    border-color: #ef4444;
}

.card-student>.card.status-leave {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-color: #f59e0b;
}

.card-student>.card.status-activity {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-color: #3b82f6;
}

.summary-bar {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 10px;
}

.summary-item {
    background-color: rgb(255 255 255 / 10%);
    transition: all 0.3s ease;
    border-radius: 50px;
}

.summary-item:hover {
    transform: scale(1.05);
}

.summary-item .round-dot,
.round-dot {
    width: 12px;
    height: 12px;
    border-radius: 20px;
}

.progress-summary {
    background: #C084FC;
    background: linear-gradient(90deg, rgba(192, 132, 252, 1) 0%, rgba(96, 165, 250, 1) 50%, rgba(52, 211, 153, 1) 100%);
    border-color: transparent !important;
}


/*---------- card-count ----------*/

.card-count {
    position: relative;
    overflow: hidden;
    padding: 20px 15px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    border: none;
    transition: transform 0.3s;
    color: #FFF;
}

.card-icon {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    z-index: 2;
}

.card-icon i {
    font-size: 24px;
}

.card-info h3,
.card-info h4 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gradient1 {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.gradient2 {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.gradient3 {
    background: linear-gradient(135deg, #f59e0b 0%, #c2410c 100%);
}

.gradient4 {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.gradient5 {
    background: rgb(95, 125, 185);
    background: linear-gradient(130deg, rgb(255 102 102) 0%, rgb(104 0 0) 100%);
}

.text-info2 {
    color: #2255a4 !important;
}

.box_btnfixed {
    position: fixed;
    z-index: 999;
    bottom: 10px;
    right: 10px;
}

.date-box {
    width: 58px;
    min-width: 58px;
    border-radius: 14px;
    background: #f8f9fc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 6px 0;
}

.date-day {
    font-size: 20px;
    font-weight: 700;
    color: #4e73df;
    line-height: 1;
}

.date-month {
    font-size: 12px;
    color: #858796;
}


/*--- box_service ---*/

.box_service div.body_service {
    padding: 0px;
    margin-top: 0px;
}

.box_service img.icons {
    width: 40px;
    margin-right: 8px;
}

.box_service h6 {
    font-size: 14px;
}


/*---------- เมนูแท็บหน้าหลัก ----------*/

div.btnTapmain {
    position: fixed;
    width: 100%;
    height: 85px;
    bottom: -1px;
    right: 0px;
    z-index: 999;
    /* background-color: #FFF; */
    background-image: url('../img/main/bg-menu.png');
    /* box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; */
}

div.btnTapmain .tab-slider {
    display: none;
}

div.tab-pane:not(.active) {
    height: 0px;
    overflow: hidden;
}

div.tab-pane:is(.active) {
    display: unset;
    overflow: hidden;
    animation: fadeInDown 1.5s;
}

div.main_index .nav-link.active {
    background-color: unset !important;
}

div.btnTapmain button.nav-link {
    display: block;
}

div.btnTapmain li.nav-item {
    padding-top: 18px;
}

div.btnTapmain .nav-tabs {
    border-bottom: unset;
    height: 100%;
}

.nav-tabs .nav-item .nav-link2:not(.active) {
    background-color: unset;
}

div.btnTapmain .nav-tabs .nav-item {
    margin-bottom: unset;
    width: 20%;
}

div.btnTapmain button.nav-link img.icon {
    width: 22px;
    /*filter: grayscale(100%);*/
}

div.btnTapmain button.nav-link.active img.icon {
    width: 25px;
    filter: unset;
}

div.btnTapmain button.nav-link .text {
    margin-top: -15px;
    font-size: 10px;
    color: #4b5563 !important;
}

div.btnTapmain button.nav-link.active .text {
    color: #6b21a8 !important;
}

div.btnTapmain button.nav-link.active {
    font-weight: bold;
    background: linear-gradient(180deg, rgba(87, 199, 133, 0) 20%, rgb(245 199 199 / 43%) 100%);
    border-radius: 50px 50px 0px 0px;
    border-bottom: unset !important;
}

div.btnTapmain button.nav-link.check-in {
    background-color: #4caf50 !important;
    border-radius: 100px;
    border: 3px #fff solid;
    position: absolute;
    top: 0;
    width: 80px !important;
    height: 80px;
    font-size: large;
    display: grid;
}

div.btnTapmain button.nav-link.check-in img.icon {
    filter: unset;
    width: 35px;
}

div.btnTapmain button.nav-link.check-in .text {
    color: #FFF !important;
    font-size: 10px;
}


/*------------------------------ student_promotion.html ------------------------------*/

.card-promotion {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    height: auto;
    padding: 15px
}


/*------------------------------ ตาราง ------------------------------*/

thead th {
    position: sticky;
    top: 0;
    background: #fff;
    /* สำคัญ ไม่งั้นจะโปร่ง */
    z-index: 2;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
}

thead.table-hover2>tr {
    background-color: #10b981;
}


/*-- หมนุข้อความ --*/

th span.textAlignVer {
    display: block;
    filter: flipv fliph;
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    transform: rotate(-90deg);
    position: relative;
    white-space: nowrap;
    font-size: 10px;
    width: 70px;
    text-align: left;
    padding-left: 5px;
}

th.sticky-col {
    position: sticky !important;
    left: -60px;
    z-index: 4;
}

td.sticky-col {
    position: sticky !important;
    left: -60px;
    background-color: white !important;
    z-index: 4;
}

.card-promotion .grade {
    border-radius: 60px;
    font-weight: 700;
    padding: 6px 20px;
}

.card-promotion .grade2 {
    border-radius: 60px;
    font-weight: 700;
    padding: 6px 20px;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
}

.card-promotion .grade3 {
    border-radius: 60px;
    font-weight: 700;
    padding: 6px 20px;
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #cff8de;
}

.card-promotion .teacher {
    margin-top: 12px;
    padding-top: 12px;
    border-top: solid 1px #e5e7eb;
}

.card-promotion:nth-child(2) div.grade {
    background: #fde2e4;
    color: #7f1d1d;
}


/* ชมพูอ่อน */

.card-promotion:nth-child(3) div.grade {
    background: #fff1cc;
    color: #7c2d12;
}


/* เหลืองอ่อน */

.card-promotion:nth-child(4) div.grade {
    background: #e0f2fe;
    color: #0c4a6e;
}


/* ฟ้าอ่อน */

.card-promotion:nth-child(5) div.grade {
    background: #dcfce7;
    color: #14532d;
}


/* เขียวอ่อน */

.card-promotion:nth-child(6) div.grade {
    background: #ede9fe;
    color: #4c1d95;
}


/* ม่วงอ่อน */

.card-promotion:nth-child(7) div.grade {
    background: #ffe4e6;
    color: #9f1239;
}


/*-------------- รายการชุมนุมนักเรียน -----------------*/

.box_listclub .box_imgTY {
    min-height: 150px;
    display: grid;
    align-content: center;
}

.club_tag {
    position: absolute;
    right: 0px;
    top: 0;
}


/*
.box_imgTY .text1 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: -6px;
    margin-left: 14px;
    color: rgba(67, 89, 113, 0.5);
}

.box_imgTY .text2 {
    text-align: center;
    font-size: 45px;
    font-weight: 700;
    color: rgba(67, 89, 113, 0.5);
    line-height: 1;
}
*/

.box_imgTY .text1 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: -10px;
    margin-left: 70px;
    color: rgba(67, 89, 113, 0.5);
}

.box_imgTY .text2 {
    text-align: center;
    font-size: 80px;
    font-weight: 700;
    color: rgba(67, 89, 113, 0.5);
    line-height: 1;
}

.box_listclub:nth-child(12n+1) .box_imgTY {
    background-color: #FADADD;
}


/* pastel-pink */

.box_listclub:nth-child(12n+2) .box_imgTY {
    background-color: #AEEEEE;
}


/* baby-blue */

.box_listclub:nth-child(12n+3) .box_imgTY {
    background-color: #BDFCC9;
}


/* mint-green */

.box_listclub:nth-child(12n+4) .box_imgTY {
    background-color: #E3E4FA;
}


/* lavender */

.box_listclub:nth-child(12n+5) .box_imgTY {
    background-color: #FFDAB9;
}


/* peach */

.box_listclub:nth-child(12n+6) .box_imgTY {
    background-color: #FFFACD;
}


/* pale-yellow */

.box_listclub:nth-child(12n+7) .box_imgTY {
    background-color: #F08080;
}


/* light-coral */

.box_listclub:nth-child(12n+8) .box_imgTY {
    background-color: #B0E0E6;
}


/* powder-blue */

.box_listclub:nth-child(12n+9) .box_imgTY {
    background-color: #E0B0FF;
}


/* mauve */

.box_listclub:nth-child(12n+10) .box_imgTY {
    background-color: #87CEFA;
}


/* sky-blue */

.box_listclub:nth-child(12n+11) .box_imgTY {
    background-color: #FDD9B5;
}


/* light-apricot */

.box_listclub:nth-child(12n) .box_imgTY {
    background-color: #D8BFD8;
}


/* ชมพูอมแดง */


/*
.btn-action {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-action::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn-action:active::before {
  width: 200px;
  height: 200px;
}

.btn-action.active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}



.pulse-animation {
  animation: pulse 0.5s ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.avatar-ring {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 3px;
}

.status-badge {
  animation: slideIn 0.3s ease-out;
}
*/

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.confetti {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
}


/*-------------------- เพิ่ม/แก้ไข core.css --------------------*/

.form-floating>label {
    z-index: 1090;
}

.was-validated .select2-selection--multiple {
    border-color: var(--bs-form-valid-border-color) !important;
}

.input-group:focus-within .form-select {
    padding: calc(0.5rem - 1px) calc(1.96875rem - 1px) calc(0.5rem - 1px) calc(0.875rem - 1px);
}

.form-select {
    background-clip: padding-box;
    padding: calc(0.5rem - 1px) calc(1.96875rem - 1px) calc(0.5rem - 1px) calc(0.875rem - 1px);
}


/* Responsive */

@media (max-width: 768px) {
    .device-row {
        flex-direction: column;
        gap: 4px;
    }
    .device-row .value {
        text-align: left;
        max-width: 100%;
    }
}


/* 🔹 base effect */

.hover-zoom {
    transition: all 0.25s ease;
}


/* 🔹 zoom */

.hover-zoom:hover {
    transform: scale(1.01);
}


/* 🔹 lift (ลอยขึ้น) */

.hover-lift {
    transition: all 0.25s ease;
    display: inline-block;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* 🔹 combo (ซูม + ลอย) */

.hover-pop {
    transition: all 0.25s ease;
    display: inline-block;
}

.hover-pop:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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