/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: transparent;
    color: white;
}

.header h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header p {
    color: white;
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    height: 100px;
    width: auto;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-text {
    text-align: left;
    flex: 1;
    min-width: 300px;
    color: white;
}

/* Form styles */
.meal-plan-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.form-help-text {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 500;
}

.meal-total-display {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #edf2f7;
    border-radius: 8px;
    border: 2px solid #cbd5e0;
}

.meal-total-display span {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

.meal-total-display.warning {
    background: #fef5e7;
    border-color: #f6ad55;
    color: #c05621;
}

.meal-total-display.error {
    background: #fed7d7;
    border-color: #fc8181;
    color: #c53030;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #4a5568;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkbox grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f7fafc;
    border: 2px solid transparent;
}

.checkbox-label:hover {
    background: #edf2f7;
    border-color: #e2e8f0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

/* Button states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.btn.loading:hover {
    transform: none;
}

/* Loading state content */
.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error message */
.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #e53e3e;
}

/* Results section */
.results-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.results-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2d3748;
    text-align: center;
}

.meal-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.meal-category {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e2e8f0;
}

.meal-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2d3748;
}

.meal-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.meal-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2d3748;
}

.ingredients {
    list-style: none;
}

.ingredients li {
    padding: 4px 0;
    color: #4a5568;
    position: relative;
    padding-left: 20px;
}

.ingredients li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Shopping list */
.shopping-list-section {
    background: #f7fafc;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.shopping-list-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2d3748;
    text-align: center;
}

.shopping-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.shopping-category {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.shopping-category h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
    text-transform: capitalize;
}

.shopping-items {
    list-style: none;
}

.shopping-items li {
    padding: 6px 0;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
}

.shopping-items li:last-child {
    border-bottom: none;
}

/* Actions */
.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Error page */
.error-page {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-page h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #e53e3e;
}

.error-page p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 30px;
}

