@import url('https://fonts.googleapis.com/css2?family=Mali:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Londrina+Solid:wght@100;300;400;900&family=Noto+Sans+Thai:wght@100..900&display=swap');

:root{
    --primary-color:#C58940;
    --secondary-color:#FAEAB1;
    --thrid-color:#E5BA73;
    --button-color:#FF853D;
    --secondary-font: "Mali", cursive;
    --primary-font: "Londrina Solid", sans-serif;
}



*{
    font-family: var(--secondary-font);
}

@media (max-width: 576px) {
  h2 { font-size: 20px; }
  .card-title { font-size: 14px; }
  .fs-4 { font-size: 18px !important; }
  
}


.nav-color{
    background-color: var(--secondary-color);
}

.navbar{
    background-color: var(--thrid-color);
}

/* Responsive สำหรับมือถือ */
/* Responsive สำหรับมือถือ */

.table-number{
    background-color: var(--primary-color);
    padding: 12px 24px; border-radius: 12px; font-size: 20px; font-weight: bold;

}
.body{
    background-color: #FFF7D1;
}

.container {
    width: min(90%, 360px);
    margin: 0 auto;
    padding: 1.25rem;
}

.MenuH1 {
    font-size: clamp(3rem, 10vw, 6rem);
    text-align: center;
    margin: 1.25rem 0 1.875rem 0;
    font-family: var(--primary-font);
    letter-spacing: 0.75rem;
    -webkit-text-stroke: 0.1875rem #09105A;
    color: #ffffff;
}


.table-number {
    background-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 1.25rem;
    color: #ffffff;
    font-size: clamp(1rem, 4vw, 1.875rem);
    font-weight: bold;
    font-family: var(--primary-font);
    -webkit-text-stroke: 0.0625rem #000000;
    text-align: center;
}

