/* Enhanced No Results Display */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 0;
    border: 2px dashed #dee2e6;
    min-height: 200px;
    width: 100%;
    box-sizing: border-box;
}

.no-results-icon {
    font-size: 48px;
    opacity: 0.6;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 50%;
    margin-bottom: 16px;
}

.no-results-text {
    flex: 1;
    text-align: center;
}

.no-results-text h4 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.no-results-text p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

/* Food Search Results Improvements */
.food-result {
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 8px;
}

.food-result:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.food-result:active {
    transform: translateY(0);
}

/* Search Input Improvements */
#food-search-input {
    transition: all 0.2s ease;
}

#food-search-input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

/* Loading State for Search */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
}

.search-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .no-results {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #4a5568;
    }
    
    .no-results-text h4 {
        color: #e2e8f0;
    }
    
    .no-results-text p {
        color: #a0aec0;
    }
    
    .food-result:hover {
        background: #2d3748;
    }
}