body {
    background: linear-gradient(135deg, #f8f9fa 50%, #e3f2fd 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Kanit', 'Noto Sans Thai', sans-serif;
}

/* หากต้องการให้บางส่วนมีน้ำหนักตัวหนาหรือใช้ฟอนต์อื่นในบางกรณี */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Kanit', sans-serif; /* ใช้ฟอนต์ Kanit ในหัวข้อ */
    font-weight: 700; /* กำหนดความหนา */
}

p, label, input, select, button {
    font-family: 'Noto Sans Thai', sans-serif; /* ใช้ฟอนต์ Noto Sans Thai ในเนื้อหาทั่วไป */
    font-weight: 400; /* กำหนดความหนาปกติ */
}
.calculator-form {
    background-color: #fafafa;
    padding: 60px 30px 30px; /* เพิ่ม padding ด้านบนให้พอสำหรับโลโก้ */
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
}


.form-label i {
    margin-right: 8px;
    color: #007bff;
    font-weight: bold;
}

.form-label, .form-label i {
    font-weight: bold;
}


.btn-primary {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    border: none;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
}

.modal-content {
    border-radius: 15px;
}

.modal-header {
    background-color: #42a5f5;
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.modal-body .result {
    padding: 20px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.modal-body .result h2 {
    /*font-size: 1.5rem;*/
    font-size: 1.8rem;
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
}

.bmi-result {
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* เพิ่มเงาสีดำ */
    font-weight: bold;
}

.bmi-normal {
    background-color: #4caf50; /* ปกติ (สุขภาพดี) */
    color: white;
}

.bmi-low {
    background-color: #007bff; /* น้ำหนักน้อย / ผอม */
    color: white;
}

.bmi-medium {
    background-color: #fb8c00; /* ท้วม / โรคอ้วนระดับ 1 */
    color: white;
}

.bmi-high {
    background-color: #f44336; /* อ้วน / โรคอ้วนระดับ 2 */
    color: white;
}

.bmi-danger {
    background-color: #d32f2f; /* อ้วนอันตราย / โรคอ้วนระดับ 3 */
    color: white;
}

.premium-table {
    width: 100%;
    font-size: 1rem;
    color: #333;
    border-collapse: collapse;
    border-spacing: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* เพิ่มเงา */
    border-radius: 12px; /* ขอบมน */
    overflow: hidden; /* ทำให้ขอบมนมีผลกับส่วนที่เป็นตาราง */
}

.premium-table thead {
    background: linear-gradient(135deg, #f7bfa0, #f2a46f); /* ไล่สีในส่วนหัว */
    color: white;
    font-weight: bold;
}

.premium-table thead th {
    text-align: center; /* จัดให้หัวข้ออยู่ตรงกลาง */
    vertical-align: middle;
}

.premium-table th, .premium-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.premium-table th,
.premium-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.premium-table tbody tr:last-child td {
    border-bottom: none;
}

.premium-table tbody tr:nth-child(even) {
    background-color: #fff6e0; /* สีพื้นหลังสลับสำหรับแถวคู่ */
}

.premium-table tbody tr:nth-child(odd) {
    background-color: #ffffff; /* สีพื้นหลังสลับสำหรับแถวคี่ */
}

.premium-table tbody tr:hover {
    background-color: #fbe9d5; /* สีเมื่อ hover */
}

.premium-table th:first-child {
    border-top-left-radius: 12px;
}

.premium-table th:last-child {
    border-top-right-radius: 12px;
}
.premium-table tbody td:first-child {
    border-left: none;
}

.premium-table tbody td:last-child {
    border-right: none;
}

.advice {
    background-color: #e9f7ef; /* พื้นหลังสีเขียวอ่อน ดูสบายตา */
    padding: 10px; /* เพิ่มพื้นที่ด้านในของกล่องข้อความ */
    border-radius: 10px; /* ทำให้ขอบของกล่องมีความโค้งมน */
    border-left: 7px solid #28a745; /* เส้นขอบด้านซ้ายสีเขียวเข้ม เพื่อเน้นข้อความ */
    font-style: italic; /* ตัวเอียงสำหรับข้อความในกล่อง */
    margin-top: 2px; /* เพิ่มระยะห่างด้านบนของกล่องจากองค์ประกอบอื่น */
}

.advice2 {
    background-color: #f7e9e9;
    padding: 10px;
    border-radius: 10px;
    border-left: 7px solid #a72828;
    font-style: italic;
    margin-top: 2px;
}

.advice3 {
    background-color: #f7f6e9;
    padding: 10px;
    border-radius: 10px;
    border-left: 7px solid #a7a528;
    font-style: italic;
    margin-top: 2px;
}

.icon-food {
    margin-right: 8px;
}
.image-below-table {
    margin-top: 20px;
    text-align: center;
}

.image-below-table img {
    border-radius: 10px; /* ขอบมน */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* เพิ่มเงา */
    width: 100%; /* ขยายให้เต็มความกว้างของตาราง */
    margin-bottom: 15px; /* ระยะห่างระหว่างรูป */
}

.image-below-table p {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
}

.bmi-result.bmi-normal {
    background-color: #e9f7ef;
    color: green;
    border: 2px solid #28a745;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

.form-container {
    position: relative; /* ทำให้คอนเทนเนอร์เป็นตัวอ้างอิง */
    width: 100%; /* ใช้เต็มหน้าจอ */
    max-width: 500px; /* ขนาดสูงสุดของคอนเทนเนอร์ */
    margin: 0 auto; /* จัดให้อยู่กึ่งกลาง */
    padding-top: 120px; /* เพิ่มพื้นที่ด้านบนให้ฟอร์มอยู่ใต้โลโก้ */
}

.hospital-logo {
    position: absolute; /* ตรึงโลโก้ด้านบน */
    top: 0; /* ชิดขอบบนสุดของคอนเทนเนอร์ */
    left: 50%; /* จัดกึ่งกลางแนวนอน */
    transform: translateX(-50%); /* ปรับให้โลโก้อยู่ตรงกลางพอดี */
    width: 100%; /* ปรับขนาดโลโก้ให้เต็มคอนเทนเนอร์ */
    max-width: 500px; /* จำกัดขนาดโลโก้ */
    min-width: 420px; /* จำกัดขนาดโลโก้ */
    height: auto; /* รักษาสัดส่วนของรูปภาพ */
}

#carb-form {
    margin-top: 20px; /* เพิ่มระยะห่างระหว่างโลโก้กับฟอร์ม */
    text-align: center; /* จัดให้อยู่กลาง */
}

.single-line-title {
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .single-line-title {
        font-size: 1.2rem; /* ปรับขนาดฟอนต์ให้เล็กลงสำหรับหน้าจอเล็ก */
        line-height: 1.2; /* ลดความสูงของบรรทัด */
        margin-top: 10px; /* ลดระยะห่างด้านบน */
    }

    .calculator-form {
        padding: 15px; /* ลด padding ภายในฟอร์ม */
    }

    .hospital-logo {
        width: 150px; /* ปรับขนาดโลโก้ให้เหมาะสมกับหน้าจอเล็ก */
    }
}
/* สไตล์สำหรับคอนเทนเนอร์ค้นหา */
.search-container {
    background-color: #f4f7fb; /* สีพื้นหลังที่ดูพรีเมียม */
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left; /* จัดชิดซ้าย */
}

.search-input {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #dcdfe3;
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.suggestions-list {
    margin-top: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 150px;
    overflow-y: auto;
}

.suggestions-list div {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestions-list div:hover {
    background-color: #e3f2fd;
}

/* สไตล์สำหรับคอนเทนเนอร์แสดงผลที่เลือก */
.selected-food-result {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    margin: 0 auto;
    display: none; /* ซ่อนค่าเริ่มต้น */
}

.selected-food-result:hover {
    transform: translateY(-5px); /* ยกขึ้นเล็กน้อยเมื่อ hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* เพิ่มเงา */
}

.select-menu-btn {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: #fff;
    font-size: 1.1rem;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.select-menu-btn i {
    margin-right: 8px;
}


.selected-food-result img {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.selected-food-result p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

/* สไตล์ช่องค้นหาพรีเมียม */
.premium-search {
    width: 100%;
    padding: 10px;
    border-radius: 25px;
    border: 2px solid #007bff;
    font-size: 1rem;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    outline: none;
}

.premium-search:focus {
    border-color: #0056b3;
    box-shadow: 0px 4px 15px rgba(0, 123, 255, 0.3);
}

/* คอนเทนเนอร์สำหรับแสดงภาพอาหาร */
.food-image-container {
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.food-image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.food-image-container p {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
    text-align: center;
}

.add-food-btn {
    background-color: #4caf50;
    color: #fff;
    font-size: 1.5rem;
    border: none;
    padding: 10px 20px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.add-food-btn:hover {
    background-color: #388e3c;
    transform: scale(1.1); /* ขยายขึ้นเล็กน้อยเมื่อ hover */
}

.food-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 15px 0 10px;
}

.food-image:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* เพิ่มเงาเมื่อ hover */
}

.food-image {
    width: 100%;
    height: auto;
    object-fit: cover; /* ทำให้รูปภาพแสดงเต็มโดยตัดขอบหากรูปไม่ตรงอัตราส่วน */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* สไตล์สำหรับตารางโภชนาการ */
/* สไตล์สำหรับตารางโภชนาการ */
.nutrition-table {
    width: 100%;
    font-size: 1rem;
    color: #333;
    border-collapse: collapse;
    border-spacing: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

/* สไตล์สำหรับชื่ออาหารให้ดูพรีเมียม */
.nutrition-table .food-name {
    font-size: 1.5rem; /* ขนาดใหญ่กำลังดี */
    font-weight: bold;
    color: #3b2f2f; /* สีเข้มที่ดูหรูหรา */
    text-align: center;
    padding: 10px;
    background: linear-gradient(90deg, #f8f5f0, #fff9e6); /* พื้นหลังไล่สีทองอ่อน */
    border: 1px solid #d4a373; /* ขอบสีทอง */
    border-radius: 8px;
    box-shadow: inset 0 -3px 5px rgba(212, 163, 115, 0.3); /* เงาในกรอบ */
    margin-bottom: 10px;
    position: relative;
}

/* ไฮไลต์เส้นใต้สีทอง */
.nutrition-table .food-name:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background-color: #d4a373; /* เส้นไฮไลต์สีทอง */
    border-radius: 5px;
}

/* ส่วนหัวตาราง */
.nutrition-table th {
    background: linear-gradient(135deg, #ffe0b2, #ffcc80);
    color: #333;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

/* ส่วนข้อมูลตาราง */
.nutrition-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    text-align: center;
}

.nutrition-table td[colspan="2"] {
    font-weight: bold;
    text-align: center;
    background-color: #fcf8e3; /* สีพื้นหลังอ่อนให้เด่นขึ้น */
}

.nutrition-table tfoot td {
    font-weight: bold;
    background-color: #fbf5e9; /* สีพื้นหลังเดียวกับแถวรวมแคลอรี่ */
    text-align: left;
  }

/* สไตล์ปุ่มเพิ่ม/ลด */
.quantity-button {
    display: flex;
    align-items: center;
    gap: 8px; /* ระยะห่างระหว่างปุ่มและตัวเลข */
}
  
.quantity-button button {
    background-color: #ffffff;
    border: 2px solid #d4af37; /* ขอบสีทอง */
    border-radius: 50%; /* ทำให้เป็นวงกลม */
    color: #d4af37; /* สีทอง */
    font-size: 1.2rem;
    width: 45px; /* ขนาดปุ่ม */
    height: 45px; /* ขนาดปุ่ม */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1); /* เพิ่มเงาให้ดูมีมิติ */
    position: relative;
    overflow: hidden;
}

.quantity-button button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0e6d2; /* สีทองอ่อนเมื่อ hover */
    transition: transform 0.3s ease;
    transform: scale(0);
    border-radius: 50%;
    z-index: 1;
}

.quantity-button button:hover {
    color: #b8860b; /* สีทองเข้มเมื่อ hover */
    border-color: #b8860b;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); /* เพิ่มเงาเมื่อ hover */
}

.quantity-button button > span {
    position: relative;
    z-index: 2; /* ให้เครื่องหมาย + หรือ - อยู่ด้านหน้าสุด */
}

.quantity-button button:hover::before {
    transform: scale(1);
}
  
  .quantity-button span {
    font-size: 1rem;
    padding: 0 8px;
  }

  .quantity-display {
    font-size: 1rem;
    color: #333;
    min-width: 24px;
    text-align: center;
    font-weight: bold;
}
  
/* ปุ่มถังขยะในคอลัมน์ลบ */
.remove-button {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .remove-button:hover {
    color: #d32f2f;
  }
  
  /* รวมพลังงานทั้งหมด */
  .total-calories {
    text-align: right;
    color: #333;
    font-size: 1.1rem;
  }
  
  .total-calories strong {
    color: #D4AF37; /* สีทอง */
  }
  
/* แถวสลับสี */
.nutrition-table tr:nth-child(even) td {
    background-color: #fff7e6;
}

.nutrition-table tr:last-child td {
    background-color: #ffe6cc;
    font-weight: bold;
}

  .nutrition-table th:first-child, 
.nutrition-table td:first-child {
  border-top-left-radius: 12px; /* มุมโค้งซ้ายบน */
}

/* จัดให้อยู่ตรงกลางสำหรับคอลัมน์ลำดับ */
.nutrition-table td:first-child {
    text-align: center;
  }

.nutrition-table th:last-child, 
.nutrition-table td:last-child {
  border-top-right-radius: 12px; /* มุมโค้งขวาบน */
}

/* เน้นสีเมื่อ hover */
.nutrition-table tr:hover td {
    background-color: #f5e1c1;
}

/* ขอบมุมด้านบน */
.nutrition-table th:first-child {
    border-top-left-radius: 12px;
}

.nutrition-table th:last-child {
    border-top-right-radius: 12px;
}

.food-image-wrapper {
    text-align: center;
    margin-bottom: 10px;
}

.search-label {
    font-size: 1rem;
    color: #333; /* สีดำเข้ม */
    font-weight: bold;
    margin-bottom: 8px;
}

#food-search {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 0; /* เอาช่องว่างด้านล่างออก */
}

#food-search:focus {
    border-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 91, 187, 0.2);
    outline: none;
}

.search-title {
    font-weight: 600; /* ใช้ความหนาแบบเดียวกับหัวข้อ */
    font-size: 1rem; /* ขนาดฟอนต์ที่เหมาะสม */
    color: #333; /* สีเดียวกันกับหัวข้อหลัก */
    font-family: 'Kanit', sans-serif; /* กำหนดฟอนต์ให้ตรงกับฟอนต์หลัก */
    margin-bottom: 5px; /* เว้นระยะด้านล่างให้พอดี */
    display: block;
}


.suggestions-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background-color: #e0f7fa;
}

.bmi-result.bmi-very-low {
    background-color: #e0f7fa; /* สีฟ้าอ่อน */
    color: #007bff;
    border: 2px solid #007bff;
}

.bmi-result.bmi-normal {
    background-color: #e8f5e9; /* สีเขียวอ่อน */
    color: #4caf50;
    border: 2px solid #4caf50;
}

.bmi-result.bmi-slightly-high {
    background-color: #fff3e0; /* สีส้มอ่อน */
    color: #fb8c00;
    border: 2px solid #fb8c00;
}

.bmi-result.bmi-high {
    background-color: #ffebee; /* สีแดงอ่อน */
    color: #f44336;
    border: 2px solid #f44336;
}

.bmi-result.bmi-very-high {
    background-color: #fbe9e7; /* สีแดงเข้ม */
    color: #d32f2f;
    border: 2px solid #d32f2f;
}

/* สไตล์สำหรับหัวข้อ BMI */
#bmi-header {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
    text-align: left;
    margin-bottom: 5px;
}

/* สไตล์สำหรับผลลัพธ์ค่า BMI */
.bmi-result {
    background-color: #ffebee;
    color: #c62828;
    border: 2px solid #c62828;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(198, 40, 40, 0.4);
    margin-top: 5px;
}

.bmi-result-number {
    display: block; /* แสดงตัวเลขบนบรรทัดเดียว */
    font-size: 1.5rem; /* ขนาดตัวเลขใหญ่ขึ้น */
    font-weight: bold;
}

.bmi-result-text {
    display: block; /* แสดงข้อความบนบรรทัดใหม่ */
    font-size: 1rem;
    font-weight: normal;
}

.description {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    margin-bottom: 5px;
}

#bmr-result, #tdee-result, #carb-calorie{
    font-size: 1.2rem; /* ขนาดฟอนต์ให้เหมือนกับสองบรรทัดล่าง */
    font-weight: bold; /* ทำให้ตัวอักษรหนา */
    color: #000000 !important; /* บังคับให้เป็นสีขาว */
}

.footer-text {
    display: inline-block;
    text-align: center;
    max-width: 100%;
}

.result h3 {
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid #646464; /* เส้นใต้สีอ่อน */
    margin-bottom: 5px;
}

.result p {
    margin-bottom: 10px; /* ระยะห่างระหว่างหัวข้อ */
}

.bmi-result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #f7d4d4; /* สีกรอบ */
    border-radius: 10px;
    background-color: #ffe6e6; /* พื้นหลังอ่อนสีแดง */
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* เงาเบา */
}

.bmi-result-value {
    font-size: 2rem;
    font-weight: bold;
    color: #d9534f; /* สีแดงเข้ม */
}

.bmi-result-text {
    font-size: 0.9rem;
    color: #d9534f; /* สีแดงเข้ม */
    font-weight: bold;
    text-align: center;
}

.bmi-result-value, .bmi-result-text {
    margin: 0; /* เอา margin ออกทั้งหมด */
}

.result strong {
    font-weight: bold; /* ทำให้หัวข้อเป็นตัวหนา */
}

.result-container {
    /*background-color: #ffffff; /* สีพื้นหลังสีขาว */
    background-color: #f9f9f9;
    border-radius: 12px; /* มุมโค้ง */
    /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* เงาที่ทำให้ดูหรู */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    padding: 24px; /* ระยะห่างภายใน */
    margin-bottom: 15px; /* ระยะห่างด้านล่าง */
}


.result-container p {
    margin: 0; /* เอาระยะห่างระหว่างบรรทัดออก */
}

.result .description {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    display: inline; /* ให้อยู่ในบรรทัดเดียวกับหัวข้อ */
    margin-left: 5px; /* เพิ่มระยะห่างระหว่างหัวข้อและคำอธิบายเล็กน้อย */
}

.result-value--------- {
    font-size: 1.2em;
    font-weight: bold;
    color: #000000; /* ฟอนต์สีขาว */
    background: linear-gradient(135deg, #d4af37, #b8860b); /* สีพื้นหลังแบบไฮไลท์ */
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-align: center; /* จัดให้อยู่กึ่งกลาง */
}

.result-value {
    font-size: 1.2em;
    /*font-weight: bold;*/
    font-weight: 600;
    /*color: #ffffff;*/
    color: #000000;
    /*background: linear-gradient(135deg, #d4af37, #b8860b);*/
    background: linear-gradient(135deg, #ffebcd, #f0e68c);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2), inset 0px 1px 3px rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.result-value-secondary {
    font-size: 1.2em;
    /*font-weight: bold;*/
    font-weight: 600;
    /*color: #ffffff;*/
    color: #000000;
    /*background: linear-gradient(135deg, #d4af37, #b8860b);*/
    background: linear-gradient(135deg, #ffebcd, #f0e68c);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2), inset 0px 1px 3px rgba(255, 255, 255, 0.3);
    display: inline-block;
}

/* สไตล์คอนเทนเนอร์ที่แตกต่าง */
.unique-container {
    /*background-color: #f0e6d6;  พื้นหลังสีครีมอ่อน */
    /*border: 2px solid #d4af37;  กรอบสีทอง */
    background-color: #f5e6c8; /* ตัวอย่างสีครีมอ่อน */
    border: 1px solid #e0b77f;
    border-radius: 8px;
    padding: 15px; 
    /*padding: 20px;
    border-radius: 12px;*/
    /*box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); /* เงาให้ดูพรีเมี่ยม */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.highlight-carb {
    font-size: 1em; /* ลดขนาดฟอนต์ให้เล็กลง */
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    background-color: #f8e1e1;
    color: #b23a48;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}


#protein-result {
    text-align: left; /* จัดให้อยู่ด้านซ้าย */
}

/* ไฮไลต์เฉพาะสำหรับคาร์โบไฮเดรต */
.highlight-carb .result-value {
    background: linear-gradient(145deg, #f7e8cd, #e5c999); /* สีพื้นหลังที่นุ่มนวลและหรูหรา */
    color: #856404; /* สีตัวอักษรที่เข้ากันกับพื้นหลัง */
    border: 1px solid #e0b14a; /* เส้นขอบที่ดูหรูหรา */
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15), 0px 4px 12px rgba(212, 175, 55, 0.3); /* เงาเบาๆ ให้ดูมีมิติ */
    font-weight: bold;
    display: inline-block;
    text-align: center;
}


/* สไตล์ไฮไลท์ผลลัพธ์พร้อมหน่วย */
.result-value, .result-value-secondary {
    font-size: 1.2em; /* ลดขนาดฟอนต์ให้เล็กลง */
    font-weight: bold;
    color: #000000;
    background: linear-gradient(135deg, #ffebcd, #f0e68c);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-align: center;
    margin-right: 10px;
}

.unit {
    font-size: 0.9em;
    font-weight: normal;
    color: #ffffff; /* สีของหน่วย */
    opacity: 0.8; /* เพิ่มความโปร่งใสเล็กน้อยให้ดูพรีเมี่ยม */
    margin-left: 5px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.share-button {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.facebook-button {
    background-color: #4267B2; /* สีน้ำเงินของ Facebook */
}

.facebook-button:hover {
    background-color: #3b5998;
}

.line-button {
    background-color: #00C300; /* สีเขียวของ Line */
}

.line-button:hover {
    background-color: #009900;
}

.share-button i {
    margin-right: 8px;
    font-size: 20px;
}

/* ไฮไลท์แบบพรีเมี่ยม */
.highlighted-value {
    font-weight: bold;
    color: #d4af37; /* สีทอง */
    background: linear-gradient(145deg, #faf2d5, #f5e4a6); /* ไล่สีพื้นหลังโทนอ่อนและสว่าง */
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1), 0px 4px 8px rgba(212, 175, 55, 0.3); /* เงาพื้นหลัง */
    display: inline-block;
}

.save-button {
    background-color: #4caf50; /* สีเขียว */
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    display: block;
    margin: 10px auto;
}


.save-button i {
    margin-right: 8px; /* ระยะห่างระหว่างสัญลักษณ์กับข้อความ */
}

.save-button:hover {
    background-color: #004d40; /* สีเข้มขึ้นเมื่อ hover */
    background: linear-gradient(135deg, #b3a369, #b8860b);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    /*box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);*/
    transform: translateY(-2px);
}

.save-button:active {
    transform: translateY(0); /* เปลี่ยนตำแหน่งกลับเมื่อกดปุ่ม */
}

#result-section {
    background-color: white;
    box-shadow: none;
    padding: 20px;
    border-radius: 8px; /* ปรับตามต้องการ */
}

#user-info-container {
    background-color: #f0f4f8;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
#user-info-container p {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
}

.highlight-carb-day {
    font-size: 1.2em; /* ลดขนาดให้เท่ากับค่าตอบอื่นๆ */
    font-weight: bold;
    color: #d9534f; /* คงสีแดงไว้ */
    background-color: #ffe5e5; /* สีพื้นหลังเดิม */
    padding: 8px 12px; /* ลด padding เล็กน้อยเพื่อให้ขนาดกระชับขึ้น */
    border-radius: 8px; /* ขอบมน */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* เงาให้ดูน่าสนใจ */
    display: inline-block;
    text-align: center;
    margin-left: 10px;
}

.carb-highlight {
    font-size: 1.2em; /* ขนาดฟอนต์พอดีเท่ากับคำตอบอื่นๆ */
    font-weight: bold;
    color: #d9534f; /* ข้อความสีแดง */
    background-color: #ffe5e5; /* พื้นหลังสีแดงอ่อน */
    padding: 8px 12px; /* ระยะขอบภายใน */
    border-radius: 8px; /* ขอบมน */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* เพิ่มเงา */
    display: inline-block;
    text-align: left; /* จัดให้อยู่ด้านซ้าย */
}

.info-container {
    background-color: #f0f4f8; /* พื้นหลังสีอ่อน */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* เพิ่มเงา */
    font-size: 1em;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px; /* ระยะห่างระหว่างบรรทัด */
    color: #333;
}

.info-item i {
    color: #007bff; /* สีของไอคอน */
    margin-right: 8px; /* ระยะห่างระหว่างไอคอนกับข้อความ */
    font-size: 1.2em;
}

.info-item strong {
    margin-right: 5px; /* ระยะห่างระหว่างหัวข้อกับข้อมูล */
}

.form-group {
    margin-bottom: 20px; /* ปรับระยะห่างด้านล่างของฟิลด์ */
}

#logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

#logo-container img {
    height: 120px;
    border-radius: 50%; /* ทำให้โลโก้เป็นวงกลม */
    
    /* เงาสะท้อนสั้นๆ */
    box-shadow: 
        0px 8px 15px rgba(0, 0, 0, 0.3),    /* เงาสีดำเบา ๆ ใต้โลโก้ */
        0px 4px 6px rgba(0, 0, 0, 0.2);     /* เงาชั้นในนุ่มนวล */
}

.developed-by {
    font-size: 0.9rem; /* ขนาดฟอนต์เล็ก */
    color: #555; /* สีเทาอ่อน */
    text-align: center; /* จัดให้อยู่กึ่งกลาง */
    margin-top: 15px; /* เพิ่มระยะห่างด้านบน */
    padding: 5px;
    font-style: italic; /* ตัวเอียงเพื่อเพิ่มความเน้น */
    opacity: 0.8; /* เพิ่มความโปร่งใสเล็กน้อย */
}

.add-food-btn {
    background-color: #4caf50;
    color: #fff;
    font-size: 1.5rem;
    border: none;
    padding: 10px 20px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.add-food-btn:hover {
    background-color: #388e3c;
    transform: scale(1.1); /* ขยายขึ้นเล็กน้อยเมื่อ hover */
}

#food-image {
    display: block; /* ทำให้แน่ใจว่ารูปภาพแสดง */
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.food-ratio-section {
    margin-top: 20px;
    text-align: center;
}

.food-ratio-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.food-ratio-table th,
.food-ratio-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    font-weight: normal;
}

.food-ratio-table th:first-child {
    border-top-left-radius: 10px;
}

.food-ratio-table th:last-child {
    border-top-right-radius: 10px;
}

/* หัวตาราง */
.food-ratio-table th {
    background: linear-gradient(90deg, #4A90E2, #1C6EA4); /* ไล่สีจากน้ำเงินเข้มไปอ่อน */
    color: #fff;
    padding: 12px;
    text-align: center;
    font-weight: bold;
}

/* สีพื้นหลังสำหรับแถวข้อมูล */
.food-ratio-table td {
    padding: 12px;
    text-align: center;
}

.food-ratio-table tr:hover {
    background-color: #f1f1f1;
}
.food-ratio-table td:first-child {
    text-align: left;
    padding-left: 20px; /* เพิ่มระยะห่างจากขอบซ้าย */
}

.food-ratio-table tr:nth-child(even) {
    background-color: #EAF3FC; /* สีอ่อน */
}
.food-ratio-table tr:nth-child(odd) {
    background-color: #FFFFFF; /* สีขาว */
}

/* สไตล์สำหรับแถวสุดท้าย */
.food-ratio-table tfoot td {
    background-color: #D7E8F7; /* สีพื้นหลังแถวรวมแคลอรี่ */
    font-weight: bold;
    text-align: center;
    color: #333;
}
#selected-food-result {
    border: none; /* ยกเลิกขอบ */
    box-shadow: none !important; /* ยกเลิกเงา */
    background-color: white; /* พื้นหลังสีขาว */
    padding: 15px; /* เพิ่ม padding เล็กน้อย */
    border-radius: 0 !important; /* ยกเลิกขอบมน */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* รูปภาพที่อยู่ในคอนเทนเนอร์ */
#selected-food-result img {
    box-shadow: none !important; /* ยกเลิกเงาของรูปภาพ */
    border-radius: 0 !important; /* ยกเลิกขอบมนของรูปภาพ */
    width: auto;
    height: auto;
    max-width: 100%; /* ปรับขนาดรูปภาพให้พอดีกับคอนเทนเนอร์ */
}

#selected-food-table-container h3 {
    text-align: center;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

#selected-food-table img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.selected-food-container {
    margin-top: 20px;
  }
  
  .selected-food-container h3 {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
  }
  
  .selected-food-container table {
    width: 100%;
    border-collapse: collapse;
  }
  
  /* ตารางอาหารที่เลือก */
.food-selection-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    margin-top: 15px;
    color: #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.food-selection-table th {
    background-color: #f5d7b0;
    color: #333;
    padding: 12px;
    font-weight: bold;
    text-align: center;
}

.food-selection-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #f1f1f1;
}

.food-selection-table .quantity-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.food-selection-table .quantity-button button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    margin: 0 5px;
}

.food-selection-table .quantity-button button:hover {
    color: #007bff;
}

.food-selection-table .remove-button {
    background-color: transparent;
    border: none;
    color: #ff4d4d;
    font-size: 1.2rem;
    cursor: pointer;
}

.food-selection-table tfoot td {
    font-weight: bold;
    background-color: #fbf5e9;
    text-align: center;
    color: #D4AF37;
}

.highlight-text {
    color: #FFF6DA; /* กำหนดสีข้อความ */
    font-weight: bold; /* ทำให้ข้อความเป็นตัวหนา */
    background-color: #EFB036; /* กำหนดพื้นหลังไฮไลท์ */
    padding: 2px 4px; /* เพิ่มพื้นที่รอบข้อความเล็กน้อยเพื่อให้ดูเด่น */
    border-radius: 4px; /* มุมโค้งให้พื้นหลังดูนุ่มนวล */
}
