:root {
    /* Light Theme (Default) */
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --background-color: #f1f5f9;
    --card-color: #ffffff;
    --card-secondary-color: #f8fafc;
    --card-blue: #e0e7ff;
    --text-color: #1e293b;
    --text-blue: #312e81;
    --light-text-color: #64748b;
    --border-color: #e2e8f0;
    --danger-color: #ef4444;
    --success: #22c55e;
    --success-light: #dcfce7;
    --success-rgb: 34, 197, 94;
    --error: #ef4444;
    --error-light: #fef2f2;
    --warning: #f59e0b;
    --warning-light: #fefbeb;
}

html[data-theme="dark"] {
    --primary-color: #818cf8;
    --primary-dark: #a78bfa;
    --background-color: #0f172a;
    --card-color: #1e293b;
    --card-secondary-color: #1e293b;
    --card-blue: #312e81;
    --text-color: #e2e8f0;
    --text-blue: #e0e7ff;
    --light-text-color: #94a3b8;
    --border-color: #334155;
    --danger-color: #f87171;
    --success: #34d399;
    --success-light: #064e3b;
    --success-rgb: 52, 211, 153;
    --error: #f87171;
    --error-light: #7f1d1d;
    --warning: #fbbf24;
    --warning-light: #78350f;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

#app {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--card-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
    transition: background-color 0.3s, border-color 0.3s;
}

header h1 { font-size: 1.6rem; font-weight: 700; color: var(--primary-dark); transition: color 0.3s; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--text-color); padding: 0.5rem; }
.icon-btn svg { width: 24px; height: 24px; }

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    overflow: hidden;
    max-width: 100vw;
}

.view {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

.view.active { display: flex; }

footer {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    height: 70px;
    background-color: var(--card-color);
    border-top: none;
    z-index: 10;
    transition: background-color 0.3s, border-color 0.3s;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--light-text-color);
    cursor: pointer;
    transition: color 0.3s;
    height: 100%;
    user-select: none;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.7rem;
}

.nav-item.active {
    color: var(--primary-color);
}

#add-food-fab {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transform: translateY(-20px);
    border: 4px solid var(--card-color);
    transition: background-color 0.3s, border-color 0.3s;
    grid-column: 3;
    justify-self: center;
}

#add-food-fab svg {
    width: 32px;
    height: 32px;
}

#add-food-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.6);
}

.card {
    background-color: var(--card-color);
    border-radius: 24px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: background-color 0.3s, border-color 0.3s;
    max-width: 100%;
    overflow-x: hidden;
}

.card h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
    padding: 0 0.5rem;
}

#search-result {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 1rem;
}

#search-result-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

#search-result-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

#search-result-content p {
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 0.95rem;
    hyphens: auto;
    max-width: 100%;
    display: inline-block;
}

.calorie-card {
    background-color: var(--card-blue);
    color: var(--text-blue);
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.calorie-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--light-text-color);
}

#main-calories {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
    margin: 0.75rem 0;
}

.calorie-card > span {
    font-size: 1rem;
    font-weight: 500;
}

#main-goal {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-text-color);
    margin-top: 0;
}

.macro-summary-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--light-text-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-text-color);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--card-secondary-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    flex-grow: 1;
    padding: 0.85rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-color);
}

.recent-meals-card {
    background-color: var(--card-secondary-color);
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    flex-grow: 1;
    overflow: hidden;
    margin-bottom: 0;
}

#food-list {
    list-style: none;
    padding: 0 1rem;
    flex-grow: 1;
    overflow-y: auto;
}

#food-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    background-color: var(--card-color);
    animation: fadeInUp 0.5s ease forwards;
}

.food-name {
    font-weight: 500;
}

.food-calories {
    color: var(--primary-dark);
    font-weight: 600;
    margin-left: 1rem;
}

.delete-food-btn {
    background: none;
    border: none;
    color: var(--light-text-color);
    cursor: pointer;
    padding: 0.5rem;
}

.delete-food-btn:hover {
    color: var(--danger-color);
}

.placeholder-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--light-text-color);
    font-style: italic;
}

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

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

#dashboard-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

#dashboard-chat-btn:active {
    transform: scale(0.98);
}

#dashboard-chat-btn svg {
    width: 24px;
    height: 24px;
}

#dashboard-chat-btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-color);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.onboarding-modal-content {
    max-width: 500px;
    text-align: center;
}

.onboarding-header {
    margin-bottom: 2rem;
}

.onboarding-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--light-text-color);
    font-size: 1.1rem;
}

.onboarding-content {
    text-align: left;
}

