/* Global Styles for Elderly Users */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    font-size: 18px;
    /* Increased base font size for elderly users */
    color: #333;
}

/* Increase all text elements for better readability */
p,
span,
div,
li,
a,
label,
input,
textarea,
button {
    font-size: inherit;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.4rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.8rem;
}

h5 {
    font-size: 1.6rem;
}

h6 {
    font-size: 1.4rem;
}

.logo-text p {
    font-size: 1.3rem;
    /* Increased from 1.1rem */
    margin-top: 0.2em;
    color: #666;
}

/* Modal styles for recipe details */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.modal[aria-hidden="false"] {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-card {
    position: relative;
    z-index: 1001;
    background: #fff;
    margin: 2rem auto;
    max-width: 95%;
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.modal-column {
    padding: 0;
}

/* Weekly Meal Plan Specific Styles */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e74c3c;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Dashboard Loading State */
.dashboard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    min-height: 200px;
}

.dashboard-loading .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.dashboard-loading .loading-text {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.loading-content {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.loading-content p {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.progress-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

#progress-text {
    color: #6c757d;
    font-weight: 500;
}

#progress-percentage {
    color: #e74c3c;
    font-weight: 600;
}

.questionnaire-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.questionnaire-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-skipped-notice {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 2px solid #4CAF50;
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
}

.step-skipped-notice .notice-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.step-skipped-notice .notice-content {
    flex: 1;
}

.step-skipped-notice h3 {
    color: #2e7d32;
    font-size: 1.6rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.step-skipped-notice p {
    color: #333;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0.8rem 0;
}

.step-skipped-notice .notice-detail {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    margin: 1.5rem 0;
}

.step-skipped-notice .notice-detail strong {
    color: #2e7d32;
    font-size: 1.1rem;
}

.step-skipped-notice .notice-footer {
    color: #555;
    font-style: italic;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .step-skipped-notice {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
    }

    .step-skipped-notice .notice-icon {
        margin: 0 auto;
    }

    .step-skipped-notice h3 {
        font-size: 1.4rem;
    }

    .step-skipped-notice p {
        font-size: 1.1rem;
    }
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active {
    background: #e74c3c;
    color: white;
}

.step.completed {
    background: #28a745;
    color: white;
}

.question-group {
    margin-bottom: 2rem;
}

/* Info content styling for privacy notice and informational steps */
.question-group.info-content {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.question-group.info-content ul {
    list-style-type: none;
    padding-left: 0;
}

.question-group.info-content li {
    padding-left: 1.5rem;
    position: relative;
}

.question-group.info-content li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2rem;
}

.question-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.required {
    color: #e74c3c;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: #e74c3c;
    outline: none;
}

.form-input.error {
    border-color: #dc3545;
}

.form-input.success {
    border-color: #28a745;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    border-color: #e74c3c;
    background: #fff5f5;
}

.checkbox-option.selected {
    border-color: #e74c3c;
    background: #fff5f5;
}

.checkbox-option input {
    margin-right: 12px;
}

.validation-message {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 4px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.input-hint {
    font-size: 1.1rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Weekly Plan Display */
.weekly-plan-display {
    display: none;
    flex: 1;
}

.weekly-plan-display.active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Modern Plan Header */
.plan-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

.plan-title-section h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.plan-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.plan-actions-header {
    display: flex;
    gap: 1rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Plan Info Bar */
.plan-info-bar {
    display: flex;
    justify-content: space-between;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #2c3e50;
    font-weight: 500;
}

.info-item i {
    color: #667eea;
    font-size: 1.2rem;
}

/* Weekly Calendar Grid */
.weekly-calendar-grid {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.day-header {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 400px;
}

.calendar-day {
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.day-date {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Modern Meal Cards */
.meal-card-modern {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid #667eea;
}

.meal-card-modern:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.meal-card-modern.breakfast {
    border-left-color: #ffa726;
}

.meal-card-modern.lunch {
    border-left-color: #66bb6a;
}

.meal-card-modern.dinner {
    border-left-color: #ef5350;
}

.meal-card-modern.snack {
    border-left-color: #ab47bc;
}

.meal-type-label {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.meal-title-modern {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.meal-calories {
    font-size: 1rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Empty Day State */
.empty-day {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-style: italic;
    font-size: 1.1rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Loading States */
.calendar-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #6c757d;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .calendar-body {
        grid-template-columns: repeat(4, 1fr);
    }

    .calendar-header {
        grid-template-columns: repeat(4, 1fr);
    }

    .day-header:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .plan-header-modern {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .plan-info-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .calendar-body {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-header {
        grid-template-columns: repeat(2, 1fr);
    }

    .day-header:nth-child(n+3) {
        display: none;
    }

    .quick-actions {
        flex-direction: column;
    }

    .calendar-day {
        min-height: 150px;
    }
}

.hidden {
    display: none !important;
}

/* Shopping List Styles */
.shopping-controls {
    background: #f8f9fa;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.source-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.source-selector label {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    min-width: 180px;
}

.form-select:focus {
    border-color: #667eea;
    outline: none;
}

.list-actions {
    display: flex;
    gap: 1rem;
}

/* Add Item Section */
.add-item-section {
    padding: 2rem 0;
}

.add-item-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.add-item-header {
    margin-bottom: 1rem;
}

.add-item-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.add-item-form {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.add-item-form .form-input {
    flex: 1;
    margin-bottom: 0;
}

/* List Summary */
.list-summary {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #2c3e50;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}



.progress-text {
    font-weight: 600;
    white-space: nowrap;
}

/* Star Rating Explanation */
.star-explanation {
    background: #e8f4fd;
    border: 1px solid #b3d9f2;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 1rem 0;
    text-align: center;
}

.star-explanation p {
    margin: 0;
    font-size: 0.95rem;
    color: #2c5aa0;
}

.star-explanation i {
    color: #5dade2;
    margin-right: 6px;
}

/* Senior-Friendly Notifications */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.4;
    min-width: 350px;
    max-width: 500px;
    color: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #17a2b8;
}

/* Shopping Categories */
.shopping-categories {
    display: grid;
    gap: 1.5rem;
}

.category-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.category-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-small {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    min-width: 40px;
    min-height: 40px;
}

.btn-small.btn-outline {
    border-color: #667eea;
    color: #667eea;
}

.btn-small.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-small.btn-danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-small.btn-danger:hover {
    background: #e74c3c;
    color: white;
}

.category-title {
    font-size: 1.4rem;
    /* Increased from 1.1rem for elderly users */
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.category-count {
    background: #667eea;
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 12px;
    font-size: 1.1rem;
    /* Increased from 1rem for elderly users */
    font-weight: 600;
}

.category-items {
    padding: 1rem 1.5rem;
    display: grid;
    gap: 0.75rem;
}

/* Shopping List Items */
.shopping-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    /* Increased from 0.75rem for more spacious layout */
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.shopping-item:hover {
    background: #f8f9fa;
}

.shopping-item.completed {
    opacity: 0.6;
    background: #e8f5e8;
}

.shopping-item.completed .item-name {
    text-decoration: line-through;
    color: #6c757d;
}

.item-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.item-checkbox.checked {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    font-size: 1.2rem;
    /* Increased from 1rem for elderly users */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.frequency-indicator {
    font-size: 0.9rem;
    color: #f39c12;
    margin-left: 0.25rem;
}

.item-quantity {
    font-size: 1.05rem;
    margin-top: 0.25rem;
}

.recipe-amount {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
}

.shopping-suggestion {
    color: #e74c3c;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.item-source {
    font-size: 1.1rem;
    /* Increased from 1rem for elderly users */
    color: #6c757d;
    margin-top: 0.25rem;
}

.item-actions {
    display: flex;
    gap: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.shopping-item:hover .item-actions {
    opacity: 1;
}

.item-action-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-action-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.have-at-home-btn {
    color: #28a745 !important;
}

.have-at-home-btn:hover {
    background: #d4edda !important;
    color: #155724 !important;
}

/* Nutrition Alert Banner */
.nutrition-alert-banner {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 110px;
    /* Below navbar */
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

.alert-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.alert-icon {
    font-size: 1.5rem;
    color: #fff3cd;
}

.alert-message {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.alert-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Adjust main content when alert is shown */
.main-content.alert-shown {
    margin-top: 80px;
    /* Additional margin when alert is visible */
}

/* Nutrition Card Tips */
.nutrition-card-tip {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #856404;
}

.nutrition-card-tip.warning {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.nutrition-card-tip.severe {
    background: #f5c6cb;
    border-color: #f1b0b7;
    color: #721c24;
    font-weight: 600;
}

.nutrition-card-tip i {
    font-size: 1rem;
    color: inherit;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: #495057;
}

.empty-state p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Shopping Tips */
.shopping-tips {
    padding: 2rem 0;
    background: #f8f9fa;
}

.tips-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.tips-card h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.tip-item i {
    color: #667eea;
    font-size: 1.2rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.tip-item span {
    color: #495057;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .controls-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .add-item-form {
        flex-direction: column;
        align-items: stretch;
    }

    .summary-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .progress-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .list-actions {
        flex-direction: column;
        width: 100%;
    }

    .source-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
}

/* Weekly Days Container - New Layout */
.weekly-days-container {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Day Section */
.day-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.day-section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.day-date-info {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
}

.day-meals-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Large Recipe Cards */
.recipe-card-large {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.recipe-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.recipe-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.recipe-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-card-image .placeholder-icon {
    font-size: 3rem;
    color: #adb5bd;
}

.meal-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    backdrop-filter: blur(10px);
}

.meal-type-badge.breakfast {
    background: rgba(255, 167, 38, 0.9);
}

.meal-type-badge.lunch {
    background: rgba(102, 187, 106, 0.9);
}

.meal-type-badge.dinner {
    background: rgba(239, 83, 80, 0.9);
}

.meal-type-badge.snack {
    background: rgba(171, 71, 188, 0.9);
}

.meal-type-badge.soup {
    background: rgba(255, 152, 0, 0.9);
}

.meal-type-badge.salad {
    background: rgba(76, 175, 80, 0.9);
}

.meal-type-badge.brunch {
    background: rgba(255, 193, 7, 0.9);
}

.meal-type-badge.side {
    background: rgba(96, 125, 139, 0.9);
}

.meal-type-badge.starter {
    background: rgba(63, 81, 181, 0.9);
}

.meal-type-badge.main {
    background: rgba(233, 30, 99, 0.9);
}

.recipe-card-content {
    padding: 1.5rem;
}

.recipe-title-large {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-nutrition-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.nutrition-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.nutrition-stat i {
    color: #667eea;
    width: 16px;
}

.nutrition-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
}

.nutrition-label {
    color: #353738;
    font-size: 1.07rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* Empty Meal Slot */
.empty-meal-slot {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.empty-meal-slot i {
    font-size: 2.5rem;
    opacity: 0.5;
}

.empty-meal-slot h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #495057;
}

.empty-meal-slot p {
    margin: 0;
    font-size: 1.1rem;
}

/* Loading States */
.plan-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #6c757d;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .plan-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .meals-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .button-group {
        flex-direction: column;
        gap: 1rem;
    }
}

.modal-column h4 {
    color: #4CAF50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8f5e8;
}

.modal-ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-ingredients-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.modal-ingredients-list li:last-child {
    border-bottom: none;
}

.modal-instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.modal-instructions-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.5rem;
}

.modal-instructions-list li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0.75rem;
    background: #4CAF50;
    color: white;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
}

.modal-instructions-list li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .modal-two-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: 0;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgb(24, 255, 3);
}

/* Meal-planning recipe modal font size adjustments */
#recipe-modal-title {
    font-size: 1.8rem !important;
}

.nutrition-top-section h3,
.modal-col h3 {
    font-size: 1.5rem !important;
}

.modal-cols {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .modal-cols {
        grid-template-columns: 1fr;
    }

    .modal-card {
        margin: 2rem auto;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .modal-card {
        margin: 1rem auto;
        padding: 1rem;
        max-height: 90vh;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}

.ingredients-list,
.directions-list {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.nutri-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .nutri-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nutri-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .nutri-grid .card {
        padding: 0.5rem;
    }

    .nutri-grid .key {
        font-size: 1rem;
    }

    .nutri-grid .val {
        font-size: 1.05rem;
    }
}

.nutri-grid .card {
    background: #f8faf8;
    border: 1px solid #e6eee6;
    border-radius: 12px;
    padding: 0.75rem;
    min-width: 0;
    overflow: hidden;
}

.nutri-grid .key {
    font-size: 1.05rem;
    color: #666;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.nutri-grid .val {
    font-size: 1.1rem;
    color: #2e7d32;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Navigation Bar Styles */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Always show navbar, no hover effect */
    transform: translateY(0);
    transition: none;
    /* Move navbar down to avoid covering page title */
    margin-top: 0;
}

.navbar:hover {
    transform: translateY(0);
    transition: transform 0.3s ease 0s;
}

/* Hover trigger area for navbar */
.navbar-trigger {
    display: none;
}

.navbar-trigger:hover+.navbar {
    transform: translateY(0);
    transition: transform 0.3s ease 0s;
}

.nav-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 110px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.nav-logo:hover {
    opacity: 0.8;
    text-decoration: none;
}

.nav-logo:visited {
    color: inherit;
}

.logo-icon {
    position: relative;
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #4CAF50;
    flex-shrink: 0;
}

/* Custom logo styles */
.custom-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.custom-logo-icon {
    font-size: 24px;
    color: white;
}

.text-logo {
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-align: center;
    line-height: 80px;
}

.logo-text h1 {
    color: #2E7D32;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.logo-text p {
    color: #666;
    font-size: 20px;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 40px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: nowrap;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    min-width: 70px;
    white-space: nowrap;
}

.nav-link i {
    font-size: 18px;
    display: inline-block;
    min-width: 18px;
    text-align: center;
}

.nav-link.active {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.nav-link:hover {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
    transform: translateY(-1px);
}

.nav-right {
    display: flex;
    gap: 15px;
}

.nav-icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.nav-icon-btn:hover {
    background-color: #f5f5f5;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
}

/* Mobile menu styles */
.nav-links.show {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e0e0e0;
    z-index: 1001;
}


/* Mobile responsive design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.show {
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e0e0e0;
        z-index: 1001;
    }

    .nav-links.show .nav-link {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 14px;
        min-height: 40px;
        width: 100%;
        text-align: left;
        white-space: nowrap;
    }

    .nav-links.show .nav-link i {
        font-size: 16px;
        width: 18px;
        text-align: center;
        flex-shrink: 0;
    }

    .mobile-menu-btn {
        display: block;
        min-height: 48px;
        min-width: 48px;
    }
}

/* Small mobile responsive design */
@media (max-width: 480px) {
    .nav-links.show {
        padding: 15px;
    }

    .nav-links.show .nav-link {
        padding: 8px 10px;
        font-size: 12px;
        min-height: 36px;
        gap: 8px;
    }

    .nav-links.show .nav-link i {
        font-size: 14px;
        width: 16px;
        flex-shrink: 0;
    }
}

/* Extra small mobile responsive design */
@media (max-width: 360px) {
    .nav-links.show {
        padding: 12px;
    }

    .nav-links.show .nav-link {
        padding: 6px 8px;
        font-size: 11px;
        min-height: 32px;
        gap: 6px;
    }

    .nav-links.show .nav-link i {
        font-size: 12px;
        width: 14px;
        flex-shrink: 0;
    }
}

/* Ultra small mobile responsive design */
@media (max-width: 320px) {
    .nav-links.show {
        padding: 10px;
    }

    .nav-links.show .nav-link {
        padding: 5px 6px;
        font-size: 10px;
        min-height: 28px;
        gap: 5px;
    }

    .nav-links.show .nav-link i {
        font-size: 11px;
        width: 12px;
        flex-shrink: 0;
    }
}

/* Main content area */
.main-content {
    margin-top: 0;
}

.questionnaire-container,
.weekly-plan-display {
    min-height: 0;
    /* Allow content to shrink if needed */
}

/* Single page scroll support */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll hide effect */
.navbar {
    transition: transform 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

/* Scroll margin for sections */
.scroll-to-section {
    scroll-margin-top: 110px;
}

/* Hero Section Styles */
.hero-section {
    /* background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), url('WechatIMG1763.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat; */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 120px 20px;
    text-align: center;
    min-height: 60vh;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 20px;
    line-height: 1.2;
    white-space: nowrap;
    margin-left: -50px;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #4CAF50;
    color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* How It Works Section Styles */
.how-it-works {
    padding: 80px 20px;
    background: white;
}

.section-container {
    max-width: 80%;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 60px;
    position: relative;
}


.features-section .section-title::before,
.features-section .section-title::after {
    display: none !important;
    content: none !important;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 2px solid #4CAF50;
}

.card:hover .card-icon {
    background: #4CAF50;
    color: white;
    transform: scale(1.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #4CAF50;
    position: relative;
    transition: background 0.3s ease, transform 0.3s ease;
}



.card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* Feature button area styles */
.features-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.features-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.7;
    text-decoration: none;
}

.feature-item,
.feature-item:visited,
.feature-item:active,
.feature-item:focus,
.feature-item:hover {
    text-decoration: none !important;
    color: inherit;
}


.feature-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 30px;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: #4CAF50;
    color: white;
    transform: scale(1.1);
}

.feature-text {
    color: #666;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.feature-item:hover .feature-text {
    color: #4CAF50;
}

/* Footer styles */
.footer {
    background: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ccc;
    line-height: 1.6;
}

.footer-copyright {
    font-size: 1.1rem;
    color: #999;
    margin: 0;
}

/* Explore Recipes Page Styles */
.page-header {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    padding: 80px 2rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 110px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    white-space: nowrap;
}

.page-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
}

.search-filter-section {
    padding: 40px 20px;
    background: white;
    max-width: 90%;
    margin: 0 auto;
}

.search-filter-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.filter-header h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-header i {
    color: #4CAF50;
    font-size: 1.5rem;
}

.search-bar {
    position: relative;
    margin-bottom: 30px;
}

.search-bar i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 20px;
    /* Prevent zoom on iOS */
    transition: border-color 0.3s ease;
}

@media (min-width: 768px) {
    .search-input {
        font-size: 20px;
    }
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Quick Filter Chips */
.quick-filter-chips {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.chips-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.chips-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    min-height: 48px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: #4CAF50;
    background: #f1f8e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-chip:focus {
    outline: 3px solid rgba(76, 175, 80, 0.3);
    outline-offset: 2px;
}

.filter-chip[aria-pressed="true"] {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.filter-chip[aria-pressed="true"]:hover {
    background: #45a049;
    border-color: #45a049;
}

.filter-chip i {
    font-size: 1.2rem;
}

.filter-chip-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    min-height: 48px;
    background: #ffffff;
    border: 2px solid #ff5722;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff5722;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-chip-clear:hover {
    background: #ff5722;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 87, 34, 0.3);
}

.filter-chip-clear:focus {
    outline: 3px solid rgba(255, 87, 34, 0.3);
    outline-offset: 2px;
}

.filter-chip-clear i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .quick-filter-chips {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .chips-container {
        width: 100%;
    }

    .filter-chip,
    .filter-chip-clear {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 0px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 22px;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 20px;
    background: white;
    transition: border-color 0.3s ease;
    margin-bottom: 30px;
}

.filter-select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Disabled options in select dropdown */
.filter-select option:disabled {
    color: #999;
    background: #f5f5f5;
    font-style: italic;
}

/* Visual indicator when select has disabled options */
.filter-select.has-disabled-options {
    border-color: #ffb74d;
}

.apply-filters-btn {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    display: block;
    font-size: 20px;
}

.recipe-results {
    padding: 40px 20px;
    background: #f8f9fa;
}

.results-header h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.recipe-cards-container {
    display: grid;
    /* Auto-fit: automatically adjust number of columns based on screen width */
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    align-items: stretch;
    padding: clamp(1rem, 3vw, 2rem);
}

.recipe-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(76, 175, 80, 0.10);
    margin: 13px;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    transition: box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
    height: 550px;
    position: relative;
    /* Allow absolute positioning of seasonal badge */
}

/* Specific height for explore-recipes page cards */
.recipe-cards-container .recipe-card {
    height: 500px;
}

/* Taller height for explore-recipes cards with nutrition info */
.recipe-cards-container .recipe-card-with-nutrition {
    height: 750px;
}

/* Specific height for meal-planning page cards */
.weekly-days-container .recipe-card {
    height: auto;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    /* Prevent hover highlight from overflowing */
}

.recipe-image {
    width: calc(100% + 3rem) !important;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    flex-shrink: 0;
    /* Prevent image from shrinking */
    overflow: hidden !important;
    border-radius: 18px 18px 0 0 !important;
    margin: -2rem -1.5rem 1rem -1.5rem !important;
    position: relative !important;
    background: #f0f0f0;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.recipe-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform 0.3s ease;
    display: block !important;
}

.recipe-image img:hover {
    transform: scale(1.05);
}

.recipe-image-placeholder {
    width: calc(100% + 3rem);
    height: 240px;
    min-height: 240px;
    max-height: 240px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px 18px 0 0;
    margin: -2rem -1.5rem 1rem -1.5rem;
    color: #999;
    font-size: 2rem;
}

.recipe-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.recipe-nutrition-info {
    margin: 0.3rem 0;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.1);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0px;
    /* Push to bottom of card */
}

.nutrition-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 60px;
    justify-content: center;
}

.nutrition-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 1);
}

.dashboard-link-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dashboard-link-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.dashboard-link-btn i {
    font-size: 0.95rem;
}


.recipe-content {
    padding: 0px;
}

.recipe-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    min-height: 3.2rem;
    line-height: 1.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    color: #333;
}

.recipe-description {
    font-size: 1.08rem;
    color: #666;
    margin-bottom: 0.3rem;
    text-align: left;
    line-height: 1.5;
}

.recipe-tags {
    margin-top: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;

    .recipe-tags-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.3rem;
        margin-top: 0.7rem;
        align-items: flex-start;
    }
}

/* Recipe info row for cooking time and difficulty */
.recipe-info-row {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-top: 0.1rem;
    align-items: flex-start;
}

.recipe-info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.25rem 0;
}

.recipe-info-item i {
    color: #4CAF50;
    font-size: 1rem;
}

.diet-tags-group,
.allergy-tags-group,
.category-tags-group,
.health-tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    flex-direction: row;
    align-items: center;
}

.diet-tags-group,
.allergy-tags-group,
.category-tags-group,
.health-tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    flex-direction: row;
    align-items: center;
}

/* Load More Button */
#load-more-btn {
    height: 48px;
    min-width: 160px;
    border-radius: 32px;
    font-size: 1rem;
    font-weight: 600;
    background: #4CAF50;
    color: #fff;
    border: none;
    display: block;
    margin: 1.5rem auto;
    cursor: pointer;
    transition: background 0.2s;
}

#load-more-btn:hover {
    background: #45a049;
}

.tag {
    background: #f5f8f5;
    color: #333;
    border-radius: 12px;
    padding: 0.18rem 0.5rem;
    font-size: 1rem;
    font-weight: 400;
    margin: 0.12rem 0.12rem;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(76, 175, 80, 0.07);
    letter-spacing: 0.2px;
    border: 1px solid #e0e0e0;
}

.diet-tag {
    background: #e8f5e9;
    color: #43a047;
    font-weight: 400;
    border-color: #c8e6c9;
}

.allergy-tag {
    background: #fff3e0;
    color: #ef6c00;
    font-weight: 400;
    border-color: #ffcc02;
}

.category-tag {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 400;
    border-color: #bbdefb;
}

/* Legacy support */
.health-tag {
    background: #e8f5e9;
    color: #43a047;
    font-weight: 400;
}

/* Nutrition Dashboard Page Styles */
.overall-progress-section {
    padding: 40px 20px;
    background: white;
}

.progress-box {
    background: #f0f8f0;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.progress-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff9800;
    font-weight: 600;
    font-size: 20px;
}

.progress-warning i {
    font-size: 18px;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.progress-text {
    color: #666;
    font-size: 18px;
}

.progress-percentage {
    color: #4CAF50;
    font-size: 2rem;
    font-weight: 700;
}

.progress-bar-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    border-radius: 6px;
    transition: width 0.8s ease;
}

.nutrition-cards-section {
    padding: 40px 20px;
    background: #f8f9fa;
}

.nutrition-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Container used by JS-rendered summary cards (adds spacing between cards) */
.nutrition-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    /* spacing between cards */
    align-items: start;
    margin-top: 12px;
}

.nutrition-cards .nutrition-card {
    margin: 0;
    /* remove any inline margins from JS templates */
    padding: 1.25rem;
    text-align: center;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nutrition-cards .nutrition-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nutrition-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.nutrition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: #f0f8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    font-size: 30px;
    margin: 0;
}

.card-title h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.status-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-tag.low {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.card-value {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.current-value {
    color: #4CAF50;
    font-size: 2rem;
    font-weight: 700;
}

.separator {
    color: #999;
    font-size: 1.5rem;
    font-weight: 400;
}

.goal-value {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.unit {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    margin-left: 5px;
}

.card-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
}

.card-progress {
    margin-top: 15px;
}

.card-progress .progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.card-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.goals-section {
    padding: 40px 20px;
    background: white;
}

.goals-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 100%;
}

.goals-header h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.goals-header i {
    color: #4CAF50;
    font-size: 1.6rem;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.dashboard-tab {
    flex: 1;
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.15rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dashboard-tab:hover {
    color: #4CAF50;
    background: #f8f9fa;
}

.dashboard-tab.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
    background: #f0f8f0;
}

.dashboard-tab i {
    font-size: 1.2rem;
}

/* Dashboard Tab Panels */
.dashboard-tab-content {
    margin-top: 20px;
}

.dashboard-tab-panel {
    display: none;
}

.dashboard-tab-panel.active {
    display: block;
}

.tab-panel-header h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-panel-header i {
    color: #4CAF50;
    font-size: 1.4rem;
}

/* Weekly Meal Plan Styles */
.weekly-plan-empty,
.weekly-plan-error {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.weekly-plan-empty .empty-icon,
.weekly-plan-error i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.weekly-plan-empty h3,
.weekly-plan-error p {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1rem;
}

.weekly-plan-empty p {
    font-size: 1.15rem;
    color: #999;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    min-width: 250px;
}

.weekly-plan-header {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.plan-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-info h3 i {
    color: #4CAF50;
    font-size: 1.6rem;
}

.plan-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 1.1rem;
}

.plan-date,
.plan-updated {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.plan-date i,
.plan-updated i {
    color: #4CAF50;
}

.plan-updated.outdated {
    color: #ff9800;
}

.plan-updated.outdated i {
    color: #ff9800;
}

.plan-outdated-warning {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #fff3cd;
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.15rem;
    color: #856404;
}

.plan-outdated-warning i {
    color: #ff9800;
    font-size: 1.3rem;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
}

.weekly-plan-days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1400px) {
    .weekly-plan-days {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .weekly-plan-days {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .weekly-plan-days {
        grid-template-columns: 1fr;
    }
}

.weekly-day-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.weekly-day-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.weekly-day-card.today {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.day-header h4 {
    font-size: 1.35rem;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.today-badge {
    background: #4CAF50;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.day-date {
    font-size: 1.1rem;
    color: #999;
    font-weight: 500;
}

.day-meals {
    margin-bottom: 1.25rem;
    min-height: 120px;
}

.day-meal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #4CAF50;
}

.meal-type-badge {
    display: none;
}

.meal-title {
    flex: 1;
    font-size: 1.05rem;
    color: #333;
    font-weight: 500;
}

.meal-calories {
    font-size: 1rem;
    color: #4CAF50;
    font-weight: 600;
    white-space: nowrap;
}

.no-meals {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem 0;
    font-size: 1.05rem;
}

.day-nutrition-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.nutrition-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    color: #666;
}

.nutrition-item i {
    color: #4CAF50;
    font-size: 1.1rem;
}

.nutrition-item span {
    font-weight: 600;
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.goal-icon {
    width: 40px;
    height: 40px;
    background: #fff3cd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9800;
    font-size: 20px;
    flex-shrink: 0;
}

.goal-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.goal-name {
    color: #333;
    font-weight: 600;
    font-size: 1.3rem;
}

.goal-progress {
    color: #666;
    font-size: 1.15rem;
}

.goal-progress-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 120px;
}

.goal-progress-bar .progress-bar {
    width: 100px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.goal-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    border-radius: 3px;
    transition: width 0.8s ease;
}

.progress-text {
    color: #666;
    font-size: 1.35rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* Health Tip Section Styles */
.health-tip-section {
    padding: 40px 20px;
    background: #f8f9fa;
}

.health-tip-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #4CAF50;
    margin-top: 25px;
    max-width: 100%;
}

.health-tip-header h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.health-tip-header i {
    color: #4CAF50;
    font-size: 1.3rem;
}

.health-tip-content p {
    color: #666;
    line-height: 1.7;
    font-size: 19px;
    margin: 0;
}

.health-tip-content strong {
    color: #333;
    font-weight: 600;
}

/* Goals row: left side Today's Goals list, right side Today's Meals Added panel */
.goals-row {
    display: grid;
    grid-template-columns: 1fr 450px;
    /* left side flexible, right side fixed width */
    gap: 30px;
    align-items: start;
    margin-top: 12px;
}

/* On narrow screens, collapse to single column: Meals panel moves below */
@media (max-width: 900px) {
    .goals-row {
        grid-template-columns: 1fr;
    }
}

/* Ensure goals-list fills the left side */
.goals-list {
    width: 100%;
}

/* Right panel styles */
.meals-added-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    padding: 14px;
    min-width: 260px;
}

/* meals list item styles */
.meals-added-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.clear-all-btn {
    background: #e53935;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.clear-all-btn:hover {
    background: #c62828;
}

.clear-all-btn i {
    margin-right: 4px;
    font-size: 0.7rem;
}

.meals-added-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.meal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 10px;
    border-bottom: 1px solid #e8e8e8;
    transition: background 0.2s ease;
}

.meal-item:hover {
    background: #f8f9fa;
}

.meal-item:last-child {
    border-bottom: none;
}

/* Source Group Header */
.source-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 12px 0 8px 0;
    font-size: 1rem;
}

.source-group-header:first-child {
    margin-top: 0;
}

.source-group-header i {
    font-size: 1.1rem;
}

.source-group-header strong {
    color: #2c3e50;
}

.source-summary {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-left: auto;
}

.meal-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meal-name {
    font-weight: 600;
    color: #222;
    font-size: 1rem;
    line-height: 1.4;
}

.meal-meta {
    font-size: 0.95rem;
    color: #666;
}

.meal-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meal-kcal {
    color: #4caf50;
    font-weight: 700;
    font-size: 1.05rem;
    min-width: 90px;
    text-align: right;
}

.meal-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meal-add,
.meal-delete {
    background: none;
    border: 0;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.2s;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meal-add:hover:not(:disabled) {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.meal-delete:hover {
    color: #e53935;
    background: rgba(229, 57, 53, 0.1);
}

.meal-add:disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Large desktop styles */
@media (max-width: 1400px) and (min-width: 1201px) {
    .nav-links {
        gap: 28px;
    }

    .nav-link {
        font-size: 18px;
        padding: 8px 10px;
        min-width: 60px;
    }

    .nav-link i {
        font-size: 16px;
        display: inline-block;
        min-width: 16px;
        text-align: center;
    }
}

/* Medium screen styles */
@media (max-width: 1200px) and (min-width: 1025px) {
    .nav-links {
        gap: 20px;
    }

    .nav-link {
        font-size: 15px;
        padding: 6px 8px;
        min-width: 55px;
    }

    .nav-link i {
        font-size: 13px;
        display: inline-block;
        min-width: 13px;
        text-align: center;
    }
}

/* Small tablet styles */
@media (max-width: 900px) and (min-width: 769px) {
    .nav-container {
        padding: 0 8px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-link {
        font-size: 13px;
        padding: 4px 6px;
        min-width: 45px;
    }

    .nav-link i {
        font-size: 11px;
        display: inline-block;
        min-width: 11px;
        text-align: center;
    }
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 901px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-link {
        font-size: 14px;
        padding: 5px 7px;
        min-width: 50px;
    }

    .nav-link i {
        font-size: 12px;
        display: inline-block;
        min-width: 12px;
        text-align: center;
    }

    .hero-title {
        font-size: 4rem;
        margin-left: -30px;
    }

    /* Grid auto-fit handles column count, just adjust gap for tablets */
    .recipe-cards-container {
        gap: clamp(1.25rem, 2vw, 1.875rem);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-container {
        height: 80px;
        padding: 0 15px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        max-width: 60px;
        max-height: 60px;
        aspect-ratio: 1 / 1;
        background: #ffffff;
        border-radius: 50%;
        border: 2px solid #4CAF50;
        flex-shrink: 0;
    }

    .logo-text h1 {
        font-size: 20px;
    }

    .logo-text p {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2.5rem;
        white-space: normal;
        margin-left: 0;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        min-height: 48px;
        font-size: 18px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title::before,
    .section-title::after {
        width: 40px;
    }

    .section-title::before {
        left: calc(50% - 60px);
    }

    .section-title::after {
        right: calc(50% - 60px);
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 30px 20px;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .search-filter-box {
        padding: 30px 20px;
    }


    .recipe-cards-container {
        /* Mobile: always 1 column, smaller minimum width */
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
        padding: 0.75rem;
        gap: 1.25rem;
    }

    .recipe-card {
        height: auto;
        min-height: 380px;
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .progress-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nutrition-cards-container {
        grid-template-columns: 1fr;
    }

    .goals-list {
        gap: 10px;
    }

    .goal-progress-bar {
        min-width: 100px;
    }

    .goal-progress-bar .progress-bar {
        width: 80px;
    }

    .features-container {
        gap: 20px;
    }

    .feature-item {
        padding: 15px;
    }
}

@media (max-width: 900px) {
    .filter-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
        height: 70px;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        max-width: 50px;
        max-height: 50px;
        aspect-ratio: 1 / 1;
        background: #ffffff;
        border-radius: 50%;
        border: 2px solid #4CAF50;
        flex-shrink: 0;
    }

    .logo-text h1 {
        font-size: 20px;
    }

    .logo-text p {
        display: none;
    }

    .main-content {
        margin-top: 70px;
    }

    .filter-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-section {
        padding: 60px 15px;
        min-height: 60vh;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .how-it-works {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-title::before,
    .section-title::after {
        display: none;
    }

    .page-header {
        padding: 40px 15px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .section-container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .search-filter-section {
        padding: 20px 15px;
        max-width: 100%;
        width: 100%;
    }

    .search-filter-box {
        padding: 25px 20px;
    }

    .recipe-results {
        padding: 20px 15px;
    }

    .overall-progress-section {
        padding: 20px 15px;
    }

    .progress-box {
        padding: 20px;
    }

    .nutrition-cards-section {
        padding: 20px 15px;
    }

    .nutrition-card {
        padding: 20px;
    }

    .goals-section {
        padding: 20px 15px;
    }

    .goals-container {
        padding: 20px;
    }

    .health-tip-section {
        padding: 20px 15px;
    }

    .health-tip-container {
        padding: 20px;
    }

    .goal-progress-bar {
        min-width: 80px;
    }

    .goal-progress-bar .progress-bar {
        width: 60px;
    }

    .goal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .goal-progress-bar {
        align-items: flex-start;
        width: 100%;
    }

    .features-container {
        gap: 15px;
    }

    .feature-item {
        padding: 10px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .feature-text {
        font-size: 20px;
    }

    .apply-filters-btn {
        min-height: 48px;
        font-size: 20px;
    }

    .search-input {
        font-size: 20px;
        padding: 16px 20px 16px 50px;
        min-height: 48px;
    }

    .filter-select {
        font-size: 20px;
        padding: 14px 16px;
        min-height: 48px;
    }

    .dashboard-link-btn {
        min-height: 40px;
        padding: 0.6rem 1rem;
        font-size: 1.1rem;
    }

    .modal-card {
        margin: 2rem auto;
        padding: 1rem;
        max-height: 90vh;
    }

    .modal-close {
        min-height: 44px;
        min-width: 44px;
        font-size: 1.8rem;
    }

    .footer {
        padding: 30px 15px;
    }
}

/* Daily Recommendations Page Styles */
.featured-tip-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

.featured-tip-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.tip-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    flex-shrink: 0;
}

.tip-content h2 {
    color: #4CAF50;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tip-content h3 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.tip-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.tip-btn {
    font-size: 1rem;
    padding: 12px 25px;
}

.recommendations-section {
    padding: 60px 20px;
    background: white;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-wrapper .section-title {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 15px;
}

.section-title-wrapper .section-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.recommendation-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.recommendation-card .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.recommendation-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.nutrition-icon {
    background: transparent;
    border: none;
    color: #495057 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f8f0;
    margin-bottom: 0.5rem;
}

.nutrition-icon i {
    font-size: 1.5rem;
    color: #4CAF50;
}

.exercise-icon {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.hydration-icon {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
}

.sleep-icon {
    background: linear-gradient(135deg, #673AB7 0%, #512DA8 100%);
}

.mental-icon {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.health-icon {
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
}

.recommendation-card .card-category {
    font-size: 1.1rem;
    color: #4CAF50;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommendation-card .card-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.recommendation-card .card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.recommendation-card .card-stats {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.recommendation-card .stat {
    text-align: center;
}

.recommendation-card .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #4CAF50;
}

.recommendation-card .stat-label {
    font-size: 1.1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommendation-card .action-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.recommendation-card .action-link:hover {
    color: #45a049;
    text-decoration: underline;
}

.weekly-focus-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.weekly-focus-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.focus-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 30px 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.focus-header h2 {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.focus-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.focus-content {
    padding: 40px;
}

.focus-description p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
}

.focus-goals {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.goal-item i {
    color: #4CAF50;
    font-size: 1.2rem;
}

.goal-item span {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}

.quick-tips-section {
    padding: 60px 20px;
    background: white;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
}

.tip-icon-small {
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.tip-text {
    color: #333;
    line-height: 1.6;
}

.tip-text strong {
    color: #4CAF50;
}

/* Responsive Design for Recommendations */
@media (max-width: 768px) {
    .featured-tip-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 20px;
    }

    .tip-content h3 {
        font-size: 1.5rem;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .focus-header {
        flex-direction: column;
        text-align: center;
    }

    .focus-header h2 {
        font-size: 1.5rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title,
.hero-subtitle,
.hero-description,
.hero-buttons {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

.hero-description {
    animation-delay: 0.4s;
}

.hero-buttons {
    animation-delay: 0.6s;
}

.card {
    animation: fadeInUp 0.8s ease forwards;
}

.card:nth-child(1) {
    animation-delay: 0.2s;
}

.card:nth-child(2) {
    animation-delay: 0.4s;
}

.card:nth-child(3) {
    animation-delay: 0.6s;
}

.recipe-card {
    animation: fadeInUp 0.8s ease forwards;
}

.recipe-card:nth-child(1) {
    animation-delay: 0.1s;
}

.recipe-card:nth-child(2) {
    animation-delay: 0.2s;
}

.recipe-card:nth-child(3) {
    animation-delay: 0.3s;
}

.recipe-card:nth-child(4) {
    animation-delay: 0.4s;
}

.recipe-card:nth-child(5) {
    animation-delay: 0.5s;
}

.recipe-card:nth-child(6) {
    animation-delay: 0.6s;
}

.nutrition-card {
    animation: fadeInUp 0.8s ease forwards;
}

.nutrition-card:nth-child(1) {
    animation-delay: 0.1s;
}

.nutrition-card:nth-child(2) {
    animation-delay: 0.2s;
}

.nutrition-card:nth-child(3) {
    animation-delay: 0.3s;
}

.nutrition-card:nth-child(4) {
    animation-delay: 0.4s;
}

.goal-item {
    animation: fadeInUp 0.8s ease forwards;
}

.goal-item:nth-child(1) {
    animation-delay: 0.1s;
}

.goal-item:nth-child(2) {
    animation-delay: 0.2s;
}

.goal-item:nth-child(3) {
    animation-delay: 0.3s;
}

.goal-item:nth-child(4) {
    animation-delay: 0.4s;
}

.goal-item:nth-child(5) {
    animation-delay: 0.5s;
}

.goal-item:nth-child(6) {
    animation-delay: 0.6s;
}

.feature-item {
    animation: fadeInUp 0.8s ease forwards;
}

.feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* Weekly Summary Styles - Simplified Single Card */
.weekly-summary-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.weekly-summary-section h3 {
    display: none;
    /* Hide the original h3 title since we moved it inside */
}

.simple-weekly-summary {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.summary-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12);
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
}

.summary-title {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    margin: 0 0 2rem 0;
}

.summary-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.summary-metrics .metric-item {
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem 1rem;
}

.summary-metrics .metric-label {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 500;
}

.summary-metrics .metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4CAF50;
    display: block;
}

/* All Summary Cards */
.summary-overview-card,
.summary-stats-card,
.summary-insights-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12);
    padding: 2rem;
    min-width: 0;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.overview-header h4,
.summary-stats-card h4,
.summary-insights-card h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.period-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
}

.nutrition-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.metric-item {
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.metric-icon {
    font-size: 1.2rem;
}

.metric-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: block;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4CAF50;
}

.summary-stats-card h4 {
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #764ba2;
}

.summary-insights-card h4 {
    margin-bottom: 1.5rem;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.insight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    background: #e8f5e9;
    color: #43a047;
    margin-bottom: 0.5rem;
}

.insight-badge.success {
    background: #d4edda;
    color: #155724;
}

.insight-badge.safe {
    background: #d1ecf1;
    color: #0c5460;
}

.insight-badge.healthy {
    background: #f8d7da;
    color: #721c24;
}

.insight-badge.quality {
    background: #fff3cd;
    color: #856404;
}

.insight-badge i {
    font-size: 1.1rem;
}

/* Responsive Design for Summary */
@media (max-width: 768px) {
    .summary-card {
        padding: 1.5rem;
    }

    .summary-title {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .summary-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .summary-metrics .metric-item {
        padding: 1rem;
    }

    .summary-metrics .metric-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .summary-card {
        padding: 1rem;
    }

    .summary-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {

    .summary-overview-card,
    .summary-stats-card,
    .summary-insights-card {
        padding: 1rem;
    }

    .overview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .metric-item {
        padding: 0.5rem;
    }

    .stats-grid {
        gap: 0.75rem;
    }

    .insights-list {
        gap: 0.5rem;
    }
}

/* ==========================================
   MEAL PLANNING QUESTIONNAIRE ENHANCEMENTS
   ========================================== */

/* Auto-selected checkbox options */
.checkbox-option.auto-selected {
    background-color: #e8f5e8;
    border: 2px solid #4CAF50;
    opacity: 0.8;
}

.checkbox-option.auto-selected label {
    color: #2e7d32;
    font-weight: 600;
}

/* Disabled checkbox options */
.checkbox-option.disabled {
    background-color: #f5f5f5;
    border-color: #ddd;
    opacity: 0.6;
    cursor: not-allowed;
}

.checkbox-option.disabled:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
    transform: none;
}

.checkbox-option.disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.checkbox-option.disabled label {
    color: #666;
    cursor: not-allowed;
}

/* Auto-selection info message */
.auto-selected-info {
    background: #e8f5e8;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.auto-selected-info i {
    color: #4CAF50;
}

/* Hidden options note */
.hidden-options-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0 0.5rem 0;
    color: #856404;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.hidden-options-note i {
    color: #f39c12;
    margin-top: 0.1rem;
    flex-shrink: 0;
}


/* ========================================
   REFACTORED SEASONAL PRODUCE STYLES
   ======================================== */

/* Hero Section (Refactored) */
.seasonal-main .hero {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    text-align: center;
    padding: 80px 2rem;
    margin-bottom: 3rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 110px;
}

.seasonal-main .hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.seasonal-main .hero h1 i {
    margin-right: 0.75rem;
    font-size: 1.1em;
}

.seasonal-main .hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 500;
}

/* Selector Section */
.selector-section {
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
}

/* State Selector Container */
.state-selector-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.selector-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.step-number {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    width: fit-content;
    letter-spacing: 0.5px;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-top: 0.25rem;
}

.state-dropdown {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CAF50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3.5rem;
}

.state-dropdown:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.state-dropdown:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.state-dropdown option {
    padding: 1rem;
    font-size: 1.1rem;
}

/* Season Selector Container */
.season-selector-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.season-display-btn {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    border: none;
    border-radius: 16px;
    cursor: default;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.season-display-btn .season-month-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.season-display-btn i {
    font-size: 2rem;
}

.month-display-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.month-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.season-display-btn.season-spring {
    background: linear-gradient(135deg, #8BC34A, #4CAF50);
}

.season-display-btn.season-summer {
    background: linear-gradient(135deg, #FFC107, #FF9800);
}

.season-display-btn.season-autumn {
    background: linear-gradient(135deg, #FF7043, #D84315);
}

.season-display-btn.season-winter {
    background: linear-gradient(135deg, #42A5F5, #1976D2);
}

/* Season Slider */
.season-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.season-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right,
            #FFC107 0%,
            #FFC107 16.67%,
            #FF7043 16.67%,
            #FF7043 41.67%,
            #42A5F5 41.67%,
            #42A5F5 66.67%,
            #8BC34A 66.67%,
            #8BC34A 91.67%,
            #FFC107 91.67%,
            #FFC107 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.season-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid #4CAF50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.season-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.4);
}

.season-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid #4CAF50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.season-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.4);
}

.season-labels {
    display: flex;
    position: relative;
    height: 2rem;
    padding: 0 0.5rem;
    align-items: center;
    justify-content: space-between;
}

.season-label {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    position: absolute;
    top: 0.5rem;
    transform: translateX(-50%);
    white-space: nowrap;
}

.season-label:nth-child(1) {
    /* Summer - Yellow segment center (0% to 16.67%) */
    left: calc(0.5rem + 8.33%);
}

.season-label:nth-child(2) {
    /* Autumn - Orange segment center (16.67% to 41.67%) */
    left: calc(0.5rem + 29.17%);
}

.season-label:nth-child(3) {
    /* Winter - Blue segment center (41.67% to 66.67%) */
    left: calc(0.5rem + 54.17%);
}

.season-label:nth-child(4) {
    /* Spring - Green segment center (66.67% to 91.67%) */
    left: calc(0.5rem + 79.17%);
}


/* Seasonal Lists Section */
.seasonal-lists {
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
}

.list-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.list-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.list-card-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #f0f0f0;
}

.list-card-title i {
    font-size: 1.8rem;
    color: #4CAF50;
}

.fruits-card .list-card-title i {
    color: #FF5722;
}

.vegetables-card .list-card-title i {
    color: #4CAF50;
}

.ingredient-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.load-more-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(3px);
}

.ingredient-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ingredient-row:hover {
    background: #e8f5e9;
    transform: translateX(5px);
}

.ingredient-icon {
    font-size: 1.4rem;
    color: #4CAF50;
    min-width: 30px;
    text-align: center;
}

.fruits-card .ingredient-icon {
    color: #FF5722;
}

.vegetables-card .ingredient-icon {
    color: #4CAF50;
}

.ingredient-name {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.status-bar {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-bar.in-season {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.status-bar.not-in-season {
    background: #e0e0e0;
    color: #999;
}

.empty-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
    font-size: 1.15rem;
    font-style: italic;
}

/* Recommended Recipes Section */
.recommended-section {
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.recommended-header {
    text-align: center;
    margin-bottom: 3rem;
}

.recommended-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.recommended-title i {
    font-size: 2rem;
    color: #4CAF50;
}

.recommended-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.recommended-section .recipe-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    height: 100%;
    width: 100%;
}

.recommended-section .recipe-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.recipe-image {
    width: 100%;
    height: 150px;
    min-height: 150px;
    max-height: 150px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-image i {
    font-size: 4rem;
    color: #ccc;
}

.recipe-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    width: 100%;
}

.recipe-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.recipe-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.recipe-info-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    color: #666;
}

.recipe-info-item i {
    color: #4CAF50;
    font-size: 0.9rem;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.seasonal-ingredients-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ingredient-tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: #e8f5e9;
    color: #4CAF50;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.recipe-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.btn-refresh,
.btn-remove {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap;
    min-height: 48px;
}

.btn-refresh {
    background: #f0f0f0;
    color: #333;
    border: 2px solid transparent;
}

.btn-refresh:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-refresh i {
    transition: transform 0.3s ease;
}

.btn-refresh:hover i {
    transform: rotate(180deg);
}

.btn-remove {
    background: white;
    color: #e74c3c;
    border: 2px solid #ffe5e5;
}

.btn-remove:hover {
    background: #ffe5e5;
    border-color: #e74c3c;
}

.btn-refresh:active,
.btn-remove:active {
    transform: scale(0.98);
}

.refresh-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    border: none;
    border-radius: 0 0 20px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #45a049, #7cb342);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

.refresh-btn:active {
    transform: scale(0.98);
}

.refresh-btn i {
    font-size: 1.1rem;
}

/* Responsive Design for Refactored Seasonal Page */
@media (max-width: 1024px) {
    .selector-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .seasonal-lists {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .seasonal-main .hero {
        padding: 60px 1.5rem;
        min-height: 220px;
        margin-top: 90px;
    }

    .seasonal-main .hero h1 {
        font-size: 2.2rem;
    }

    .seasonal-main .hero p {
        font-size: 1.15rem;
    }

    .selector-section {
        padding: 0 1.5rem;
        gap: 2rem;
        grid-template-columns: 1fr;
        min-width: unset;
    }

    .step-title {
        font-size: 1.15rem;
    }

    .state-dropdown {
        font-size: 1.05rem;
        padding: 1.1rem 1.25rem;
    }

    .season-display-btn {
        font-size: 1.2rem;
        padding: 1.25rem 1.5rem;
    }

    .seasonal-lists {
        padding: 0 1.5rem;
        gap: 2rem;
        grid-template-columns: 1fr;
        min-width: unset;
    }

    .list-card {
        padding: 1.5rem;
    }

    .list-card-title {
        font-size: 1.4rem;
    }

    .ingredient-name {
        font-size: 1.1rem;
    }

    .recommended-section {
        padding: 0 1.5rem;
    }

    .recommended-title {
        font-size: 1.6rem;
    }

    .recommended-subtitle {
        font-size: 1.05rem;
    }

    .recipe-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .seasonal-main .hero h1 {
        font-size: 1.8rem;
    }

    .seasonal-main .hero p {
        font-size: 1rem;
    }

    .step-number {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .step-title {
        font-size: 1.05rem;
    }

    .state-dropdown {
        font-size: 0.95rem;
    }

    .season-display-btn {
        font-size: 1.05rem;
        padding: 1rem 1.25rem;
    }

    .season-label {
        font-size: 0.85rem;
    }

    .list-card-title {
        font-size: 1.25rem;
    }

    .ingredient-row {
        padding: 1rem;
    }

    .ingredient-name {
        font-size: 1rem;
    }

    .status-bar {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
    }

    .recipe-title {
        font-size: 1.2rem;
    }

    .recipe-description {
        font-size: 0.95rem;
    }

    .refresh-btn {
        font-size: 1rem;
        padding: 0.9rem 1.25rem;
    }
}

/* Health News Section Styles */
.health-news-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 2rem;
    text-align: center;
    color: #fff;
}

.news-image i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    background: #e8f5e8;
    color: #2e7d32;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-summary {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e9ecef;
}

.news-date {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-source {
    color: #4CAF50;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.news-link:hover {
    background: #4CAF50;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.news-link i {
    font-size: 0.9rem;
}

/* Responsive Design for News Section */
@media (max-width: 768px) {
    .health-news-section {
        padding: 3rem 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-card {
        margin: 0 1rem;
    }

    .news-image {
        padding: 1.5rem;
    }

    .news-image i {
        font-size: 2rem;
    }

    .news-content {
        padding: 1.2rem;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .news-summary {
        font-size: 0.95rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news-link {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1.1rem;
    }
}

/* ============================================
   New Recipe Modal Design
   ============================================ */

.recipe-modal-new {
    max-width: 1200px !important;
    width: 90vw !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0 !important;
}

/* Hero Image with Overlay */
.recipe-modal-hero {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.recipe-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-modal-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 2rem;
    color: white;
}

.recipe-modal-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.recipe-modal-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
}

.recipe-modal-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Category Tag */
.recipe-category-tag {
    display: flex;
    flex-wrap: wrap;
    margin: 1.5rem 2rem 0.5rem;
    gap: 1.2rem;
}

/* Info Cards Row */
.recipe-info-cards {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    justify-content: space-around;
}

.recipe-info-card {
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.recipe-info-card i {
    font-size: 1.8rem;
    color: #4CAF50;
}

.info-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

/* Tabs */
.recipe-modal-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    padding: 0 2rem;
}

.recipe-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.recipe-tab:hover {
    color: #4CAF50;
    background: #f8f9fa;
}

.recipe-tab.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.recipe-tab i {
    font-size: 1.1rem;
}

/* Tab Content */
.recipe-modal-content {
    padding: 2rem;
    padding-bottom: 5rem;
    /* Add padding to prevent content from being hidden behind fixed footer */
}

.recipe-tab-content {
    display: none;
}

.recipe-tab-content.active {
    display: block;
}

/* Fixed Footer for Modal Buttons */
.recipe-modal-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1.25rem 2rem;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.recipe-modal-footer .btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.recipe-modal-footer .btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.recipe-modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.recipe-modal-footer .btn-primary:disabled {
    background: #888;
    cursor: not-allowed;
    transform: none;
}

.recipe-modal-footer .btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.recipe-modal-footer .btn-secondary:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

/* Ingredients List */
.recipe-ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recipe-ingredients-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #4CAF50;
    font-size: 1.05rem;
    color: #333;
}

.recipe-ingredients-list li:before {
    content: "\2022";
    color: #4CAF50;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Instructions List */
.recipe-instructions-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
}

.recipe-instructions-list li {
    counter-increment: step-counter;
    padding: 1rem 1rem 1rem 3.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}

.recipe-instructions-list li:before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: #4CAF50;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

/* Nutrition Grid */
.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.nutrition-grid .card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.nutrition-grid .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nutrition-grid .key {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.nutrition-grid .val {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4CAF50;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 768px) {
    .recipe-modal-new {
        max-width: 95%;
    }

    .recipe-modal-hero {
        height: 200px;
    }

    .recipe-modal-hero-title {
        font-size: 1.5rem;
    }

    .recipe-info-cards {
        flex-direction: column;
        padding: 1rem;
    }

    .recipe-modal-tabs {
        padding: 0 1rem;
    }

    .recipe-tab {
        font-size: 0.9rem;
        padding: 0.75rem 0.5rem;
    }

    .recipe-tab span {
        display: none;
    }

    .recipe-modal-content {
        padding: 1.5rem 1rem;
    }
}

/* Seasonal Tag Items */
.seasonal-tag-item {
    display: inline-block;
    padding: 0.6rem 1.1rem;
    margin-right: 1rem;
    margin-bottom: 0.75rem;
    background: #e8f5e9;
    color: #4CAF50;
    border-radius: 18px;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Recipe Loading Animation */
.recipe-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 400px;
    grid-column: 1 / -1;
    /* Span all grid columns */
    width: 100%;
}

.recipe-loading-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid #f0f0f0;
    border-top: 6px solid #4CAF50;
    border-radius: 50%;
    animation: recipeSpinner 1s linear infinite;
    margin-bottom: 2rem;
}

@keyframes recipeSpinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.recipe-loading-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 0.5rem;
    animation: pulseFade 1.5s ease-in-out infinite;
}

.recipe-loading-subtext {
    font-size: 1.1rem;
    color: #888;
    text-align: center;
    max-width: 400px;
}

@keyframes pulseFade {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Loading dots animation */
.recipe-loading-text::after {
    content: '';
    animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes loadingDots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* Seasonal Filter Card - Modern Toggle Design */
.seasonal-filter-card {
    margin: 2rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdf9 100%);
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.seasonal-filter-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15);
    transform: translateY(-2px);
}

.seasonal-toggle {
    display: none;
}

.seasonal-label {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    user-select: none;
}

.seasonal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.seasonal-icon i {
    font-size: 1.8rem;
    color: #4CAF50;
    transition: all 0.3s ease;
}

.seasonal-content {
    flex: 1;
}

.seasonal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.seasonal-hint {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

/* Toggle Switch */
.seasonal-toggle-switch {
    position: relative;
    width: 64px;
    height: 32px;
    background: #ddd;
    border-radius: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Checked State */
.seasonal-toggle:checked+.seasonal-label .seasonal-toggle-switch {
    background: #4CAF50;
}

.seasonal-toggle:checked+.seasonal-label .toggle-slider {
    left: 35px;
}

.seasonal-toggle:checked+.seasonal-label .seasonal-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    transform: scale(1.05);
}

.seasonal-toggle:checked+.seasonal-label .seasonal-icon i {
    color: white;
    animation: leafBounce 0.5s ease;
}

.seasonal-toggle:checked+.seasonal-label .seasonal-title {
    color: #2e7d32;
}

/* Focus State for Accessibility */
.seasonal-toggle:focus+.seasonal-label {
    outline: 3px solid rgba(76, 175, 80, 0.3);
    outline-offset: 2px;
    border-radius: 16px;
}

/* Animation */
@keyframes leafBounce {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-15deg) scale(1.1);
    }

    75% {
        transform: rotate(15deg) scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .seasonal-filter-card {
        padding: 1.25rem 1.5rem;
    }

    .seasonal-label {
        gap: 1rem;
    }

    .seasonal-icon {
        width: 48px;
        height: 48px;
    }

    .seasonal-icon i {
        font-size: 1.5rem;
    }

    .seasonal-title {
        font-size: 1.15rem;
    }

    .seasonal-hint {
        font-size: 0.9rem;
    }
}

/* Seasonal Badge on Recipe Cards */
.seasonal-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    z-index: 10;
}

.seasonal-badge i {
    font-size: 1rem;
}

/* Seasonal Page - Recipes Loading Container */
.recipes-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    width: 100%;
    padding: 3rem 1rem;
}

.loading-spinner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner-content .spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-spinner-content .loading-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.loading-spinner-content .loading-subtext {
    font-size: 1rem;
    color: #7f8c8d;
    margin: 0;
}

/* Senior-Friendly Dialog Styles */
.senior-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.senior-dialog {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.senior-dialog-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.senior-dialog-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.senior-dialog-message {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    white-space: pre-line;
}

.senior-dialog-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.senior-dialog-actions .btn {
    min-width: 180px;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Button Success variant */
.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-outline {
    background: white;
    color: #666;
    border: 2px solid #ddd;
}

.btn-outline:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Daily Tips Section - Enhanced for Elderly Users */
#daily-tips {
    margin: 4rem 0 3rem;
}

#daily-tips .section-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 3px solid #4CAF50;
    transition: box-shadow 0.3s ease;
}

.tips-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    font-size: 1.6rem;
    color: #4CAF50;
    font-weight: 600;
}

.tips-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.tips-heading .section-title {
    margin-bottom: 1px;
    font-size: 2.6rem;
    color: #2e7d32;
    text-align: center;
    font-weight: 700;
}

.tips-heading .section-subtitle {
    margin: 0;
    color: #555;
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tips-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tips-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.9rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(67, 160, 71, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tips-refresh-btn i {
    font-size: 1.2rem;
}

.tips-refresh-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(67, 160, 71, 0.4);
}

.tips-refresh-btn:focus-visible {
    outline: 4px solid rgba(67, 160, 71, 0.45);
    outline-offset: 3px;
}

.tips-refresh-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
    box-shadow: 0 10px 22px rgba(67, 160, 71, 0.25);
}

.tips-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff8e1;
    border-left: 6px solid #ff9800;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
    font-weight: 500;
}

.tips-empty {
    font-size: 1.4rem;
    color: #666;
    text-align: center;
    margin: 2rem 0 0;
    font-weight: 500;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tip-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.tip-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #4CAF50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    flex-shrink: 0;
}

.tip-card[data-category="hydration"] .tip-icon {
    background: #2196F3;
}

.tip-card[data-category="calcium"] .tip-icon {
    background: #9C27B0;
}

.tip-card[data-category="fiber"] .tip-icon {
    background: #4CAF50;
}

.tip-card[data-category="protein"] .tip-icon {
    background: #FF5722;
}

.tip-card[data-category="heart_health"] .tip-icon {
    background: #E91E63;
}

.tip-card[data-category="vitaminD"] .tip-icon,
.tip-card[data-category="vitamind"] .tip-icon {
    background: #FFC107;
}

.tip-card[data-category="antioxidants"] .tip-icon {
    background: #8BC34A;
}

.tip-card[data-category="potassium"] .tip-icon {
    background: #FF9800;
}

.tip-card[data-category="iron"] .tip-icon {
    background: #795548;
}

.tip-card[data-category="balanced_diet"] .tip-icon {
    background: #009688;
}

.tip-card[data-category="mental_health"] .tip-icon {
    background: #673AB7;
}

.tip-card[data-category="wellness"] .tip-icon {
    background: #00BCD4;
}

.tip-card[data-category="hygiene"] .tip-icon {
    background: #03A9F4;
}

.tip-card[data-category="metabolism"] .tip-icon {
    background: #FF5722;
}

.tip-card[data-category="general"] .tip-icon {
    background: #607D8B;
}

.tip-category {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    border: 2px solid #4CAF50;
}

.tip-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #333;
    font-weight: 400;
}

.tip-toggle {
    align-self: flex-start;
    background: #4CAF50;
    border: none;
    color: #ffffff;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.tip-toggle:hover,
.tip-toggle:focus {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    outline: none;
}

.tip-toggle:focus-visible {
    outline: 4px solid rgba(76, 175, 80, 0.5);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    #daily-tips .section-container {
        padding: 2.5rem 1.5rem;
    }

    .tips-heading .section-title {
        font-size: 2.2rem;
    }

    .tips-heading .section-subtitle {
        font-size: 1.2rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tips-refresh-btn {
        align-self: center;
        font-size: 1.1rem;
        padding: 0.85rem 1.7rem;
    }

    .tip-card {
        padding: 2rem;
    }

    .tip-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .tip-category {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }

    .tip-text {
        font-size: 1.2rem;
        line-height: 1.7;
    }

    .tip-toggle {
        font-size: 1.2rem;
        padding: 0.9rem 1.8rem;
    }
}

.tips-filter-wrapper {
    background: #f1faf4;
    border: 2px solid #d4efd9;
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.08);
}

.tips-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tips-filter-group {
    border: none;
    padding: 0;
    margin: 0;
}

.tips-filter-group legend {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 0.75rem;
}

.filter-hint-inline {
    font-size: 0.9rem;
    font-weight: 400;
    color: #5f7a61;
    font-style: italic;
    margin-left: 0.5rem;
}

.tips-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.tips-filter-option {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border: 2px solid #d7eadc;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tips-filter-option:hover {
    border-color: #4caf50;
    background: #f1f8f4;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.15);
}

.tips-filter-option:focus-within {
    border-color: #4caf50;
    background: #e8f5e9;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

/* Selected state - when checkbox is checked */
.tips-filter-option:has(.tips-filter-checkbox:checked) {
    background: #e8f5e9;
    border-color: #2e7d32;
    font-weight: 600;
}

.tips-filter-checkbox {
    width: 22px;
    height: 22px;
    accent-color: #2e7d32;
    cursor: pointer;
    flex-shrink: 0;
}

.tips-filter-checkbox:focus-visible {
    outline: 3px solid #4caf50;
    outline-offset: 2px;
    border-radius: 4px;
}

.tips-filter-label {
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    color: #333;
    transition: color 0.2s ease;
}

/* Label color change when checkbox is checked */
.tips-filter-checkbox:checked + .tips-filter-label {
    color: #2e7d32;
}

.tips-filter-empty {
    margin: 0;
    font-size: 1rem;
    color: #546e7a;
}

.tips-filter-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.tips-filter-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    font-size: 1.05rem;
    font-weight: 600;
    min-width: 160px;
    justify-content: center;
    transition: all 0.25s ease;
}

.tips-filter-actions .btn-primary {
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.tips-filter-actions .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.tips-filter-actions .btn-secondary:hover {
    transform: translateY(-1px);
}

.tips-filter-hint {
    margin: 0.7rem 0 0;
    font-size: 1.2rem;
    color: #4f5b62;
}

@media (max-width: 768px) {
    .tips-filter-wrapper {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .tips-filter-group legend {
        font-size: 1.1rem;
    }

    .tips-filter-options {
        gap: 0.7rem;
    }

    .tips-filter-option {
        padding: 0.5rem 0.9rem;
        font-size: 1rem;
    }

    .tips-filter-checkbox {
        width: 20px;
        height: 20px;
    }

    .tips-filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .tips-filter-actions .btn {
        width: 100%;
        min-width: unset;
        justify-content: center;
        padding: 0.85rem 1.5rem;
    }

    .tips-filter-hint {
        font-size: 1.05rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .tips-filter-wrapper {
        padding: 1.25rem 1rem;
    }

    .tips-filter-group legend {
        font-size: 1.05rem;
    }

    .filter-hint-inline {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    .tips-filter-option {
        font-size: 0.95rem;
        padding: 0.45rem 0.8rem;
    }
}

.tips-footer {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.tips-footer .tips-refresh-btn {
    font-size: 1.1rem;
    padding: 0.9rem 1.8rem;
}