:root {
    --primary-color: #4CAF50;
    --secondary-color: #FFC107;
    --accent-color: #FF5722;
    --success-color: #28a745;
    --error-color: #dc3545;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 600;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
}

.food-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.food-item {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border 0.3s ease;
    cursor: pointer;
}

.food-item img {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.food-item h3 {
    font-size: 1.4rem;
    margin: 0.5rem 0;
}

.food-item.selected {
    border: 3px solid var(--success-color);
    transform: scale(1.05);
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: confetti-fall 1s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.selection-area {
    min-height: 200px;
    border: 3px dashed var(--secondary-color);
    border-radius: 15px;
    margin: 1rem;
    padding: 1.5rem;
    font-size: 1.2rem;
}

.feedback-message {
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.feedback-message.success {
    background-color: var(--success-color);
    color: white;
}

.feedback-message.error {
    background-color: var(--error-color);
    color: white;
}

.stats-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.refresh-indicator {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1.1rem;
    }
    
    .food-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .selection-area {
        padding: 1rem;
        margin: 0.5rem;
    }
}
