/* Allergy Wizard Styles */
.wizard-card {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.wizard-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 2rem;
}

.wizard-card .card-header h3 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Allergen Grid */
.allergen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.allergen-item {
    position: relative;
}

.allergen-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.allergen-label {
    display: block;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.allergen-label i {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.allergen-label span {
    font-weight: bold;
    color: #495057;
    margin-bottom: 0.25rem;
}

.allergen-label small {
    color: #6c757d;
    font-size: 0.85rem;
}

.allergen-item input[type="checkbox"]:checked + .allergen-label {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-color: #ff6b6b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.allergen-item input[type="checkbox"]:checked + .allergen-label i {
    color: white;
    transform: scale(1.1);
}

.allergen-item input[type="checkbox"]:checked + .allergen-label span,
.allergen-item input[type="checkbox"]:checked + .allergen-label small {
    color: white;
}

.allergen-label:hover {
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
}

/* Menu Card Styles */
.menu-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.menu-card.safe-item {
    border: 2px solid #28a745;
}

.menu-card.contains-allergens {
    border: 2px solid #ffc107;
}

.menu-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.safe-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.warning-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: #212529;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.menu-card-body {
    padding: 1.5rem;
}

.menu-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #495057;
    margin-bottom: 0.5rem;
}

.menu-card-description {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.ingredients-section,
.allergen-info,
.allergen-warnings {
    margin-bottom: 1rem;
}

.ingredients-section h6,
.allergen-info h6,
.allergen-warnings h6 {
    font-size: 0.9rem;
    font-weight: bold;
    color: #495057;
    margin-bottom: 0.5rem;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.ingredients-list li {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 6px;
    color: #6c757d;
}

.allergen-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.allergen-badges .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.menu-card-footer {
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .allergen-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .allergen-label {
        height: 100px;
        padding: 1rem;
    }
    
    .allergen-label i {
        font-size: 1.5rem;
    }
    
    .wizard-card .card-header {
        padding: 1.5rem;
    }
    
    .menu-card-image {
        height: 180px;
    }
}

/* Animation for step transitions */
.wizard-step {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Custom alert styling */
.alert-info {
    background: linear-gradient(135deg, #cce5ff 0%, #e6f3ff 100%);
    border: 1px solid #99d3ff;
    color: #0056b3;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #fef5d8 100%);
    border: 1px solid #ffd633;
    color: #856404;
}