/* ============================================
   EXPORT PREVIEW MODAL - Privacy-focused export
   ============================================ */
.export-preview-content {
    max-width: 480px;
    padding: 0;
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
}

.export-preview-content .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle, #e2e8f0);
    background: var(--surface-secondary, #f8fafc);
}

.export-preview-content .modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin: 0;
}

.export-preview-content .modal-body {
    padding: 20px 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.export-privacy-notice {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-lg, 10px);
    margin-bottom: 20px;
}

.export-privacy-notice i {
    color: #d97706;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.export-privacy-notice strong {
    display: block;
    color: #92400e;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.export-privacy-notice p {
    color: #a16207;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.5;
}

.export-anonymize-option {
    padding: 16px;
    background: var(--surface-secondary, #f8fafc);
    border-radius: var(--radius-lg, 10px);
    margin-bottom: 20px;
    border: 1px solid var(--border-subtle, #e2e8f0);
}

.export-anonymize-option .toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
}

.export-anonymize-option .toggle-switch {
    width: 44px;
    height: 24px;
    background: var(--slate-300, #cbd5e1);
    border-radius: 12px;
    position: relative;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.export-anonymize-option .toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.export-anonymize-option input:checked + .toggle-switch {
    background: var(--primary-500, #14b8a6);
}

.export-anonymize-option input:checked + .toggle-switch::after {
    transform: translateX(20px);
}

.export-anonymize-option input {
    display: none;
}

.export-anonymize-option .option-hint {
    margin: 8px 0 0 56px;
    font-size: 0.75rem;
    color: var(--text-tertiary, #94a3b8);
}

.export-preview-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.export-preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: var(--radius-lg, 10px);
    overflow: hidden;
    max-height: 200px;
    overflow-y: auto;
}

.export-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle, #e2e8f0);
    font-size: 0.875rem;
}

.export-preview-item:last-child {
    border-bottom: none;
}

.export-preview-item.base-item {
    background: var(--primary-50, #f0fdfa);
}

.export-preview-item .item-name {
    color: var(--text-primary, #1e293b);
    font-weight: 500;
}

.export-preview-item .item-offset {
    color: var(--text-tertiary, #94a3b8);
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.75rem;
}

.export-settings-preview {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle, #e2e8f0);
}

.export-settings-preview h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary, #94a3b8);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.export-settings-preview .settings-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.export-settings-preview .settings-list li {
    font-size: 0.75rem;
    color: var(--text-secondary, #64748b);
    background: var(--surface-secondary, #f8fafc);
    padding: 4px 10px;
    border-radius: var(--radius-md, 6px);
}

.export-preview-content .modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background: var(--surface-secondary, #f8fafc);
    border-top: 1px solid var(--border-subtle, #e2e8f0);
}

.export-preview-content .modal-footer .btn {
    flex: 1;
    min-height: 44px;
    font-weight: 600;
    border-radius: var(--radius-lg, 10px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.export-preview-content .modal-footer .btn-secondary {
    background: var(--surface-primary, white);
    border: 2px solid var(--border-default, #e2e8f0);
    color: var(--text-primary, #1e293b);
}

.export-preview-content .modal-footer .btn-secondary:hover {
    border-color: var(--primary-300, #5eead4);
}

.export-preview-content .modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary-500, #14b8a6) 0%, var(--primary-600, #0d9488) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

.export-preview-content .modal-footer .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.45);
    transform: translateY(-1px);
}

/* Dark mode for export preview modal */
body.dark-mode .export-preview-content .modal-header {
    background: var(--surface-tertiary, #1e293b);
    border-bottom-color: var(--border-default, #334155);
}

body.dark-mode .export-privacy-notice {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

body.dark-mode .export-privacy-notice i {
    color: #fbbf24;
}

body.dark-mode .export-privacy-notice strong {
    color: #fcd34d;
}

body.dark-mode .export-privacy-notice p {
    color: #fbbf24;
}

body.dark-mode .export-anonymize-option {
    background: var(--surface-tertiary, #1e293b);
    border-color: var(--border-default, #334155);
}

body.dark-mode .export-preview-list {
    border-color: var(--border-default, #334155);
}

body.dark-mode .export-preview-item {
    border-bottom-color: var(--border-default, #334155);
}

body.dark-mode .export-preview-item.base-item {
    background: rgba(20, 184, 166, 0.1);
}

body.dark-mode .export-preview-content .modal-footer {
    background: var(--surface-tertiary, #1e293b);
    border-top-color: var(--border-default, #334155);
}

body.dark-mode .export-preview-content .modal-footer .btn-secondary {
    background: var(--surface-secondary, #334155);
    border-color: var(--border-default, #475569);
    color: var(--text-primary, #f1f5f9);
}
