/* Food Tracking Styles */

.today-total {
    background: #e3f2fd;
    border: 2px solid #2196F3;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
    font-size: 18px;
    color: #1976D2;
}

.today-total strong {
    font-size: 24px;
    color: #0D47A1;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.food-item {
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.today-counter {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.today-counter.pulse {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        background: #66BB6A;
    }
}

.food-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

.food-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.food-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.food-serving {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.food-calories {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.quantity-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 8px;
}

.qty-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 5px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    min-height: 44px;
    transition: all 0.2s ease;
}

.qty-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.qty-button:active {
    background-color: #3d8b40;
    transform: scale(0.95);
}

/* Tablet and larger - 3 columns */
@media (min-width: 600px) {
    .food-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Desktop - 4 columns */
@media (min-width: 900px) {
    .food-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Touch-friendly on mobile devices */
@media (hover: none) and (pointer: coarse) {
    .food-item {
        padding: 20px 15px;
    }

    .log-button {
        min-height: 50px;
        font-size: 18px;
    }
}

/* Delete button in Recent Consumption table */
.checkered-blue td:last-child {
    text-align: center;
    padding: 10px;
    width: 70px;
    min-width: 70px;
    max-width: 70px;
    overflow: hidden;
    white-space: normal;
}

.delete-button {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    margin: 0 auto;
    flex-shrink: 0;
}

.delete-button:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.delete-button:active {
    background: #c62828;
    transform: scale(0.95);
}

/* Existing checkered-blue table styles should be inherited from music/css/styles.css */
