:root {
    --primary-color: #FF9F43;
    --secondary-color: #2D3436;
    --bg-color: #f8f9fa;
}

body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--bg-color);
    color: var(--secondary-color);
}

.sticky-sidebar {
    position: sticky;
    top: 90px;
    z-index: 100;
}

/* Meal Items */
.meal-item-row {
    transition: all 0.2s;
    cursor: pointer;
}
.meal-item-row:hover {
    transform: translateX(5px);
    background-color: #fff8f0 !important; /* ส้มอ่อนๆ */
    border-color: var(--primary-color) !important;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Buttons */
.border-dashed {
    border-style: dashed !important;
}

/* Hover Effects for Cards */
.hover-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.hover-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}


/* Craving Tags */
.craving-tag {
    background-color: #e3f2fd;
    color: #0d6efd;
    border-radius: 15px;
    padding: 2px 10px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}
.craving-tag i {
    cursor: pointer;
    margin-left: 5px;
    font-size: 0.75rem;
}
.craving-tag i:hover { color: #dc3545; }

/* Lock & Reroll Actions */
.meal-actions {
    opacity: 0.3; /* จางลงเมื่อไม่ได้เอาเมาส์ชี้ */
    transition: opacity 0.2s;
}
.meal-item-row:hover .meal-actions {
    opacity: 1; /* ชัดขึ้นเมื่อเอาเมาส์ชี้ */
}
.action-btn {
    border: none;
    background: transparent;
    color: #aaa;
    transition: color 0.2s;
}
.action-btn:hover { color: var(--primary-color); }

/* สถานะ Locked */
.meal-item-row.locked {
    border-left: 4px solid #ff6b6b !important;
    background-color: #fff5f5;
}
.meal-item-row.locked .fa-lock {
    color: #ff6b6b;
}


/* ... (ของเดิม) ... */

/* Edit Action Button */
.action-btn.edit:hover {
    color: #0d6efd; /* สีน้ำเงิน */
}

/* Add Item Button Area */
.add-item-btn {
    border: 2px dashed #dee2e6;
    color: #6c757d;
    transition: all 0.2s;
}
.add-item-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #fff8f0;
}

/* Highlight Mode in Modal (ตอนเลือกเมนูเอง) */
.selecting-mode .card {
    border: 2px solid var(--primary-color) !important;
    cursor: pointer;
}
.selecting-mode .card:hover {
    background-color: #fff8f0;
}


/* ... (โค้ดเดิม) ... */

/* 1. แก้ปัญหาแถบด้านล่างบังเนื้อหา (Mobile View Fix) */
body {
}

/* 2. Footer Style */
.site-footer {
    position: absolute;
    bottom: 80px; /* อยู่เหนือ Nutrition Bar นิดหน่อย */
    width: 100%;
    text-align: center;
    padding: 20px 0;
    color: #a4b0be;
    font-size: 0.85rem;
    background-color: transparent;
    z-index: 0; /* ให้อยู่ล่างสุด */
}

/* 3. Blog Styles */
.blog-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Blog Detail View (ซ่อนไว้ก่อน) */
#blogDetailView {
    /* display: none; */
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Blog Content Styles (จัด format HTML ที่ render) */
.blog-content h2 { color: var(--primary-color); font-weight: bold; margin-top: 1.5rem; }
.blog-content p { line-height: 1.8; color: #555; margin-bottom: 1rem; }
.blog-content ul { padding-left: 20px; margin-bottom: 1rem; }
.blog-content img { max-width: 100%; border-radius: 10px; margin: 15px 0; }


