/* Existing CSS, let's just append to the bottom */
.import-wizard {
    max-width: 900px;
    margin: 30px auto;
}

/* Make main card full width matching step-header */
.import-wizard .card {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

.step-header::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-circle.active {
    background: #7367f0;
    color: white;
}

.step-circle.completed {
    background: #28a745;
    color: white;
}

.step-circle.pending {
    background: #e9ecef;
    color: #6c757d;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
}

.step-label.active {
    color: #7367f0;
}

.step-content:not(.active) {
    display: none;
}
.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reorganized card body with better spacing */
.card-body {
    padding: 2.5rem !important;
}

.info-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e8ff;
}

.info-card h5 {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4f566b;
    margin-bottom: 0.75rem;
}

.info-card h5 svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    color: #7367f0;
}

.info-card p {
    color: #6b7280;
    margin-bottom: 0;
    padding-left: 30px;
}

/* Enhanced info collections */
.collected-info {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.collected-info h6 {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #4f566b;
    margin-bottom: 1rem;
}

.collected-info h6 svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    color: #7367f0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

/* Industry selection */
.industry-selection-section h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4f566b;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.industry-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.industry-option:hover {
    border-color: #7367f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(115, 103, 240, 0.15);
}

.industry-option.selected {
    border-color: #7367f0;
    background: #f8f7ff;
    box-shadow: 0 4px 15px rgba(115, 103, 240, 0.2);
}

.industry-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #7367f0;
}

.industry-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #2c3e50;
}

.industry-desc {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Enhanced connection status */
.connection-status {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.connection-status.connected {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.connection-status.disconnected {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Improved action buttons layout */
.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.btn-import {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white !important;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-import:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(115, 103, 240, 0.3);
}

/* Enhanced alert styling */
.alert {
    border-radius: 12px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #7367f0;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Import Summary */
.import-summary {
    background: #f8f9ff;
    border: 1px solid #e0e8ff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: none;
}

.import-summary.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.import-summary h6 {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #4f566b;
    margin-bottom: 1rem;
}

.import-summary h6 svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: #28a745;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e8ff;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
}

.summary-count {
    font-weight: 600;
    color: #7367f0;
}

.import-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.import-buttons-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.regenerate-option {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Progress Indicator Styles - NEW */
.loading-progress-container {
    width: 100%;
    margin-top: 20px;
    padding: 0 10px;
}

.progress-bar-container {
    width: 100%;
    height: 16px;
    background-color: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 8px;
}

.progress-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.loading-detail {
    margin-top: 15px;
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.85rem;
    color: #4f566b;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.loading-stage {
    margin-bottom: 5px;
    padding: 5px;
    border-left: 3px solid transparent;
}

.loading-stage.active {
    border-left-color: #7367f0;
    background-color: #f8f7ff;
}

.loading-stage.completed {
    border-left-color: #28a745;
}

.loading-stage.pending {
    color: #adb5bd;
}

.loading-stage-status {
    float: right;
    font-weight: 500;
}

.status-pending {
    color: #adb5bd;
}

.status-active {
    color: #7367f0;
    animation: pulse 1.5s infinite;
}

.status-completed {
    color: #28a745;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

/* ================================
   Auto Activation - WorkChat form
   Scoped to avoid affecting import
   ================================ */

.auto-activation-wizard .clws-workchat-form {
    max-width: 980px;
    margin: 0 auto;
}

.auto-activation-wizard .clws-workchat-shell {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 16px 40px -30px rgba(15, 23, 42, 0.35);
}

.auto-activation-wizard .clws-workchat-alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.auto-activation-wizard .clws-field-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    color: #111827;
    margin-bottom: 8px;
}

.auto-activation-wizard .clws-field-label i {
    color: #7367f0;
    font-size: 18px;
    line-height: 1;
}

.auto-activation-wizard .clws-field-control {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 14px;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
    background-image: unset !important;
}

.auto-activation-wizard .clws-field-control:focus {
    border-color: #7367f0;
    box-shadow: 0 0 0 4px rgba(115, 103, 240, 0.18);
}

.auto-activation-wizard .clws-field-help {
    margin-top: 6px;
    font-size: 0.82rem;
    color: #6b7280;
}

.auto-activation-wizard .clws-workchat-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(115, 103, 240, 0.08) 0%, rgba(99, 102, 241, 0.06) 45%, rgba(16, 185, 129, 0.06) 100%);
    border: 1px solid rgba(115, 103, 240, 0.16);
    color: #374151;
    height: 100%;
}

.auto-activation-wizard .clws-workchat-note i {
    color: #7367f0;
    font-size: 18px;
    margin-top: 2px;
}

.auto-activation-wizard .clws-workchat-note strong {
    color: #111827;
}

/* Divider for Step UI */
.auto-activation-wizard .divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auto-activation-wizard .divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
    z-index: 1;
}

.auto-activation-wizard .divider-text {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 0 15px;
    color: #4f566b;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Premium Site Info Cards */
.auto-activation-wizard .bg-light {
    background-color: #f8f9fa !important;
    border-color: #f1f3f5 !important;
    transition: all 0.2s ease;
}

.auto-activation-wizard .bg-light:hover {
    background-color: #fff !important;
    border-color: #7367f0 !important;
    box-shadow: 0 4px 12px rgba(115, 103, 240, 0.08);
}