/* ===================================
   Import Tool Styles
   =================================== */

/* Import Mode Selection */
.import-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.import-header {
    margin-bottom: 2rem;
}

.import-header h2 {
    color: var(--Text-Colors-Black, #232323);
    font-family: var(--font-default);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.import-mode-selection {
    margin: 2rem 0;
}

.mode-card {
    border: 2px solid #e9ecef;
    border-radius: var(--radius-sm-alt, 0.5rem);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mode-card:hover {
    border-color: var(--Main-Colors-Main, #2B5631);
    box-shadow: 0 6px 20px rgba(43, 86, 49, 0.12);
    transform: translateY(-4px);
}

.mode-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(43, 86, 49, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.mode-icon svg {
    width: 48px;
    height: 48px;
    color: var(--Main-Colors-Main, #2B5631);
}

.mode-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--Text-Colors-Black, #232323);
    margin-bottom: 0.75rem;
    text-align: center;
}

.mode-card>p {
    color: var(--Text-Colors-Dark-Gray, #6c757d);
    text-align: center;
    margin-bottom: 1.5rem;
}

.mode-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto 0;
}

.mode-features li {
    padding: 0.5rem 0;
    color: var(--Text-Colors-Dark-Gray, #6c757d);
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.mode-features li::before {
    content: "?";
    color: var(--Main-Colors-Main, #2B5631);
    font-weight: bold;
    flex-shrink: 0;
}

/* Service Center Card Styles */
.service-center-card {
    border: 2px solid #e9ecef;
    border-radius: var(--radius-sm-alt, 0.5rem);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.service-center-card:hover {
    border-color: var(--Main-Colors-Main, #2B5631);
    box-shadow: 0 4px 12px rgba(43, 86, 49, 0.12);
}

.service-center-card.selected {
    border-color: var(--Main-Colors-Main, #2B5631);
    background: rgba(43, 86, 49, 0.02);
    box-shadow: 0 4px 12px rgba(43, 86, 49, 0.15);
}

.center-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.center-icon {
    width: 32px;
    height: 32px;
    color: var(--Main-Colors-Main, #2B5631);
}

.center-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--Text-Colors-Black, #232323);
}

.center-details {
    padding-left: 48px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 500;
    color: var(--Text-Colors-Dark-Gray, #6c757d);
}

.detail-row .value {
    font-weight: 600;
    color: var(--Text-Colors-Black, #232323);
}

.selected-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--Main-Colors-Main, #2B5631);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.selected-badge svg {
    width: 16px;
    height: 16px;
}

/* File Upload Zone */
.file-upload-zone {
    border: 2px dashed var(--Gray-Gray-Tint-40, #ccc);
    border-radius: var(--radius-sm-alt, 0.5rem);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main-colors-white-white, #FCFCFC);
}

.file-upload-zone.dragging {
    border-color: var(--Main-Colors-Main, #2B5631);
    background: var(--Other-Primary-Tint, #f0f9f4);
}

.upload-placeholder {
    width: 100%;
}

.upload-icon {
    color: var(--Text-Colors-Dark-Gray, #8E8D8D);
    margin-bottom: 1rem;
}

.upload-placeholder h4 {
    color: var(--Text-Colors-Black, #232323);
    font-family: var(--font-default);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.help-text {
    color: var(--Text-Colors-Dark-Gray, #8E8D8D);
    font-family: var(--font-default);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.uploaded-files-list {
    width: 100%;
}

.uploaded-files-list h5 {
    color: var(--Text-Colors-Black, #232323);
    font-family: var(--font-default);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--Gray-Gray-Tint-20, #E0E0E0);
    border-radius: var(--radius-sm-alt, 0.25rem);
    margin-bottom: 0.5rem;
    background: var(--main-colors-white-white, #FCFCFC);
    transition: background 0.2s ease;
}

.file-item:hover {
    background: var(--Gray-Gray-Tint-10, #F5F5F5);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-name {
    font-weight: 500;
    color: var(--Text-Colors-Black, #232323);
}

.file-size {
    color: var(--Text-Colors-Dark-Gray, #8E8D8D);
    font-size: 0.875rem;
}

.btn-icon {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm-alt, 0.25rem);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--Gray-Gray-Tint-20, #E0E0E0);
}

.btn-icon.btn-danger:hover {
    background: var(--Other-Red-Tint, #ffe5e5);
    color: var(--Other-Red-Alt, #d32f2f);
}

/* Wizard Stepper */
/* Wizard Stepper */
.import-wizard-container {
    max-width: 1400px;
    margin: 0.5rem auto;
    /* Reduced from 1rem */
    padding: 0.5rem 2rem;
    /* Reduced padding */
}

.wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    padding: 1.25rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.step-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
    min-width: auto;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.step-item:hover {
    background: rgba(43, 86, 49, 0.05);
}

.step-item.active {
    background: rgba(43, 86, 49, 0.08);
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    border: 2px solid transparent;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, #2B5631 0%, #1e3d22 100%);
    color: white;
    box-shadow: 0px 4px 16px rgba(43, 86, 49, 0.35), 0px 2px 6px rgba(43, 86, 49, 0.25);
    transform: scale(1.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.step-item.completed .step-number {
    background: linear-gradient(135deg, #28a745 0%, #20803a 100%);
    color: white;
    box-shadow: 0px 2px 6px rgba(40, 167, 69, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.step-label {
    font-family: var(--font-default);
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-align: left;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.step-item.active .step-label {
    color: #2B5631;
    font-weight: 700;
    font-size: 1.05rem;
    text-shadow: 0px 1px 2px rgba(43, 86, 49, 0.1);
}

.step-item.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

.step-divider {
    width: 30px;
    height: 3px;
    background: linear-gradient(to right, #e9ecef 0%, #dee2e6 50%, #e9ecef 100%);
    flex-shrink: 0;
    border-radius: 2px;
}

.step-item.completed+.step-divider {
    background: linear-gradient(to right, #28a745 0%, #20803a 100%);
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.3);
}

/* Wizard Content */
.wizard-content {
    background: var(--main-colors-white-white, #FCFCFC);
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-card, 0px 10px 40px 10px rgba(157, 157, 157, 0.1));
}

.wizard-step {
    min-height: auto;
}

.wizard-step h3 {
    color: var(--Text-Colors-Black, #232323);
    font-family: var(--font-default);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    margin-top: 0;
}

/* Field Mapping Grid */
.field-mapping-grid {
    margin-top: 1rem;
}

.mapping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mapping-actions {
    display: flex;
    gap: 0.5rem;
}

.mapping-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mapping-stats .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* Validation Results */
.validation-results-view {
    margin-top: 1rem;
}

.validation-section {
    background: var(--main-colors-white-white, #FCFCFC);
    border-radius: var(--radius-sm-alt, 0.5rem);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--Gray-Gray-Tint-20, #E0E0E0);
}

.validation-section h5 {
    font-family: var(--font-default);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.validation-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.error-item {
    padding: 0.75rem;
    border-left: 3px solid var(--Other-Red-Alt, #d32f2f);
    margin-bottom: 0.5rem;
    background: var(--Other-Red-Tint, #fff5f5);
    border-radius: 0 var(--radius-sm-alt, 0.25rem) var(--radius-sm-alt, 0.25rem) 0;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--Gray-Gray-Tint-20, #E0E0E0);
}

/* Import Progress */
.import-progress {
    text-align: center;
    padding: 2rem;
}

.progress-header h5 {
    font-family: var(--font-default);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--Main-Colors-Main, #2B5631);
}

.progress-details {
    margin-top: 2rem;
}

.detail-item {
    padding: 1rem;
    background: var(--Gray-Gray-Tint-10, #F5F5F5);
    border-radius: var(--radius-sm-alt, 0.5rem);
    margin-bottom: 1rem;
}

/* Import Success */
.import-success {
    padding: 2rem;
}

.success-icon {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.import-stats {
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--main-colors-white-white, #FCFCFC);
    border-radius: var(--radius-sm-alt, 0.5rem);
    border: 1px solid var(--Gray-Gray-Tint-20, #E0E0E0);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--Main-Colors-Main, #2B5631);
    font-family: var(--font-default);
}

.stat-label {
    color: var(--Text-Colors-Dark-Gray, #8E8D8D);
    font-family: var(--font-default);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-stepper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step-divider {
        width: 2px;
        height: 30px;
    }

    .import-container,
    .import-wizard-container {
        padding: 1rem;
    }

    .mode-card {
        margin-bottom: 1rem;
    }
}

/* Upload Area Styles */
.upload-area {
    margin: 2rem 0;
}

.file-input {
    display: none;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 2px dashed #dee2e6;
    border-radius: var(--radius-sm-alt, 0.5rem);
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.upload-label:hover {
    border-color: var(--Main-Colors-Main, #2B5631);
    background: rgba(43, 86, 49, 0.02);
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: var(--Main-Colors-Main, #2B5631);
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--Text-Colors-Black, #232323);
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--Text-Colors-Dark-Gray, #6c757d);
}

/* Changes Summary Styles */
.changes-summary {
    margin: 2rem 0;
}

.summary-card {
    padding: 1.5rem;
    border-radius: var(--radius-sm-alt, 0.5rem);
    background: white;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.summary-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
}

.summary-icon svg {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 1;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--Text-Colors-Black, #232323);
    margin-bottom: 0.5rem;
}

.summary-label {
    font-size: 0.875rem;
    color: var(--Text-Colors-Dark-Gray, #6c757d);
    font-weight: 500;
}

/* Alert Icon Styles */
.alert-info .alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 1rem;
}

.alert-info {
    display: flex;
    align-items: start;
}

.alert-info>div {
    flex: 1;
}