/* Migration Step Components Styles */

/* Step Content Container */
.step-content {
    padding: 1.5rem;
}

/* Step Header */
.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.step-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #0078d4;
}

.step-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.step-title h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.step-title p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Step Body */
.step-body {
    padding: 0.5rem 0;
}

/* Loading Section */
.loading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    color: #6c757d;
}

.loading-section .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e9ecef;
    border-top-color: #0078d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0.75rem;
}

.spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Instruction Cards */
.instruction-card {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.instruction-card.info {
    background-color: #e7f1ff;
    border-left: 3px solid #0078d4;
}

.instruction-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
}

.instruction-card p {
    margin: 0 0 0.75rem 0;
    color: #495057;
    line-height: 1.5;
    font-size: 0.85rem;
}

.instruction-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background-color: #0078d4;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Partnership Link Section */
.partnership-link-section {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
}

.link-type-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.link-type-badge.direct {
    background-color: #d1e7dd;
    color: #0f5132;
}

.link-type-badge.indirect {
    background-color: #cff4fc;
    color: #055160;
}

.partner-info {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.partner-info .label {
    color: #6c757d;
    margin-right: 0.375rem;
}

.partner-info .value {
    font-weight: 500;
    color: #212529;
}

.link-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.copy-success {
    margin-top: 0.5rem;
    padding: 0.375rem;
    background-color: #d1e7dd;
    color: #0f5132;
    border-radius: 4px;
    font-size: 0.75rem;
    text-align: center;
}

/* Buttons in Step Components */
.step-content .btn-primary,
.step-content .btn-secondary,
.step-content .btn-success {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.step-content .btn-primary {
    background-color: #0078d4;
    color: white;
}

.step-content .btn-primary:hover:not(:disabled) {
    background-color: #106ebe;
}

.step-content .btn-secondary {
    background-color: #e9ecef;
    color: #495057;
}

.step-content .btn-secondary:hover:not(:disabled) {
    background-color: #dee2e6;
}

.step-content .btn-success {
    background-color: #28a745;
    color: white;
}

.step-content .btn-success:hover:not(:disabled) {
    background-color: #218838;
}

.step-content .btn-large {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.step-content .btn-primary:disabled,
.step-content .btn-secondary:disabled,
.step-content .btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.step-content .btn-primary svg,
.step-content .btn-secondary svg,
.step-content .btn-success svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.btn-link {
    color: #0078d4;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Validation Section */
.validation-section {
    margin-top: 0.75rem;
}

.validation-result,
.mca-result {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.validation-result.success,
.mca-result.success {
    background-color: #d1e7dd;
}

.validation-result.pending,
.mca-result.warning {
    background-color: #fff3cd;
}

.mca-result.error {
    background-color: #f8d7da;
}

.result-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.result-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.result-icon.success { color: #0f5132; }
.result-icon.warning { color: #664d03; }
.result-icon.error { color: #842029; }

.result-text {
    flex: 1;
    min-width: 0;
}

.result-text strong {
    display: block;
    margin-bottom: 0.125rem;
    font-size: 0.8rem;
}

.result-text p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
}

.validation-actions,
.mca-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

/* MCA Status Section */
.mca-status-section {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
}

/* Error Section */
.error-section {
    text-align: center;
    padding: 1.5rem;
}

.error-section .error-icon {
    width: 36px;
    height: 36px;
    color: #dc3545;
    margin: 0 auto 0.75rem;
}

.error-section .error-icon svg {
    width: 100%;
    height: 100%;
}

.error-section h3 {
    margin: 0 0 0.375rem 0;
    color: #842029;
    font-size: 0.95rem;
}

.error-section p {
    color: #6c757d;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

/* Responsive for Step Components */
@media (max-width: 640px) {
    .step-content {
        padding: 1rem;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .step-icon {
        width: 24px;
        height: 24px;
    }
    
    .link-actions {
        flex-direction: column;
    }
    
    .link-actions .btn-primary,
    .link-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .validation-actions,
    .mca-actions {
        flex-direction: column;
    }
    
    .validation-actions button,
    .mca-actions button {
        width: 100%;
        justify-content: center;
    }
}
