/* Meal Planner Styles */
body, div, button, input, select {
    cursor: default !important;
}

input:focus, select:focus, button:focus, button:hover, a:hover {
    cursor: pointer !important;
}

input[type="text"]:hover, input[type="number"]:hover, select:hover {
    cursor: text !important;
}

.calc-proxy-mealplanner {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.calc-proxy-mealplanner h1, 
.calc-proxy-mealplanner h2, 
.calc-proxy-mealplanner h3 {
    color: #333;
}

.gartitle {
    text-align: center;
    color: #0047ab;
}

.search-container {
    margin-bottom: 20px;
}

.search-box {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.category-filter {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    background-color: #0047ab;
    color: #fff;
}

.search-results {
    margin-bottom: 30px;
}

.category-container {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.category-header {
    background-color: #0047ab;
    padding: 8px 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.category-content {
    display: block;
}

.food-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.food-item:hover {
    background-color: #f5f5f5;
}

.food-info {
    flex-grow: 1;
    cursor: pointer;
}

.meal-container {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 30px;
}

.meal-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.remove-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 8px;
    cursor: pointer;
}

.totals {
    margin-top: 15px;
    font-weight: bold;
    font-size: 18px;
}

.clear-meal {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}

.print-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 5%;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}

.print-button:hover {
    background-color: #2980b9;
}

.collapse-btn {
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 0.8em;
    margin-left: 10px;
}

.nutrition-thumb {
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nutrition-thumb img {
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nutrition-thumb img:hover {
    box-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.nutrition-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    margin: 5% auto;
    padding: 20px;
    background-color: #fff;
    position: relative;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.hidden {
    display: none;
}

.meal-iframe {
    height: 100%;
    margin-bottom: 20%;
}

/* Responsive design */
@media (max-width: 600px) {
    .meal-item {
        flex-direction: column;
    }
    
    .meal-item button {
        margin-top: 5px;
    }
}