.error-actions {
    margin-top: 30px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .meal-plan-form,
    .results-section {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .meal-plan-grid {
        grid-template-columns: 1fr;
    }
    
    .shopping-categories {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .meal-plan-form,
    .results-section {
        padding: 20px;
    }
    
    .form-section h2 {
        font-size: 1.3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .header {
        color: #333;
    }
    
    .actions {
        display: none;
    }
    
    .meal-plan-form {
        display: none;
    }
    
    .results-section {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}

/* Home Page Styles */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 100px;
    padding: 60px 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    padding: 12px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.feature:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.2rem;
}

.cta-section {
    text-align: left;
}

.btn-large {
    font-size: 1.3rem;
    padding: 20px 40px;
    margin-bottom: 16px;
    display: inline-block;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.cta-subtext {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.meal-preview {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 420px;
    width: 100%;
}

.meal-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.meal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.meal-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
}

.meal-time {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 12px;
}

.meal-card h5 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.ingredients-preview {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredients-preview li {
    font-size: 0.95rem;
    color: #475569;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
    position: relative;
    padding-left: 20px;
}

.ingredients-preview li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.ingredients-preview li:last-child {
    border-bottom: none;
}

.features-section {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.features-section h3 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #2d3748;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon-large {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.how-it-works {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 60px;
    color: white;
}

.how-it-works h3 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    background: rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.step-content p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin: 0;
}

.final-cta {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.final-cta h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2d3748;
}

.final-cta p {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 30px;
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

.loading-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.loading-content p {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.loading-progress {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    animation: progress 60s linear infinite;
}

.loading-time {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
    margin: 0;
}

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

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Global Loading System Styles */
.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.global-loading-overlay.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.global-loading-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

.global-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

.global-loading-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.global-loading-content p {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.global-loading-progress {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.global-loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    animation: progress 60s linear infinite;
}

.global-loading-time {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
    margin: 0;
}

/* Loading Modal Styles */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.loading-modal.show {
    display: flex;
}

.loading-modal-content {
    background: white;
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.5s ease;
    position: relative;
}

.loading-spinner-large {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin: 0 auto 30px;
}

.loading-modal-content h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.loading-modal-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.loading-progress-container {
    width: 100%;
}

.loading-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.loading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    animation: loadingProgress 3s ease-in-out infinite;
    width: 0%;
}

.loading-modal .loading-time {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Stepper Styles */
.stepper {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.stepper-progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.stepper-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.stepper-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.stepper-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    right: -40%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.stepper-step.completed:not(:last-child)::after {
    background: #667eea;
}

.stepper-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.stepper-step.active .stepper-step-number {
    background: #667eea;
    color: white;
}

.stepper-step.completed .stepper-step-number {
    background: #10b981;
    color: white;
}

.stepper-step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.stepper-step.active .stepper-step-label {
    color: #667eea;
}

.stepper-step.completed .stepper-step-label {
    color: #10b981;
}

/* Meal Selection Styles */
.meal-selection {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.meal-selection-header {
    text-align: center;
    margin-bottom: 40px;
}

.meal-selection-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.meal-selection-header p {
    color: #4a5568;
    font-size: 1.1rem;
}

.meal-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.meal-option-card {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.meal-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.meal-option-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.meal-option-card:hover::before {
    transform: scaleX(1);
}

/* Disabled meal option card styles */
.meal-option-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.meal-option-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #dee2e6;
}

.meal-option-card.disabled::before {
    background: #6c757d;
}

.meal-option-card.disabled:hover::before {
    transform: scaleX(0);
}

.meal-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.meal-option-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.meal-option-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: #64748b;
}

.meal-option-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.3;
}

.meal-option-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.meal-option-ingredients h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.meal-option-ingredients ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.meal-option-ingredients li {
    padding: 4px 0;
    color: #475569;
    font-size: 0.9rem;
    position: relative;
    padding-left: 16px;
}

.meal-option-ingredients li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.more-ingredients {
    font-style: italic;
    color: #64748b;
}

.meal-option-select {
    width: 100%;
    padding: 12px 24px;
    font-weight: 600;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

/* Stepper Navigation */
.stepper-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.stepper-info {
    color: #64748b;
    font-weight: 600;
}

/* Meal Summary Styles */
.summary-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    right: -40%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.progress-step.completed:not(:last-child)::after {
    background: #10b981;
}

.progress-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active .progress-step-number {
    background: #667eea;
    color: white;
}

.progress-step.completed .progress-step-number {
    background: #10b981;
    color: white;
}

.progress-step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.progress-step.active .progress-step-label {
    color: #667eea;
}

.progress-step.completed .progress-step-label {
    color: #10b981;
}

.meal-summary-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.meal-summary-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    text-align: center;
}

.summary-description {
    color: #4a5568;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
}

.selected-meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.selected-meal-card {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.selected-meal-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.1);
}

.meal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.meal-card-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 700;
}

.meal-time {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 12px;
}

.selected-meal-item {
    margin-bottom: 25px;
}

.selected-meal-item:last-child {
    margin-bottom: 0;
}

.selected-meal-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.3;
}

.meal-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.meal-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meal-meta span {
    font-size: 0.85rem;
    color: #64748b;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 500;
}

.meal-ingredients h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.meal-ingredients ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.meal-ingredients li {
    padding: 4px 0;
    color: #475569;
    font-size: 0.9rem;
    position: relative;
    padding-left: 16px;
}

.meal-ingredients li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.summary-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.whats-next-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.whats-next-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

.next-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.next-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.next-step:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.step-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.step-content p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Home page responsive styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .header-text {
        text-align: center;
    }
    
    .header-logo {
        height: 60px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-content h2 {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .hero-features {
        justify-content: center;
        gap: 12px;
    }
    
    .feature {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .meal-preview {
        max-width: 100%;
        gap: 20px;
    }
    
    .meal-card {
        padding: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .loading-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .loading-content h3 {
        font-size: 1.3rem;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }
    
    .stepper {
        padding: 20px;
    }
    
    .stepper-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .stepper-step:not(:last-child)::after {
        display: none;
    }
    
    .meal-selection {
        padding: 30px 20px;
    }
    
    .meal-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .meal-option-card {
        padding: 20px;
    }
    
    .stepper-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .summary-progress {
        flex-direction: column;
        gap: 20px;
    }
    
    .summary-progress .progress-step:not(:last-child)::after {
        display: none;
    }
    
    .selected-meals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .selected-meal-card {
        padding: 20px;
    }
    
    .summary-actions {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .next-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .next-step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