.onboarding-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.intro-text {
    color: var(--light-text-color);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.features-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    padding: 1rem;
    background: var(--card-secondary-color);
    border-radius: 8px;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.instructions-container {
    margin-bottom: 2rem;
}

.instructions-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.instructions-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.time-estimate {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.instructions-steps {
    list-style: none;
    padding: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--card-secondary-color);
    border-radius: 8px;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.step-content p {
    color: var(--light-text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-secondary {
    background: var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.api-key-section {
    margin-bottom: 2rem;
}

.api-key-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--light-text-color);
    font-weight: 400;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input {
    width: 100%;
    padding-right: 3rem;
}

.toggle-visibility {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--light-text-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.toggle-visibility:hover {
    background: var(--card-secondary-color);
}

.validation-status {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.validation-status.success {
    background: var(--success-light);
    color: var(--success);
}

.validation-status.error {
    background: var(--error-light);
    color: var(--error);
}

.validation-status.loading {
    background: var(--card-secondary-color);
    color: var(--light-text-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
}

.privacy-info {
    margin-bottom: 2rem;
}

.privacy-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--light-text-color);
    font-size: 0.9rem;
}

.privacy-icon {
    font-size: 1.1rem;
}

.help-section {
    margin-top: 2rem;
}

.help-details {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.help-details summary {
    padding: 1rem;
    background: var(--card-secondary-color);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    transition: background-color 0.3s;
}

.help-details summary:hover {
    background: var(--border-color);
}

.help-content {
    padding: 1rem;
}

.help-item {
    margin-bottom: 1rem;
}

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

.help-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.help-item p {
    color: var(--light-text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .onboarding-modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .onboarding-header {
        margin-bottom: 1.5rem;
    }
    
    .onboarding-header h1 {
        font-size: 1.5rem;
    }
    
    .onboarding-content {
        font-size: 0.9rem;
    }
    
    .instructions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .step-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .features-preview {
        grid-template-columns: 1fr;
    }
}

.plan-required-modal-content {
    max-width: 500px;
    text-align: center;
}

.plan-required-header {
    margin-bottom: 2rem;
}

.plan-required-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-required-subtitle {
    color: var(--light-text-color);
    font-size: 1.1rem;
    line-height: 1.5;
}

.plan-required-content {
    text-align: left;
}

.plan-required-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-item {
    padding: 1rem;
    background: var(--card-secondary-color);
    border-radius: 8px;
    text-align: center;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.plan-required-actions {
    margin-bottom: 1rem;
}

.plan-required-note {
    color: var(--light-text-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .plan-required-modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .plan-required-header {
        margin-bottom: 1.5rem;
    }
    
    .plan-required-header h2 {
        font-size: 1.5rem;
    }
    
    .plan-required-content {
        font-size: 0.9rem;
    }
    
    .plan-required-benefits {
        grid-template-columns: 1fr;
    }
}

/* Camera Modal Styles */
#camera-modal .modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 90vw;
    width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#camera-modal h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

#camera-modal p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

#camera-feed {
    width: 100%;
    max-width: 280px;
    height: 400px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

#camera-modal .modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

#camera-modal .btn {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

#snap-photo {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

#snap-photo:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

#choose-gallery {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#choose-gallery:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

#cancel-camera {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#cancel-camera:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Food Analysis Modal Styles */
#food-info-modal .modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 90vw;
    width: 450px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#food-info-modal h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#captured-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid rgba(79, 70, 229, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

#food-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

#food-info h3 {
    color: #4f46e5;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

#food-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

#food-info .nutrition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#food-info .nutrition-item:last-child {
    border-bottom: none;
}

#food-info .nutrition-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

#food-info .nutrition-value {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

#food-info-modal .modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#food-info-modal .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

#add-to-intake {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

#add-to-intake:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

#cancel-food-info {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#cancel-food-info:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Loading Modal Styles */
#loading-modal .modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 90vw;
    width: 300px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#loading-modal p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

#loading-modal::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4f46e5;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #camera-modal .modal-content,
    #food-info-modal .modal-content {
        width: 95vw;
        padding: 1.5rem;
    }
    
    #camera-feed {
        height: 350px;
        max-width: 250px;
    }
    
    #captured-image {
        height: 150px;
    }
    
    #food-info-modal .modal-actions {
        flex-direction: column;
    }
    
    #food-info-modal .btn {
        width: 100%;
    }
}

/* Simple fix for the green line - just ensure no green colors */
html[data-theme="dark"] {
    --theme-color: #0f172a;
}

html[data-theme="light"] {
    --theme-color: #4f46e5;
}

/* Offline banner positioning fix */
#offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ef4444;
    color: white;
    text-align: center;
    padding: 0.5rem;
    z-index: 9999;
    font-size: 0.9rem;
    font-weight: 500;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

#offline-banner.show {
    transform: translateY(0);
}

/* Offline analysis styling */
.offline-analysis {
    text-align: center;
    padding: 1rem;
}

.offline-analysis h3 {
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.offline-analysis p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.offline-analysis small {
    color: var(--light-text-color);
    font-style: italic;
}
