Body { 
    font-family: 'Kanit', sans-serif;
    background-image: url('Korean Mamawarp.png'); 
    background-size: cover; 
    background-attachment: fixed; 
    background-position: center; 
    color: #333; 
    margin: 0; 
    padding: 15px;
}
.container { 
    max-width: 500px; 
    margin: auto; 
    background: rgba(255, 255, 255, 0.55); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px; 
    border-radius: 20px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    border: 2px solid #a52a2a;
}
h2 { text-align: center; color: #a52a2a; margin: 0; text-transform: uppercase; cursor: pointer; user-select: none; -webkit-user-select: none; }
.menu-item { border-bottom: 1px solid #eee; padding: 12px 0; }
.price { color: #d32f2f; font-weight: bold; float: right; }
.section-title { font-weight: bold; margin-top: 10px; display: block; color: #5d4037; font-size: 1.1em; }
.description { font-size: 0.85em; color: #5d4037; display: block; margin-top: 5px; line-height: 1.5; background: rgba(255,255,255,0.5); padding: 5px; border-radius: 5px; }
label { display: block; margin: 12px 0; cursor: pointer; transition: 0.2s; }
input[type="radio"], input[type="checkbox"] { margin-right: 12px; transform: scale(1.3); accent-color: #d32f2f; }
.input-text { width: 100%; padding: 12px; margin-top: 5px; border: 2px solid #ddd; border-radius: 10px; box-sizing: border-box; }
.stepper-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding: 5px; background: #f9f9f9; border-radius: 8px; }
.stepper-controls { display: flex; align-items: center; gap: 8px; }
.btn-qty { background: #d32f2f; color: white; border: none; width: 25px; height: 25px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.qty-val { min-width: 20px; text-align: center; font-weight: bold; }
.total-box { background: #fff3e0; padding: 15px; border-radius: 10px; margin-top: 20px; text-align: center; border: 1px solid #ffcc80; }
#total_display { font-size: 1.5em; color: #d32f2f; font-weight: bold; }
button { width: 100%; background-color: #d32f2f; color: white; border: none; padding: 18px; border-radius: 12px; font-size: 1.2em; font-weight: bold; cursor: pointer; margin-top: 15px; box-shadow: 0 4px #8b0000; }
button:disabled { background-color: #ccc; box-shadow: none; }
.special-box { background-color: #fffde7; padding: 15px; border-radius: 15px; border: 2px dashed #fbc02d; margin-bottom: 10px; }
.sub-menu { margin-left: 10px; padding: 10px; background: #fff; border-radius: 10px; border: 1px solid #eee; margin-top: 10px; }
#paymentModal, #adminInventoryModal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 3000; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; }
.modal-content, .inventory-content { background: white; padding: 25px; border-radius: 25px; max-width: 500px; width: 100%; text-align: center; max-height: 90vh; overflow-y: auto; }
.admin-section { text-align: left; margin-bottom: 20px; border: 1px solid #ddd; padding: 10px; border-radius: 10px; }
.admin-item-row { display: flex; gap: 5px; margin-bottom: 5px; align-items: center; }
.admin-input { padding: 5px; border: 1px solid #ccc; border-radius: 5px; }
.btn-del { background: #d32f2f; color: white; border: none; padding: 5px 10px; border-radius: 5px; cursor: pointer; }
.btn-add { background: #2e7d32; color: white; border: none; padding: 8px; border-radius: 8px; width: 100%; margin-top: 10px; cursor: pointer; }
.status-toggle { cursor: pointer; padding: 5px 8px; border-radius: 5px; font-size: 0.8em; border: 1px solid #ddd; }
.status-on { background: #e8f5e9; color: #2e7d32; }
.status-off { background: #ffebee; color: #d32f2f; text-decoration: line-through; }
.qr-image { width: 100%; max-width: 280px; margin: 15px auto; border: 2px solid #eee; border-radius: 15px; display: block; }
#loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: white; z-index: 9999; display: flex; justify-content: center; align-items: center; font-weight: bold; color: #a52a2a; }
.btn-contact { background-color: #1877f2; box-shadow: 0 4px #0d47a1; margin-top: 10px; font-size: 1em; padding: 12px; }
.btn-seed { background-color: #ff9800; color: white; border: none; padding: 10px; border-radius: 10px; margin-bottom: 10px; width: 100%; font-weight: bold; cursor: pointer; }

.marquee-box { overflow: hidden; white-space: nowrap; background: #fffde7; padding: 8px 12px; border-radius: 10px; border: 1px dashed #fbc02d; box-shadow: 0 2px 5px rgba(0,0,0,0.05); box-sizing: border-box; width: 100%; }
.marquee-content { display: inline-block; color: #d32f2f; font-weight: bold; font-size: 1.1em; padding-left: 100%; animation: marquee-anim 12s linear infinite; }
@keyframes marquee-anim { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

.gold-button {
    display: block;
    padding: 15px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: #000000;
    text-decoration: none;
    background: linear-gradient(45deg, #FFD700, #FFB900);
    border: 2px solid #D4AF37;
    border-radius: 12px;
    box-shadow: 0 4px #8b0000;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}
.gold-button:hover { background: linear-gradient(45deg, #FFB900, #FFD700); transform: translateY(-2px); }

.install-button {
    display: block;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    background-color: #34495e;
    border: 2px solid #2c3e50;
    border-radius: 12px;
    box-shadow: 0 4px #1a252f;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}
.install-button:hover { background-color: #2c3e50; transform: translateY(-2px); }
.btn-tracking {
    width: 100%;
    padding: 15px;
    margin-top: 12px;
    background-color: #ffffff;
    color: #d32f2f;
    border: 2px solid #d32f2f;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Kanit', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-tracking:active {
    transform: scale(0.98);
    background-color: #fff5f5;
}

.btn-tracking .icon {
    font-size: 1.2em;
}

/* 🟢 เอฟเฟกต์เส้นไฟ RGB วิ่งวนรอบปุ่ม "ยืนยันการสั่งอาหารทั้งหมด" */
#submitBtn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: transparent;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3); /* เพิ่มเงาให้ตัวปุ่มดูลอยขึ้นนิดนึง */
    transition: transform 0.1s ease;
}

#submitBtn:active {
    transform: scale(0.96); /* เวลากดให้ปุ่มยุบลงสมจริง */
}

/* ตัวสร้างเส้นสีรุ้งวิ่งอยู่ด้านหลัง */
#submitBtn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        #ff0000, #ff7300, #fffb00, #48ff00, 
        #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000
    );
    animation: rotate-rgb-border 2.5s linear infinite;
    z-index: -2;
}

/* ตัวสร้างพื้นหลังสีแดงมาบังตรงกลาง เพื่อให้เหลือแค่ขอบ */
#submitBtn::after {
    content: "";
    position: absolute;
    inset: 4px; /* กำหนดความหนาของเส้นไฟ RGB (ยิ่งค่าน้อยเส้นยิ่งบาง) */
    background: #d32f2f; /* สีพื้นหลังเดิมของปุ่ม */
    border-radius: 8px; /* ความโค้งด้านใน ให้รับกับมุมด้านนอก */
    z-index: -1;
}

@keyframes rotate-rgb-border {
    100% { transform: rotate(360deg); }
}
