/* ============================================
   COMPACT IMPORT HEADER
   ============================================ */

.import-compact-header {
    background: white;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.import-title-row {
    margin-bottom: 16px;
}

.import-icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.import-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.import-compact-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 4px 0;
}

.import-subtitle {
    font-size: 13px;
    color: #718096;
    margin: 0;
}

/* ============================================
   COMPACT PROGRESS STEPS
   ============================================ */

.import-progress-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-step-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f7fafc;
    border-radius: 6px;
    font-size: 12px;
    color: #718096;
    font-weight: 500;
    transition: all 0.2s;
}

.progress-step-compact.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.progress-step-compact.complete {
    background: #e8f5e9;
    color: #4CAF50;
}

.step-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.progress-step-compact.active .step-num {
    background: rgba(255,255,255,0.3);
}

.step-label {
    font-size: 12px;
}

.progress-arrow {
    color: #cbd5e0;
    font-size: 14px;
    user-select: none;
}

/* ============================================
   INFO BOXES (Amazon-style)
   ============================================ */

.info-box-warning,
.info-box-info,
.info-box-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.info-box-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.info-box-info {
    background: #e3f2fd;
    border: 1px solid #2196F3;
    color: #0d47a1;
}

.info-box-error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

.info-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.info-link {
    color: #1565c0;
    text-decoration: underline;
    font-weight: 500;
}

.info-link:hover {
    color: #0d47a1;
}

/* ============================================
   COMPACT IMPORT TYPE CARDS
   ============================================ */

.import-type-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.import-type-card-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.import-type-card-compact:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.import-type-card-compact.selected {
    border-color: #667eea;
    background: #f7f9ff;
}

.card-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.card-desc {
    font-size: 12px;
    color: #718096;
    line-height: 1.4;
}

/* ============================================
   COMPACT UPLOAD SECTION
   ============================================ */

.upload-badge-container {
    text-align: center;
    margin-bottom: 16px;
}

.upload-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #2e7d32;
}

.upload-area-compact {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 32px 20px;
    text-align: center;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.2s;
    margin: 16px auto;
    max-width: 600px;
}

.upload-area-compact:hover,
.upload-area-compact.drag-over {
    border-color: #667eea;
    background: #f7f9ff;
}

.upload-area-compact .upload-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.upload-area-compact h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.upload-area-compact p {
    font-size: 13px;
    color: #718096;
    margin: 0 0 16px 0;
}

.btn-upload-compact {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-upload-compact:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

/* Uploaded File Display */
.uploaded-file-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin: 12px auto;
    max-width: 600px;
    font-size: 13px;
}

.file-info-compact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon-compact {
    font-size: 20px;
}

.file-name-compact {
    font-weight: 500;
    color: #1a202c;
}

