.security-migration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.migration-overlay {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.migration-container {
    padding: 30px;
}

.migration-header {
    text-align: center;
    margin-bottom: 25px;
}

.security-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.migration-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.info-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-text h3 {
    margin: 0 0 8px 0;
    color: #1976d2;
    font-size: 18px;
}

.info-text p {
    margin: 0;
    color: #1976d2;
    line-height: 1.5;
}

.migration-benefits {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.migration-benefits h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
}

.migration-benefits ul {
    margin: 0;
    padding-left: 20px;
}

.migration-benefits li {
    margin-bottom: 8px;
    color: #6c757d;
    line-height: 1.4;
}

.migration-process {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.migration-process h4 {
    margin: 0 0 15px 0;
    color: #1976d2;
    font-size: 16px;
}

.migration-process ol {
    margin: 0;
    padding-left: 20px;
}

.migration-process li {
    margin-bottom: 8px;
    color: #1976d2;
    line-height: 1.4;
}

.migration-note {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.migration-note p {
    margin: 0;
    color: #0c5460;
    font-weight: 500;
}

.migration-actions {
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 18px;
}

.migration-note {
    margin-top: 15px;
}

.migration-note small {
    color: #6c757d;
    font-style: italic;
}

.migration-progress {
    margin: 25px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    color: #495057;
    font-weight: 500;
}

.success-icon, .error-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 20px;
}

.success-content, .error-content {
    text-align: center;
    margin-bottom: 25px;
}

.success-content p, .error-content p {
    color: #495057;
    font-size: 16px;
    margin-bottom: 20px;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    color: #155724;
    font-weight: 500;
    font-size: 14px;
}

.error-details {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    color: #721c24;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
}

.migration-container.success {
    text-align: center;
}

.migration-container.error {
    text-align: center;
}

@media (max-width: 768px) {
    .migration-container {
        padding: 20px;
    }
    
    .migration-header h2 {
        font-size: 20px;
    }
    
    .security-icon {
        font-size: 40px;
    }
    
    .btn-primary {
        width: 100%;
        padding: 12px 20px;
    }
    
    .security-features {
        grid-template-columns: 1fr;
    }
}
