/* =============================================================================
   Import/Export Tab — v1.4.5 Design System
   ============================================================================= */

/* --- Teaser (Free users) --- */
.weam-ie-teaser {
    text-align: center;
    padding: 48px 24px;
    margin-bottom: 28px;
}
.weam-ie-teaser-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--weam-purple-500, #6366F1), var(--weam-purple-600, #4F46E5));
    color: white;
    padding: 8px 24px;
    border-radius: 9999px;
    font-size: var(--weam-text-xl);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.weam-ie-teaser h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}
.weam-ie-teaser-lead {
    font-size: var(--weam-text-xl);
    color: var(--weam-text-muted, #64748B);
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.weam-ie-teaser-features {
    background: white;
    border-radius: var(--weam-r-pill);
    padding: 24px 28px;
    text-align: left;
    max-width: 480px;
    margin: 0 auto 32px;
    border: 1px solid var(--weam-border, #E2E8F0);
}
.weam-ie-teaser-features h3 {
    font-size: var(--weam-text-lg);
    font-weight: 600;
    margin-bottom: 16px;
}
.weam-ie-teaser-feat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--weam-border, #E2E8F0);
}
.weam-ie-teaser-feat:last-child { border-bottom: none; }
.weam-ie-check {
    color: var(--weam-success, #059669);
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}
.weam-ie-teaser-feat strong { display: block; }
.weam-ie-teaser-feat span { font-size: var(--weam-text-md); color: var(--weam-text-muted, #64748B); }
.weam-ie-teaser-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--weam-purple-500, #6366F1);
    color: white;
    font-size: var(--weam-text-xl);
    font-weight: 600;
    border: none;
    border-radius: var(--weam-r-lg);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.weam-ie-teaser-cta:hover {
    background: var(--weam-purple-600, #4F46E5);
    color: white;
}

/* --- Section headers --- */
.weam-ie-section-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.weam-ie-ico { font-size: var(--weam-text-2xl); }
.weam-ie-section-hdr h3 {
    font-size: var(--weam-text-xl);
    font-weight: 700;
    margin: 0;
}
.weam-ie-section-desc {
    font-size: var(--weam-text-md);
    color: var(--weam-text-muted, #64748B);
    margin-bottom: 16px;
}

/* --- Card grids --- */
.weam-ie-card-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
}
.weam-ie-col-1-2 { grid-template-columns: 1fr 2fr; }
.weam-ie-col-eq { grid-template-columns: 1fr 1fr; }

/* Disabled state for non-pro */
.weam-ie-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* --- Cards --- */
.weam-ie-card {
    background: white;
    border: 1px solid var(--weam-border, #E2E8F0);
    border-radius: var(--weam-r-pill);
    padding: 24px;
    transition: box-shadow 0.15s;
}
.weam-ie-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.weam-ie-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.weam-ie-card-icon { font-size: var(--weam-text-2xl); }
.weam-ie-card-title { font-weight: 600; font-size: var(--weam-text-lg); }
.weam-ie-card-desc {
    font-size: var(--weam-text-md);
    color: var(--weam-text-muted, #64748B);
    margin-bottom: 16px;
}

/* --- Count badge --- */
.weam-ie-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--weam-slate-200, #E2E8F0);
    border-radius: 9999px;
    font-size: var(--weam-text-sm);
    font-weight: 600;
    color: var(--weam-slate-600, #475569);
}

/* --- Inputs --- */
.weam-ie-label {
    display: block;
    font-size: var(--weam-text-md);
    font-weight: 500;
    margin-bottom: 6px;
}
.weam-ie-input {
    width: 100%;
    padding: 10px 12px;
    font-size: var(--weam-text-md);
    border: 1px solid var(--weam-border-strong, #CBD5E1);
    border-radius: var(--weam-r-md);
    margin-bottom: 16px;
    font-family: inherit;
}
.weam-ie-input:focus {
    outline: none;
    border-color: var(--weam-purple-500, #6366F1);
    box-shadow: 0 0 0 3px var(--weam-purple-100, #E0E7FF);
}

/* --- Buttons --- */
/* CTD: now in weam-ctd.css */

/* --- Backup list --- */
.weam-ie-backup-list {
    max-height: 300px;
    overflow-y: auto;
}
.weam-ie-backup-max {
    margin-top: 12px;
    font-size: var(--weam-text-base);
    color: var(--weam-text-muted, #64748B);
}

/* Backup items (rendered by JS) */
.weam-backup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--weam-border, #E2E8F0);
    border-radius: var(--weam-r-lg);
    margin-bottom: 8px;
    background: var(--weam-slate-50, #F8FAFC);
    transition: all 0.15s;
}
.weam-backup-item:hover {
    background: var(--weam-purple-50, #EEF2FF);
    border-color: var(--weam-purple-200, #C7D2FE);
}
.weam-backup-item .backup-info { flex: 1; }
.weam-backup-item .backup-name {
    font-weight: 500;
    font-size: var(--weam-text-md);
    color: var(--weam-text, #1E293B);
    margin-bottom: 2px;
}
.weam-backup-item .backup-name .auto-tag {
    font-weight: 400;
    color: var(--weam-text-muted, #64748B);
    font-size: var(--weam-text-base);
}
.weam-backup-item .backup-meta {
    font-size: var(--weam-text-base);
    color: var(--weam-text-muted, #64748B);
}
.weam-backup-item .backup-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}
.weam-backup-item .backup-actions .weam-ie-btn-restore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: var(--weam-text-base);
    font-weight: 500;
    background: white;
    color: var(--weam-text, #1E293B);
    border: 1px solid var(--weam-border-strong, #CBD5E1);
    border-radius: var(--weam-r-md);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.weam-backup-item .backup-actions .weam-ie-btn-restore:hover {
    background: var(--weam-slate-50, #F8FAFC);
    border-color: var(--weam-slate-400, #94A3B8);
}
.weam-backup-item .backup-actions .weam-ie-btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    color: var(--weam-error, #DC2626);
    border: 1px solid #FCA5A5;
    border-radius: var(--weam-r-md);
    cursor: pointer;
    font-size: var(--weam-text-md);
    transition: all 0.15s;
}
.weam-backup-item .backup-actions .weam-ie-btn-delete:hover {
    background: var(--weam-error-light);
}

/* No backups state */
.weam-no-backups {
    text-align: center;
    padding: 30px;
    color: var(--weam-text-muted, #64748B);
    background: var(--weam-slate-50, #F8FAFC);
    border-radius: var(--weam-r-lg);
}

/* --- File input --- */
.weam-ie-file-row {
    margin-bottom: 16px;
}
.weam-ie-file-row input[type="file"] {
    font-size: var(--weam-text-md);
    width: 100%;
    font-family: inherit;
}

/* --- Warning note --- */
.weam-ie-warn-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: #FEF9E7;
    border-left: 4px solid var(--weam-amber-500, #F59E0B);
    border-radius: 0 6px 6px 0;
    font-size: var(--weam-text-md);
    color: var(--weam-amber-800);
    margin-top: 16px;
}
.weam-ie-warn-note strong { font-weight: 600; }

/* --- Divider --- */
.weam-ie-divider {
    border: none;
    border-top: 1px solid var(--weam-border, #E2E8F0);
    margin: 28px 0;
}

/* --- Tips box --- */
.weam-ie-tips-box {
    background: white;
    border: 1px solid var(--weam-border, #E2E8F0);
    border-radius: var(--weam-r-pill);
    padding: 20px 24px;
}
.weam-ie-tips-title {
    font-weight: 600;
    font-size: var(--weam-text-md);
    margin-bottom: 10px;
}
.weam-ie-tips-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.weam-ie-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--weam-text-md);
    color: var(--weam-text-muted, #64748B);
}
.weam-ie-tip-dot {
    color: var(--weam-amber-500, #F59E0B);
    flex-shrink: 0;
    margin-top: 1px;
}