.file-remove-compact {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.file-remove-compact:hover {
    color: #c53030;
}

/* Expected fields info */
.expected-fields-compact {
    background: #f7fafc;
    border-radius: 6px;
    padding: 12px;
    margin: 12px auto 0;
    max-width: 600px;
    font-size: 12px;
}

.expected-fields-compact strong {
    color: #2d3748;
    display: block;
    margin-bottom: 6px;
}

.expected-fields-compact span {
    color: #718096;
}

/* ============================================
   COMPACT BUTTONS
   ============================================ */

.import-actions-compact {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.btn-compact {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-compact.primary {
    background: #667eea;
    color: white;
}

.btn-compact.primary:hover {
    background: #5568d3;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

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

.btn-compact.secondary:hover {
    background: #cbd5e0;
}

/* ============================================
   COLUMN MAPPING
   ============================================ */

.mapping-header {
    background: #e3f2fd;
    border: 1px solid #2196F3;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.mapping-header h3 {
    margin: 0 0 8px 0;
    color: #1565c0;
}

.mapping-header p {
    margin: 0;
    color: #555;
}

.mapping-section {
    margin-bottom: 30px;
}

.mapping-section h4 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mapping-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mapping-table thead {
    background: #f5f5f5;
}

.mapping-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.mapping-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.mapping-table tr:hover {
    background: #fafafa;
}

.mapping-table code {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.mapping-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.mapping-select:focus {
    outline: none;
    border-color: #667eea;
}

.mapping-select[required] {
    border-left: 3px solid #dc3545;
}

.mapping-legend {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 4px;
}

.legend-item {
    margin-right: 1.5rem;
}

.status-cell {
    text-align: center;
    font-size: 20px;
}

.unmapped-row {
    background: #fff3cd;
}

.required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 4px;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
}

/* Collapsible Mapping Sections */
.mapping-section-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.mapping-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f5f5f5;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.mapping-section-header:hover {
    background: #eeeeee;
}

.mapping-section-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mapping-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.mapping-badge.success {
    background: #e8f5e9;
    color: #4CAF50;
}

.mapping-badge.warning {
    background: #fff3cd;
    color: #f57c00;
}

.mapping-badge.error {
    background: #ffebee;
    color: #f44336;
}

.collapse-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s;
    color: #666;
}

.mapping-section.collapsed .collapse-toggle {
    transform: rotate(-90deg);
}

.mapping-section.collapsed .mapping-content {
    display: none;
}

.mapping-content {
    background: white;
}

/* ============================================
   VALIDATION RESULTS
   ============================================ */

.validation-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-card h3 {
    font-size: 32px;
    margin: 10px 0;
}

.summary-card.success {
    border-top: 4px solid #4CAF50;
}

.summary-card.error {
    border-top: 4px solid #f44336;
}

.summary-card.warning {
    border-top: 4px solid #ff9800;
}

.validation-section {
    margin: 25px 0;
    border: 2px solid #ffc107;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.error-section {
    border: 2px solid #f44336;
}

.validation-section h4 {
    background: #fff3cd;
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #ffc107;
}

.error-section h4 {
    background: #ffebee;
    border-bottom: 1px solid #f44336;
}

.validation-table {
    width: 100%;
    background: white;
}

.validation-table thead {
    background: #f5f5f5;
}

.validation-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.validation-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* ============================================
   IMPORT RESULTS
   ============================================ */

.results-header {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.results-header.success {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
}

.results-header h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
}

/* ============================================
   ACTION BAR
   ============================================ */

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
}

.left-actions, .right-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   QUICK ACTIONS DROPDOWN
   ============================================ */

.quick-actions-wrapper {
    position: relative;
    display: inline-block;
}

.quick-actions-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.quick-actions-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.quick-actions-menu button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-actions-menu button:hover {
    background: #f5f5f5;
}

.quick-actions-menu button:first-child {
    border-radius: 6px 6px 0 0;
}

.quick-actions-menu button:last-child {
    border-radius: 0 0 6px 6px;
}

.quick-actions-menu .divider {
    height: 1px;
    background: #e0e0e0;
    margin: 4px 0;
}

/* Enhanced Upload Zone */
.upload-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f7fafc;
    cursor: pointer;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.upload-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.upload-subtitle {
    font-size: 14px;
    color: #718096;
    margin-bottom: 24px;
}

.upload-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #a0aec0;
    padding: 6px 12px;
    background: white;
    border-radius: 6px;
    margin-top: 8px;
}

/* Make the entire zone interactive */
.upload-zone * {
    pointer-events: none;
}

.upload-zone button {
    pointer-events: auto;
}

/* ============================================
   UNIFIED COLOR SYSTEM — VARIABLES
   ============================================ */

:root {
    --color-primary-start: #3b82f6;
    --color-primary-end:   #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-step-start: #6366f1;
    --color-step-end:   #8b5cf6;
    --color-badge-start: #22c55e;
    --color-badge-end:   #16a34a;
    --color-neutral-bg: #f1f5f9;
    --color-neutral-hover: #e2e8f0;
    --color-neutral-text: #374151;
    --color-success: #22c55e;
    --color-focus: #3b82f6;
    --color-step-inactive-bg: #f8fafc;
    --color-step-inactive-text: #718096;
}

/* ============================================
   ELEMENT STYLES USING VARIABLES
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-start) 0%, var(--color-primary-end) 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-end) 0%, var(--color-primary-hover) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--color-neutral-bg);
    color: var(--color-neutral-text);
    border: 1px solid var(--color-neutral-hover);
}
.btn-secondary:hover {
    background: var(--color-neutral-hover);
}

.btn-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.25);
}
.btn-warning:hover {
    background: linear-gradient(135deg, #fb8c00 0%, #ef6c00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.35);
}

.step.active {
    background: linear-gradient(135deg, var(--color-step-start) 0%, var(--color-step-end) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.step.active .step-number {
    background: rgba(255, 255, 255, 0.25);
}

.step.complete {
    background: var(--color-success);
    color: white;
}

.step:not(.active):not(.complete) {
    background: var(--color-step-inactive-bg);
    color: var(--color-step-inactive-text);
}

.import-type-badge {
    color: #16a34a;
    padding: 0;
    border-radius: 0;
    font-size: 28px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    box-shadow: none;
    transition: all 0.2s ease;
    cursor: default;
}
.import-type-badge:hover {
    transform: none;
    box-shadow: none;
    color: #15803d;
}

.upload-zone:hover {
    border-color: var(--color-primary-start);
    background: #f0f9ff;
}
.upload-zone.drag-over {
    border-color: var(--color-primary-start);
    background: #e0f2fe;
    transform: scale(1.02);
}

button:focus-visible, .step:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.step-arrow {
    color: #cbd5e0;
    font-size: 16px;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.replace-file-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

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

.replace-file-content {
    background: white;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

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

.replace-file-content h2,
.replace-file-content h3 {
    margin: 0 0 20px 0;
    color: #1a202c;
    font-size: 24px;
    font-weight: 600;
}

.replace-file-content h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 12px;
    color: #2d3748;
}

.replace-file-content p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.replace-file-content ul {
    margin: 10px 0 20px 20px;
    color: #4a5568;
}

.replace-file-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.replace-file-content strong {
    color: #2d3748;
    font-weight: 600;
}

.replace-file-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.file-upload-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.2s;
    margin: 20px 0;
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
    border-color: #667eea;
    background: #edf2f7;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #718096;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #2d3748;
}

/* ============================================
   PREVIEW MODAL
   ============================================ */

.preview-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.preview-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

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

.preview-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.preview-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #333;
}