.table-number-admin {
    background-color: var(--primary-color);
    width: 12.5rem;
    height: 4.375rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.625rem;
    color: #ffffff;
    font-size: clamp(2rem, 6vw, 3.125rem);
    font-weight: bold;
    font-family: var(--primary-font);
    -webkit-text-stroke: 0.0625rem #000000;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
/*border-radius ใช้เป็น 35*/

.forimg {
    border-radius: 2.1875rem;
    max-width: 100%;
    height: auto;
}

.button-click {
    background-color: var(--button-color);
    border-radius: 1.25rem;
    padding: 0.75rem 1.5rem;
}

.realcard {
    background-color: var(--primary-color);
    border-radius: 6.25rem;
    margin-left: 1.875rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

.floating-circle {
    background-color: #C58940;
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
    z-index: 9999;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

  
.button-menu {
    background-color: var(--button-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-button {
  background-color: var(--button-color);
  color: #000000;
  padding: 15px 15px;
  text-decoration: none;
  display: inline-block;
  /*margin-left: 35px;*/
  font-size: 24px;
  border-radius: 15px;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-button:hover {
  background-color: #ffa26d;
  color: #000000 !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease;
}

.nav-monk {
    background-color: var(--primary-color);               
  border-radius: 50px;
  color: #ffffff;          
  font-size: 30px;                        
  font-family: var(--secondairy-font) !important;                         
  text-align: center; 
}

.menu-pic {
  background-color: #FAF8F1;
  width: 15rem;
  border: 3px solid;
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}




.not-menu-pic {
  border-radius: 25px; 
  background-color: #FAF8F1;
  width: 15rem;
  border: 3px solid;
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.food-font{
  position:static;
  text-align: center;
  font-size: 20px;
   font-weight: bold;
}

.food-font1{
  position:static;
  text-align: center;
  font-size: 25px;
   font-weight: bold;
}

.font-nav {
  font-size: 25px;
  color: #d3d3d3 !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease;
}

.food-pic {
  color: #000000 !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease;
    display: flex;
  justify-content: center; /* จัดกึ่งกลางแนวนอน */
  align-items: center;     /* จัดกึ่งกลางแนวตั้ง */
}

.image-box {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.image-box img {
  width: 200px;
  height: auto;
  display: block;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* << จัดให้อยู่ชิดซ้าย */
  gap: 20px;
}

/* Overlay ซ่อนอยู่ก่อน */
.image-box .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(128, 128, 128, 0.4); /* เทาใส */
  display: none;
  z-index: 1;
}

/* แสดง overlay เมื่อถูกเลือก */
.image-box.selected .overlay {
  display: block;
  
}
 
.adminnav {
    background-color: var(--primary-color);
    margin-right: 25px;
    padding: 12px 24px; 
    border-radius: 20px; 
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center; /* จัดกลางแนวนอน */
  align-items: center;     /* จัดกลางแนวตั้ง */
}

.adminnav1 {
    background-color: var(--primary-color);
    margin-right: 25px;
    padding: 12px 24px; 
    border-radius: 20px; 
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center; /* จัดกลางแนวนอน */
  align-items: center;     /* จัดกลางแนวตั้ง */*/

}

.adminnav2 {
    background-color: var(--primary-color);
    margin-left: 120px;
    border-radius: 20px; 
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center; /* จัดกลางแนวนอน */
    align-items: center;     /* จัดกลางแนวตั้ง */
    transform: translateX(650px); /* ขยับขวาแบบไม่รบกวนอย่างอื่น */

}

.edit_img{
    display: flex;
  justify-content: center; /* จัดกึ่งกลางแนวนอน */
  align-items: center;     /* จัดกึ่งกลางแนวตั้ง */
}

.table-number-edit{
    background-color: var(--primary-color);       /* สีพื้นหลัง */
  width: 300px;
  height: 70px;
  padding: 12px 24px;           /* ระยะห่างด้านใน */
  border-radius: 10px;
  color: #ffffff;          /* ความโค้งของขอบ */
  font-size: 50px;              /* ขนาดตัวหนังสือ */
  font-weight: bold;            /* ตัวหนา */
  font-family: var(--primary-font) !important; 
  -webkit-text-stroke: 1px #000000;                           /* ทำให้ขนาดปรับตามเนื้อหา */
  text-align: center;
  position: flex;
  line-height: normal;
}

.table-number-edit-test{
   background-color: var(--primary-color);
  width: 450px;
  height: 70px;
  padding: 12px 24px;           /* ระยะห่างด้านใน */
  border-radius: 10px;
  color: #ffffff;          /* ความโค้งของขอบ */
  font-size:40px;              /* ขนาดตัวหนังสือ */
  font-weight: bold;            /* ตัวหนา */
  font-family: var(--primary-font) !important; 
  -webkit-text-stroke: 1px #000000;                           /* ทำให้ขนาดปรับตามเนื้อหา */
  text-align: center;
  position: flex;
  line-height: normal;
}

/* Responsive: จอเล็กกว่า 768px (Tablet / Mobile) */
@media (max-width: 768px) {
  .table-number-edit-test {
    width: 100%;         /* กินเต็มจอ */
    height: auto;        /* ปรับอัตโนมัติ */
    font-size: 24px;     /* ลดขนาดตัวอักษร */
    padding: 8px 12px;   /* ลด padding */
  }
}

/* Responsive: จอเล็กกว่า 576px (Mobile เล็ก) */
@media (max-width: 576px) {
  .table-number-edit-test {
    font-size: 18px;
    padding: 6px 10px;
    border-radius: 8px;
  }
}

.table-number-edit-test-new{
   background-color: var(--primary-color);
  width: 150px;
  height: 70px;
  padding: 12px 24px;           /* ระยะห่างด้านใน */
  border-radius: 10px;
  color: #ffffff;          /* ความโค้งของขอบ */
  font-size:40px;              /* ขนาดตัวหนังสือ */
  font-weight: bold;            /* ตัวหนา */
  font-family: var(--primary-font) !important; 
  -webkit-text-stroke: 1px #000000;                           /* ทำให้ขนาดปรับตามเนื้อหา */
  text-align: center;
  position: flex;
  line-height: normal;
}

/*forFooddetail*/

@media (max-width: 576px) {
  .detail-name {
    font-size: 30px !important; }

  .food-detail {
    font-size: 18px !important;     /* รายละเอียดเล็กลง */
  }

  .optional-box {
    font-size: 14px;
    padding: 8px;
  }

  .add-btn {
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 10px;
  }
}


.detail-name {
  font-size: 40px;
   font-weight: bold;
}

.edit_input{
  width: 90%;
  height: 70px;
  margin-top: 10px;
  padding-left: 20px;
  border-radius: 20px;
  font-size: 30px;
  background-color: #d9d9d9;
  border: none;
  font-weight: bold;
}
.edit_input_detail{
  width: 90%;
  height: 140px;
  margin-top: 10px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 20px;
  font-size: 25px;
  padding-top: 7px;
  background-color: #d9d9d9;
   border: none;
   font-weight: bold;
}

.choose{
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 15px;
  width: 20px;
  height: 40px;
}

.addimg{
   display: block;
  margin: 0;
  max-width: 300px;
  height: 300px;
}

.edit_input_detail::placeholder{
  font-size: 30px;
}



.navbar-custom {
  background-color: var(--thrid-color);
  padding: 10px 15px;
}

.table-label {
  background-color: var(--primary-color);
  color: white;
  padding: 6px 15px;
  border-radius: 8px;
  font-weight: bold;
}

.details-card {
  background-color: white;
  border-radius: 25px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.food-detail {
  font: var(--secondairy-font);
  font-size: 24px;
   font-weight: bold;
}

.optional-box {
  background-color: var(--thrid-color);
  border-radius: 30px;
  border: none;
  padding: 10px;
  padding-left: 20px;
  padding-top: 15px;
  width: 100%;
  height: 150px;
}

.optional-box::placeholder {
  color: #000000;
  opacity: 50%;
}

.add-btn {
  background-color: var(--button-color);
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  border: none;
  font-size: 40px;
  width: 300px;
  height: 80px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
   font-weight: bold;
}

.addcart-btn {
  background-color: #09105A;
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  border: none;
  font-size: 25px;
  width: 300px;
  height: 80px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-right {
  display: flex;
  justify-content: flex-end;
  text-align: right;
  text-decoration: none !important;
}

.img-detail {
  display: block;
  margin: 0;
  max-width: 400px;
  height: 400px;
}

.col-md-4 {
  padding: 0;
}

/*ForCart*/


    .menu-card {
      background-color: white;
      border-radius: 25px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      padding: 20px;
      margin-top: 40px;
    }

    .menu-item {
      border-radius: 30px;
      background-color: var(--thrid-color);
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px;
      height: 153px;
  
    }

    .menu-item img {
      width: 110px;
      height: 110px;
      object-fit: cover;
      border-radius: 10px;
      margin-right: 10px;
    }

    .menu-text {
      flex-grow: 1;
    }

    .menu-title {
      font-size: 40px;
       font-weight: bold;
    }

    .menu-subtitle {
      font-size: 24px;
      color: #000000;
       font-weight: bold;
    }

    .menu-price {
      font-size: 40px;
      margin-right: 40px;
       font-weight: bold;
    }

.delete-btn {
  width: 65px;
  height: 65px;
  border: none;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}



.delete-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-btn{
  width: 80px;
  height: 80px;
  border: none;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.info-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

    .total-section {
  font: var(--primary-font); 
  font-size: 50px; /* ขนาดเท่าภาพตัวอย่าง */
  font-weight: bold; /* ตัวหนา */
  margin-top: 20px;
  padding: 10px 0;
    display: flex;
  align-items: center;
  justify-content: space-between; /* จัดให้ span ไปซ้าย, button ไปขวา */
    }

    .total-section-just {
  font: var(--primary-font); 
  font-size: 50px; /* ขนาดเท่าภาพตัวอย่าง */
  font-weight: bold; /* ตัวหนา */
  margin-top: 20px;
  padding: 10px 0;
    display: flex;
  align-items: center;

    }

    .btn-pending {
    background-color: #3498db; /* ฟ้า */
    color: white;
}
.btn-preparing {
    background-color: #e67e22; /* ส้ม */
    color: white;
}
.btn-completed {
    background-color: #2ecc71; /* เขียว */
    color: white;
}


    .order-btn {
      font-size: 40px;
      height: 88px;
      background-color: var(--button-color);
      border: none;
      padding: 10px 25px;
      color: white;
      border-radius: 25px;
      font-weight: bold;
    }

    .order-btn-fix {
      font-size: 40px;
      height: 88px;
      background-color: var(--button-color);
      border: none;
      padding: 10px 25px;
      color: white;
      border-radius: 25px;
      font-weight: bold;
      justify-content: flex-end;
      display: flex;
      
    }

    .back-btn {
      position: absolute;
      top: 15px;
      left: 20px;
      font-size: 24px;
    }
    
 /* สำหรับหน้าจอเล็กมือถือ */
@media (max-width: 576px) {
  .menu-card {
    padding: 10px;
    margin-top: 20px;
    border-radius: 25px !important;
  }

  .menu-item {
    flex-direction: row;         /* ยังคงแนวนอนเหมือน desktop */
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 8px;
    
  }

  .menu-item img{
    width: 60px;
    height: 60px;
    margin-right: 10px;
  }
  
  .bin-img{ 
      width: 100% !important;
  }
  

  .menu-text {
    flex: 1;                     /* ขยายให้ข้อความเต็มพื้นที่ที่เหลือ */
  }

  .menu-title {
    font-size: 16px;
    font-weight: bold;
  }

  .menu-subtitle {
    font-size: 12px;
    color: #555;
  }

  .menu-price {
    font-size: 14px;
    margin-left: 10px;
  }

  .delete-btn {
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
}
  
  .info-btn {
    width: 10px;
    height: 35px;
  }

  .total-section {
    display: flex;
    flex-direction: row;          /* แนวนอน */
    justify-content: space-between; /* Total อยู่ซ้าย, ปุ่มอยู่ขวา */
    align-items: center;
    font-size: 16px;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
  }

 .order-btn {
    font-size: 16px;           /* ขนาดตัวอักษรยังคงเดิม */
    padding: 1px 10px;         /* ลด padding แนวตั้งเพื่อให้ปุ่มเล็กลง */
    border-radius: 12px;       /* มุมโค้งเล็กลง */
    white-space: nowrap;       /* ป้องกันข้อความตัดบรรทัด */
    flex-shrink: 0;            /* ป้องกันปุ่มย่อเกินไป */
    height: auto;              /* ให้ปุ่มยืดตามเนื้อหา */
    min-height: 30px;          /* กำหนดความสูงขั้นต่ำ */
}


}

    
   


    /*add cart*/

    .modal-text {
      font-size: 40px;
    }

    .modal-blur {
      /*backdrop-filter: blur(3px);*/
      background-color: rgba(0, 0, 0, 0.3);
    }
    .custom-modal {
      background-color: var(--secondary-color);
      border-radius: 35px;
      padding: 30px;
      text-align: center;
      border: 1px solid;

    }
    .btn-confirm {
      font-size: 20px;
      width: 200px;
      height: 50px;
      background-color: #4CAF50;
      color: white;
      padding: 10px 30px;
      border-radius: 25px;
      border: none;
      margin-top: 15px;
    }

    /*For history*/

        .container-history {
      display: flex;
      justify-content: center;
      margin-top: 50px;
    }

    .card-history {
      background: white;
      border-radius: 25px;
      padding: 30px;
      width: 950px;
      height: 650px;
      box-shadow: 3px 5px 10px rgba(0,0,0,0.3);
      text-align: center;
    }
    .order-history-text{
      font-family: var(--primary-font) !important; 
      font-size: 70px;
      margin-bottom: 40px;
      font-weight: normal;
      letter-spacing: 2px;
      color: white;
      -webkit-text-stroke: 1px black; /* ขอบดำ */
    }
    
    /* Responsive สำหรับมือถือ */
@media (max-width: 576px) {
    .order-history-text {
        font-size: 45px;      /* ลดขนาดลง */
        margin-bottom: 20px;  /* ลด margin */
        letter-spacing: 1px;  /* ปรับ spacing ให้เหมาะ */
        -webkit-text-stroke: 0.5px black; /* ลดขอบดำเล็กน้อย */
    }
    
    .history-btn{
           font-size: 16px !important;           /* ขนาดตัวอักษรยังคงเดิม */
    padding: 1px 10px;         /* ลด padding แนวตั้งเพื่อให้ปุ่มเล็กลง */
    border-radius: 12px;       /* มุมโค้งเล็กลง */
    white-space: nowrap;       /* ป้องกันข้อความตัดบรรทัด */
    flex-shrink: 0;            /* ป้องกันปุ่มย่อเกินไป */
    height: auto;              /* ให้ปุ่มยืดตามเนื้อหา */
    min-height: 30px;          /* กำหนดความสูงขั้นต่ำ */
    }
    
    .history-btn:hover {
    background-color: #e6762b; /* สีเข้มขึ้นเล็กน้อยเวลาวางเมาส์ */
    transform: translateY(-2px); /* ลอยขึ้นเล็กน้อย */
    text-decoration: none;
    color: #f5f5f5;
}
}

    .history-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--button-color); /* สีเขียวสวย */
    color: white;
    text-decoration: none; /* ลบเส้นใต้ */
    border-radius: 20px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 35px;
}

.history-btn:hover {
    background-color: #e6762b; /* สีเข้มขึ้นเล็กน้อยเวลาวางเมาส์ */
    transform: translateY(-2px); /* ลอยขึ้นเล็กน้อย */
    text-decoration: none;
    color: #f5f5f5;
}

    .order-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background-color: var(--thrid-color);
      padding: 15px 25px;
      border-radius: 12px;
      font-size: 40px;
      margin-bottom: 20px;
    }
    .order-time {
      letter-spacing: 3px;
    }
    .order-status {
      font: var(--secondairy-font);
      display: flex;
      align-items: center;
      font-size: 20px;
      color: #000000;
    }
    .order-status span {
      width: 12px;
      height: 12px;
      background: #c5c500;
      border-radius: 50%;
      display: inline-block;
      margin-right: 6px;
    }
.check-btn {
    display: inline-block;
    text-decoration: none;          /* เอา underline ออก */
    background: #FF853D;            /* สีส้มหลักของเว็บ */
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover effect */
.check-btn:hover {
    background: #FFA25B;            /* สีส้มอ่อนขึ้นเวลา hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    color: #ffffff;
}

/* Ripple effect เล็ก ๆ (optional) */
.check-btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 30px;
}

.check-btn:active::after {
    opacity: 1;
    transition: 0s;
}

    .back-btn {
      position: absolute;
      top: 20px;
      left: 20px;
      font-size: 24px;
      cursor: pointer;
    }


    /*For Radio custom*/

.menu-options-customer {
  background-color: var(--thrid-color);  /* สีดำ */
  display: flex;
  flex-wrap: wrap;          /* ถ้าเนื้อหาเยอะ จะขึ้นบรรทัดใหม่ */
  justify-content: center;  /* จัดกึ่งกลางแนวนอน */
  align-items: center;      /* กึ่งกลางแนวตั้ง */
  gap: 130px;                /* ระยะห่างระหว่างปุ่ม */
  padding: 20px;            /* ให้พื้นหลังครอบปุ่ม */
  border-radius: 35px;      /* ขอบมน ถ้าต้องการ */

    width: 70%;        /* กำหนดความกว้าง ไม่ให้เต็มจอ */
  margin: 0 auto;    /* จัดกึ่งกลาง container */
}

.menu-options-customer input[type="radio"] {
  display: none;
  margin-right: 5px;
}

.menu-options-customer label {
  width: 200px;
  height: 70px;
  border-radius: 25px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-color);   /* สี default */
  color: var(--primary-color);
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
}

/* เมื่อ hover */
.menu-options-customer label:hover {
  color: var(--secondary-color);
  background-color: var(--primary-color);
}

/* เมื่อ radio ถูกเลือก */
.menu-options-customer input[type="radio"]:checked + label {
  color: var(--secondary-color);
  background-color: var(--primary-color);  /* สีเวลาเลือก */
}

.menu-options-customer label:hover {
  color: var(--secondary-color);
  background-color: var(--primary-color);
}
.menu-options-customer input[type="checkbox"] {
  display: none;
  margin-right: 5px;
}
.menu-options-customer input[type="checkbox"]:checked + label {
  color: var(--secondary-color);
  background-color: var(--primary-color);  /* สีเวลาเลือก */
}

/* สำหรับมือถือ (จอกว้าง <= 576px) */
@media (max-width: 576px) {
  .menu-options-customer {
    gap: 15px;          /* ลดระยะห่างลง */
    width: 90%;        
    padding: 10px;
    border-radius: 15px;
    margin-bottom: -35px;
  }

  .menu-options-customer label {
    width: 150px;       /* เล็กลงกว่าเดิม */
    height: 50px;       /* ลดความสูง */
    font-size: 14px;    /* ลดขนาดฟอนต์ */
    border-radius: 15px;
  }
  
  
}



.menu-options {
  background-color: var(--thrid-color);  /* สีดำ */
  display: flex;
  flex-wrap: wrap;          /* ถ้าเนื้อหาเยอะ จะขึ้นบรรทัดใหม่ */
  justify-content: center;  /* จัดกึ่งกลางแนวนอน */
  align-items: center;      /* กึ่งกลางแนวตั้ง */
  gap: 130px;                /* ระยะห่างระหว่างปุ่ม */
  padding: 20px;            /* ให้พื้นหลังครอบปุ่ม */
  border-radius: 35px;      /* ขอบมน ถ้าต้องการ */

    width: 100%;        /* กำหนดความกว้าง ไม่ให้เต็มจอ */
  margin: 0 auto;    /* จัดกึ่งกลาง container */
}



.menu-options input[type="radio"] {
  display: none;
  margin-right: 5px;
}

.menu-options label {
  width: 200px;
  height: 70px;
  border-radius: 25px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-color);   /* สี default */
  color: var(--primary-color);
  font-size: 20px;
  font-weight: bold;
}

/* เมื่อ hover */
.menu-options label:hover {
  color: var(--secondary-color) !important;
  background-color: var(--primary-color) !important;
}

/* เมื่อ radio ถูกเลือก */
.menu-options input[type="radio"]:checked + label {
  color: var(--secondary-color);
  background-color: var(--primary-color);  /* สีเวลาเลือก */
}

.addimg{
   display: block;
  margin: 0;
  max-width: 300px;
  height: 300px;
}

.edit_input_detail::placeholder{
  font-size: 30px;
}


input[type="password"].disc {
  -webkit-text-security: disc;
}

.badge.pastel-yellow {
    background-color: #fff3cd;
    color: #856404;
}

.badge.pastel-blue {
    background-color: #cce5ff;
    color: #004085;
}



/*For Confirm and Delete*/

.button-wrapper {
  display: flex;
  justify-content: center; /* จัดกึ่งกลางทั้งสองปุ่ม */
  gap: 200px; /* เว้นระยะระหว่างปุ่ม */
  width: max-content; /* ให้กว้างพอดีกับปุ่ม + gap */
  margin: 0 auto; /* กึ่งกลางหน้าจอ */
}

.btn-p {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

/* ปุ่มแดง */
.btn.cancel-new {
  width: 300px;
  height: 80px;
  border-radius: 25px;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
  background-color: #d62839;
}
.btn.cancel-new:hover {
  background-color: #d63343;  /* สี hover */
}

/* ปุ่มเขียว */
.btn.confirm-new {
  width: 300px;
  height: 80px;
  border-radius: 25px;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
  background-color: #4CAF50;
}
.btn.confirm-new:hover {
  background-color: #5ab45f;  /* สี hover */
}

/* ปิดเอฟเฟกต์ขอบเวลาคลิก */
.btn:focus-visible {
  outline: none !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* คงเดิม */
}

/* ปุ่มแก้ไข-ลบ*/


/*for customer bg*/

.section {
  position: relative;
  z-index: 1; /* div ธรรมดา */
  padding: 50px;
  background: #f1f1f1;
  margin-bottom: 20px;
}

.background-customer {
  position: relative;  /* สำคัญ! ให้ pseudo element จัดตำแหน่งอิงกับ div นี้ */
  z-index: 5;          /* เพื่อให้ content อยู่เหนือพื้นหลัง */
    min-height: 100vh; /* ให้สูงเต็มหน้าจอ */

}

.background-customer::before {
  content: ""; /* ต้องมี */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: url('../../assets/img/food-bg-customer.png');
  background-size: cover;
  background-position: center;

  opacity: 0.3; /* ค่า 0.0–1.0 */
  z-index: -1;  /* ให้อยู่ข้างหลัง content */
}

.hot-badge {
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-weight: bold;
  letter-spacing: 0.5px;
}


/*Recom-checkbox*/

.rec-check-box {
 width: 200px;
  height: 70px;
  border-radius: 25px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-color);   /* สี default */
  color: var(--primary-color);
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
}

.rec-check-box label {
 width: 200px;
  height: 70px;
  border-radius: 25px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-color);   /* สี default */
  color: var(--primary-color);
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
}


/* showtable */
.wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 20px;
    --input-focus: #2d8cf0;
    --font-color: #323232;
    --font-color-sub:#666;
    --bg-color: #fff;
    --bg-color-alt: #666;
    --main-color: #323232;
}

.table-status-card {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 3px 3px 6px rgba(0,0,0,0.2);
  width: 250px;
  text-align: center;
  position: relative;
}

.switch{
    transform: translateY(-200px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    width: 50px;
    height: 20px;
}

.card-side::before{
    position: absolute;
    content: 'Login';
    left: -70px;
    top: 0;
    width: 100px;
    text-decoration: underline;
    color: var(--font-color);
    font-weight: 600;
}

.card-side1::before{
    position: absolute;
    content: 'Close';
    left: -70px;
    top: 0;
    width: 100px;
    text-decoration: underline;
    color: var(--font-color);
    font-weight: 600;
}

.card-side::after{
    position: absolute;
    content: 'Sign up';
    left: 70px;
    top: 0;
    width: 100px;
    text-decoration: none;
    color: var(--font-color);
    font-weight: 600;
}

.card-side1::after{
    position: absolute;
    content: 'Open';
    left: 80px;
    top: 0;
    width: 100px;
    text-decoration: none;
    color: var(--font-color);
    font-weight: 600;
}

.toggle {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    box-sizing: border-box;
    border-radius: 5px;
    border: 2px solid var(--main-color);
    box-shadow: 4px 4px var(--main-color);
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-color);
    transition: 0.3s;
}

.slider::before{
    box-sizing: border-box;
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    border: 2px solid var(--main-color);
    border-radius: 5px;
    left: -2px;
    bottom: 2px;
    background-color: var(--bg-color);
    box-shadow: 0 3px 0 var(--main-color);
    transition: 0.3s;    
}

.toggle:checked + .slider{
    background-color: var(--input-focus);
}

.toggle:checked + .slider::before{
    transform: translateX(30px);
}

.toggle:checked ~ .card-side1::before{
    text-decoration: none;
}
.toggle:checked ~ .card-side::before{
    text-decoration: none;
}


.toggle:checked ~ .card-side1::after{
    text-decoration: underline;
}
.toggle:checked ~ .card-side::after{
    text-decoration: underline;
}

.flip-card_inner {
    position: relative;
    width: 300px;
    height: 350px;
    background-color: transparent;
    perspective: 1000px;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.toggle:checked ~ .flip-card_inner {
    transform: rotateY(180deg);
}

.toggle:checked ~ .flip-card_front {
    box-shadow: none;
}

.flip-card_front, .flip-card_back {
    padding: 20px;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: lightgray;
    gap: 20px;
    border-radius: 5px;
    border: 2px solid var(--main-color);
    box-shadow: 4px 4px var(--main-color);
}

.flip-card_back {
    transform: rotateY(180deg);
}

.flip-card_form{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.title {
    margin: 20px 0 20px 0;
    font-size: 25px;
    font-weight: 900;
    text-align: center;
    color: var(--main-color);
}

.flip-card_input {
    width: 250px;
    height: 40px;
    border-radius: 5px;
    border: 2px solid var(--main-color);
    background-color: var(--bg-color);
    box-shadow: 4px 4px var(--main-color);
     font-weight: 600;
     outline: none;
}

.flip-card_input::placeholder{
    color: var(--font-color-sub);
    opacity: 0.8;
}

.flip-card_input:focus{
    border: 2px solid var(--input-focus);
}

.flip-card_btn:active, .button-confirm:active {
    box-shadow: 0px 0px var(--input-focus);
    transform: scale(3px, 3px);
}

.flip-card_btn {
    margin: 20px 0 20px 0; 
    width: 120px;
    height: 40px;
    border-radius: 5px;
    border: 2px solid var(--main-color);
    background-color: var(--bg-color);
    box-shadow: 4px 4px var(--main-color);
    font-weight: 600;
    font-size: 17px;
    color: var(--font-color);
    cursor: pointer;
}

