/* ============ SmartImportWizard Modal Overlay ============ */

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

.import-wizard-modal {
    background: #FFFFFF;
    border-radius: 12px;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.import-wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.import-wizard-step-indicator {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #7A7572;
}

.import-wizard-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #7A7572;
    border-radius: 6px;
    transition: background 0.15s;
}

.import-wizard-close:hover {
    background: rgba(0, 0, 0, 0.04);
}

.import-wizard-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.import-wizard-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* ============ Step Titles ============ */

.wizard-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1A1818;
    margin-bottom: 8px;
}

.wizard-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #7A7572;
    margin-bottom: 24px;
}

/* ============ Mapping Table ============ */

.mapping-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    margin-bottom: 16px;
}

.mapping-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #9C9CA0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mapping-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
}

.mapping-select {
    width: 100%;
    height: 36px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 0 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mapping-select:focus {
    outline: none;
    border-color: #8B2D3E;
    box-shadow: 0 0 0 2px rgba(139, 45, 62, 0.06);
}

.mapping-sample {
    font-size: 12px;
    color: #9C9CA0;
    margin-top: 4px;
}

/* ============ Confidence Indicators ============ */

.confidence-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.confidence-high {
    background: #2D6B45;
}

.confidence-medium {
    background: #D4920A;
}

.confidence-low {
    background: #C4393A;
}

.confidence-none {
    background: #E0E0E0;
}

/* ============ Preview Table ============ */

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
}

.preview-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #9C9CA0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.preview-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.preview-table tr.duplicate {
    background: rgba(212, 146, 10, 0.06);
}

.preview-table tr.duplicate td:first-child::before {
    content: '⚠ ';
    color: #D4920A;
    font-weight: 600;
}

/* ============ Summary Stats ============ */

.wizard-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: #F8F6F2;
    border-radius: 8px;
}

.wizard-summary-item {
    text-align: center;
}

.wizard-summary-value {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #1A1818;
}

.wizard-summary-value.warning {
    color: #D4920A;
}

.wizard-summary-value.success {
    color: #2D6B45;
}

.wizard-summary-label {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: #9C9CA0;
    margin-top: 2px;
}

/* ============ Duplicate Toggle ============ */

.wizard-duplicate-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #7A7572;
    margin-bottom: 16px;
}

.wizard-duplicate-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #8B2D3E;
}

.wizard-duplicate-toggle label {
    cursor: pointer;
}

/* ============ Buttons ============ */

.wizard-btn {
    height: 40px;
    padding: 0 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s, border-color 0.15s;
    border: none;
}

.wizard-btn-primary {
    background: #8B2D3E;
    color: white;
}

.wizard-btn-primary:hover {
    background: #722436;
}

.wizard-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wizard-btn-secondary {
    background: none;
    color: #7A7572;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.wizard-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
}

.wizard-btn-danger {
    background: none;
    color: #C4393A;
    border: 1px solid #C4393A;
}

.wizard-btn-danger:hover {
    background: rgba(196, 57, 58, 0.05);
}

/* ============ Result Screen ============ */

.wizard-result {
    text-align: center;
    padding: 32px 0;
}

.wizard-result-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #2D6B45;
}

.wizard-result-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1A1818;
    margin-bottom: 8px;
}

.wizard-result-detail {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #7A7572;
    line-height: 1.6;
}

/* ============ AI Suggest Button ============ */

.wizard-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #8B2D3E;
    background: rgba(139, 45, 62, 0.06);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.wizard-ai-btn:hover {
    background: rgba(139, 45, 62, 0.1);
}

/* ============ Scrolling ============ */

.import-wizard-body::-webkit-scrollbar {
    width: 6px;
}

.import-wizard-body::-webkit-scrollbar-track {
    background: transparent;
}

.import-wizard-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.import-wizard-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* ============ Mobile Responsiveness ============ */

@media (max-width: 640px) {
    .import-wizard-modal {
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
    }

    .import-wizard-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .mapping-table,
    .preview-table {
        font-size: 12px;
    }

    .mapping-table td,
    .preview-table td {
        padding: 8px;
    }

    .wizard-summary {
        flex-wrap: wrap;
        gap: 16px;
    }

    .wizard-title {
        font-size: 18px;
    }

    .wizard-btn {
        height: 36px;
        padding: 0 16px;
        font-size: 13px;
    }

    .import-wizard-footer {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .import-wizard-footer > div {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .import-wizard-footer > div > button {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .import-wizard-body {
        padding: 16px;
    }

    .import-wizard-header {
        padding: 16px;
    }

    .import-wizard-footer {
        padding: 12px 16px;
    }

    .mapping-table th,
    .preview-table th {
        font-size: 10px;
        padding: 6px 8px;
    }

    .wizard-summary-value {
        font-size: 24px;
    }
}