.preview-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.preview-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.preview-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.summary-icon {
    font-size: 32px;
    opacity: 0.9;
}

.summary-details {
    flex: 1;
}

.summary-number {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.summary-label {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}

.preview-section {
    margin-bottom: 24px;
}

.preview-section h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
}

.stat-existing {
    color: #2e7d32;
    font-weight: 500;
}

.stat-new {
    color: #1976d2;
    font-weight: 500;
}

.preview-list {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.preview-item {
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

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

.preview-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.preview-item label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.preview-footer {
    padding: 24px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.preview-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.preview-actions .btn {
    flex: 1;
    min-width: 140px;
}

.preview-help {
    text-align: center;
}

.preview-help small {
    color: #666;
    font-size: 12px;
}

.btn-ghost {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.btn-ghost:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Manual Setup Guide Styles */
.manual-step {
    background: #f8f9fa;
    border-left: 4px solid #2196F3;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.manual-step:last-child {
    border-left-color: #4CAF50;
}

.manual-step h3 {
    margin: 0 0 8px 0;
    color: #2196F3;
    font-size: 16px;
}

.manual-step p {
    margin: 0 0 8px 0;
    color: #555;
}

.manual-step ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.manual-step li {
    margin: 4px 0;
    color: #333;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .import-compact-header {
        padding: 16px;
    }
    
    .import-icon {
        font-size: 24px;
    }
    
    .import-compact-header h2 {
        font-size: 18px;
    }
    
    .import-subtitle {
        font-size: 12px;
    }
    
    .import-progress-compact {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .step-label {
        display: none;
    }
    
    .progress-step-compact {
        padding: 6px 10px;
    }
    
    .progress-arrow {
        display: none;
    }
    
    .import-type-grid-compact {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .card-icon {
        font-size: 28px;
    }
    
    .upload-area-compact {
        padding: 24px 16px;
    }
    
    .validation-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-summary {
        grid-template-columns: 1fr;
    }
    
    .action-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .left-actions, .right-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
    }
    
    .replace-file-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .replace-file-content h2,
    .replace-file-content h3 {
        font-size: 20px;
    }
    
    .preview-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .preview-header {
        padding: 16px;
    }
    
    .preview-content {
        padding: 16px;
    }
    
    .preview-footer {
        padding: 16px;
    }
    
    .preview-actions {
        flex-direction: column;
    }
    
    .preview-actions .btn {
        width: 100%;
        min-width: 0;
    }
    
    .summary-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

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

.loading-message {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}