/* Onboarding Configuration Styles */
.onboarding-config-section {
    margin-bottom: 30px;
}

.onboarding-steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Email Upload Styles */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.upload-area:hover {
    border-color: #0d6efd;
    background-color: #f1f8ff;
}

.upload-area i {
    margin-bottom: 15px;
    color: #0d6efd;
}

#uploaded-files {
    display: none;
    margin-top: 20px;
}

.file-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #fff;
    transition: all 0.2s;
}

.file-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.file-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #6c757d;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.file-actions .btn {
    padding: 5px 10px;
    margin-left: 5px;
}

/* Enhanced Stepper */
.stepper-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step-label {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
    max-width: 120px;
    word-break: break-word;
}

.step.active .step-label {
    font-weight: 600;
    color: #212529;
}

/* Steps Grid */
.onboarding-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.onboarding-step-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.onboarding-step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.step-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Email Connection Alert Styling */
.alert-success .d-flex {
    align-items: center;
    flex-wrap: wrap;
}

.alert-success .d-flex > div:first-child {
    flex: 1;
    min-width: 200px;
    margin-right: 10px;
}

.alert-success .d-flex > div:last-child {
    flex-shrink: 0;
}

.alert-success .btn-sm {
    font-size: 0.775rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.2rem;
}

.alert-success .btn-outline-warning:hover {
    background-color: #ffc107;
    color: #000;
}

.alert-success .btn-outline-danger:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Email card disabled state */
.email-options .card[style*="opacity"] {
    transition: opacity 0.3s ease;
}

/* Email provider icons */
.email-icon img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Connected button styling */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:disabled {
    opacity: 0.8;
    cursor: default;
}

.step-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.step-content {
    padding: 20px;
}

.step-content p {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.step-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 20px 20px;
}

.step-edit-btn {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

/* Progress Section */
.onboarding-progress {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.onboarding-progress h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.onboarding-progress .progress {
    height: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
    position: relative;
    overflow: hidden;
}

.onboarding-progress .progress-bar {
    border-radius: 5px;
    transition: width 0.6s ease;
    height: 100%;
    background-color: #28a745 !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    min-width: 0;
}

.progress-text {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 0;
    text-align: right;
    font-weight: 500;
    white-space: nowrap;
}

.progress-text-responsive {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 500;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .onboarding-steps-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .progress-text-responsive {
        font-size: 12px;
        text-align: left;
        margin-top: 4px;
    }
    
    .onboarding-progress .d-flex {
        align-items: flex-start !important;
    }
    
    .onboarding-progress h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .step-label {
        font-size: 12px;
        max-width: 80px;
        word-break: break-word;
        line-height: 1.2;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .stepper {
        justify-content: flex-start;
        gap: 15px;
        padding-right: 15px;
    }
    
    .step {
        flex: none;
        min-width: 70px;
    }
    
    .stepper-container {
        padding: 15px;
    }
}