/* Migration Wizard Styles */

/* ============================================================================
   WIZARD OVERLAY
   ============================================================================ */

.migration-wizard {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.migration-wizard.show {
  opacity: 1;
  visibility: visible;
}

.migration-wizard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* ============================================================================
   WIZARD CONTAINER
   ============================================================================ */

.migration-wizard-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  margin: 1rem;
  background: var(--bs-body-bg, white);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.migration-wizard.show .migration-wizard-container {
  transform: scale(1);
}

/* Header */
.migration-wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--bs-border-color, #e5e7eb);
  background: var(--bs-tertiary-bg, #fafafa);
}

.migration-wizard-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-body-color, #1a1a1a);
}

.migration-wizard-title i {
  color: #6366f1;
  font-size: 1.5rem;
}

.migration-wizard-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--bs-secondary-color, #6b7280);
  cursor: pointer;
  transition: all 0.15s;
}

.migration-wizard-close:hover {
  background: var(--bs-tertiary-bg, #f3f4f6);
  color: var(--bs-body-color, #374151);
}

/* ============================================================================
   PROGRESS INDICATOR
   ============================================================================ */

.migration-progress {
  padding: 1.25rem 2rem;
  background: var(--bs-body-bg, white);
  border-bottom: 1px solid var(--bs-border-color, #e5e7eb);
}

.migration-progress-track {
  height: 4px;
  background: var(--bs-border-color, #e5e7eb);
  border-radius: 2px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.migration-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.migration-progress-steps {
  display: flex;
  justify-content: space-between;
}

.migration-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  position: relative;
}

.migration-step-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-body-bg, white);
  border: 2px solid var(--bs-border-color, #e5e7eb);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bs-secondary-color, #9ca3af);
  transition: all 0.3s;
}

.migration-progress-step.active .migration-step-dot {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}

.migration-progress-step.completed .migration-step-dot {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.migration-step-label {
  font-size: 0.6875rem;
  color: var(--bs-secondary-color, #9ca3af);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.migration-progress-step.active .migration-step-label,
.migration-progress-step.completed .migration-step-label {
  color: var(--bs-body-color, #374151);
}

/* ============================================================================
   CONTENT AREA
   ============================================================================ */

.migration-wizard-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.migration-step {
  display: none;
}

.migration-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.migration-step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.migration-step-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-body-color, #1a1a1a);
  margin-bottom: 0.5rem;
}

.migration-step-header p {
  color: var(--bs-secondary-color, #6b7280);
  font-size: 0.9375rem;
}

/* ============================================================================
   STEP 1: SOURCE SELECTION
   ============================================================================ */

.source-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.source-system-card {
  position: relative;
  background: var(--bs-body-bg, white);
  border: 2px solid var(--bs-border-color, #e5e7eb);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.source-system-card:hover:not(.disabled) {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.source-system-card.selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.source-system-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.source-system-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 2rem;
}

.source-system-icon.splynx {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
}

.source-system-icon.uisp {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: white;
}

.source-system-icon.whmcs {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
}

.source-system-icon.custom {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  color: white;
}

.source-system-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--bs-body-color);
}

.source-system-desc {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color, #6b7280);
}

.coming-soon-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--bs-tertiary-bg, #f3f4f6);
  color: var(--bs-secondary-color, #6b7280);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  text-transform: uppercase;
}

.source-system-card.selected .source-check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 24px;
  height: 24px;
  background: #6366f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
}

/* ============================================================================
   STEP 2: CONNECTION SETUP
   ============================================================================ */

.connection-form {
  max-width: 600px;
  margin: 0 auto;
}

.connection-form .form-group {
  margin-bottom: 1.25rem;
}

.connection-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
}

.connection-form .form-hint {
  font-size: 0.75rem;
  color: var(--bs-secondary-color, #6b7280);
  margin-top: 0.375rem;
}

.connection-test-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.connection-test-result.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.connection-test-result.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

.connection-test-result.loading {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #6366f1;
}

.connection-test-result i {
  font-size: 1.25rem;
}

/* ============================================================================
   STEP 3: DATA DISCOVERY
   ============================================================================ */

.entity-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.entity-card {
  position: relative;
  background: var(--bs-body-bg, white);
  border: 2px solid var(--bs-border-color, #e5e7eb);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.entity-card:hover {
  border-color: #d1d5db;
}

.entity-card.selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.entity-card.unavailable {
  opacity: 0.5;
  cursor: not-allowed;
}

.entity-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.entity-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.125rem;
}

.entity-card-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--bs-body-color);
}

.entity-card-count {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-body-color);
}

.entity-card-count small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--bs-secondary-color, #6b7280);
}

.entity-checkbox {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 20px;
  height: 20px;
  border: 2px solid var(--bs-border-color, #e5e7eb);
  border-radius: 4px;
  background: var(--bs-body-bg, white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  transition: all 0.15s;
}

.entity-card.selected .entity-checkbox {
  background: #6366f1;
  border-color: #6366f1;
}

/* ============================================================================
   STEP 4: FIELD MAPPING
   ============================================================================ */

.mapping-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.mapping-tab {
  padding: 0.5rem 1rem;
  background: var(--bs-body-bg, white);
  border: 1px solid var(--bs-border-color, #e5e7eb);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bs-secondary-color, #6b7280);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.mapping-tab:hover {
  border-color: #6366f1;
  color: #6366f1;
}

.mapping-tab.active {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}

.mapping-table {
  width: 100%;
  border-collapse: collapse;
}

.mapping-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--bs-secondary-color, #6b7280);
  border-bottom: 2px solid var(--bs-border-color, #e5e7eb);
}

.mapping-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bs-border-color, #e5e7eb);
  vertical-align: middle;
}

.mapping-table tr:hover {
  background: var(--bs-tertiary-bg, #f9fafb);
}

.mapping-arrow {
  text-align: center;
  color: var(--bs-secondary-color, #6b7280);
}

.mapping-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 50px;
}

.mapping-status.mapped {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.mapping-status.unmapped {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

/* ============================================================================
   STEP 5: CONFLICT RESOLUTION
   ============================================================================ */

.conflict-options {
  max-width: 600px;
  margin: 0 auto;
}

.conflict-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bs-body-bg, white);
  border: 2px solid var(--bs-border-color, #e5e7eb);
  border-radius: 10px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.conflict-option:hover {
  border-color: #6366f1;
}

.conflict-option.selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.conflict-option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--bs-border-color, #e5e7eb);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}

.conflict-option.selected .conflict-option-radio {
  border-color: #6366f1;
}

.conflict-option.selected .conflict-option-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #6366f1;
  border-radius: 50%;
}

.conflict-option-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--bs-body-color);
}

.conflict-option-content p {
  font-size: 0.875rem;
  color: var(--bs-secondary-color, #6b7280);
  margin: 0;
}

/* ============================================================================
   STEP 6: EXECUTION
   ============================================================================ */

.execution-container {
  max-width: 700px;
  margin: 0 auto;
}

.preflight-checklist {
  background: var(--bs-tertiary-bg, #f9fafb);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.preflight-checklist h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--bs-body-color);
}

.preflight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--bs-body-color);
}

.preflight-item i {
  width: 20px;
  text-align: center;
}

.preflight-item i.bi-check-circle-fill {
  color: #10b981;
}

.preflight-item i.bi-exclamation-circle-fill {
  color: #f59e0b;
}

.execution-progress {
  margin-bottom: 1.5rem;
}

.execution-progress-bar {
  height: 12px;
  background: var(--bs-border-color, #e5e7eb);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.execution-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.execution-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--bs-secondary-color, #6b7280);
}

.execution-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.execution-stat strong {
  color: var(--bs-body-color);
}

.execution-log {
  background: var(--bs-tertiary-bg, #f9fafb);
  border-radius: 10px;
  padding: 1rem;
  max-height: 200px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.8125rem;
}

.execution-log-entry {
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--bs-border-color, #e5e7eb);
  display: flex;
  gap: 0.5rem;
}

.execution-log-entry:last-child {
  border-bottom: none;
}

.log-time {
  color: var(--bs-secondary-color, #6b7280);
  flex-shrink: 0;
}

.log-message {
  color: var(--bs-body-color);
}

.log-message.error {
  color: #dc2626;
}

.log-message.success {
  color: #059669;
}

.execution-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ============================================================================
   STEP 7: SUMMARY
   ============================================================================ */

.summary-container {
  max-width: 700px;
  margin: 0 auto;
}

.summary-success {
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
}

.summary-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-icon i {
  font-size: 2.5rem;
  color: white;
}

.summary-icon.partial {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.summary-icon.failed {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-stat {
  background: var(--bs-tertiary-bg, #f9fafb);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.summary-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-body-color);
}

.summary-stat-label {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color, #6b7280);
}

.summary-stat.success .summary-stat-value {
  color: #10b981;
}

.summary-stat.skipped .summary-stat-value {
  color: #f59e0b;
}

.summary-stat.failed .summary-stat-value {
  color: #ef4444;
}

.summary-details {
  background: var(--bs-tertiary-bg, #f9fafb);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.summary-details-header {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--bs-border-color, #e5e7eb);
  color: var(--bs-body-color);
}

.summary-entity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--bs-border-color, #e5e7eb);
}

.summary-entity:last-child {
  border-bottom: none;
}

.summary-entity-name {
  font-weight: 500;
  color: var(--bs-body-color);
}

.summary-entity-counts {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
}

.summary-entity-counts span {
  color: var(--bs-secondary-color, #6b7280);
}

.summary-entity-counts .migrated {
  color: #10b981;
}

.summary-entity-counts .skipped {
  color: #f59e0b;
}

.summary-entity-counts .failed {
  color: #ef4444;
}

.summary-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.migration-wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--bs-border-color, #e5e7eb);
  background: var(--bs-tertiary-bg, #fafafa);
}

.migration-wizard-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  .migration-wizard-container {
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }

  .migration-wizard-content {
    padding: 1.5rem;
  }

  .migration-progress-steps {
    display: none;
  }

  .source-system-grid {
    grid-template-columns: 1fr;
  }

  .entity-selection-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-stats {
    grid-template-columns: 1fr;
  }

  .mapping-table {
    font-size: 0.8125rem;
  }

  .mapping-table td,
  .mapping-table th {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .entity-selection-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   DARK MODE SUPPORT
   ============================================================================ */

[data-bs-theme="dark"] .migration-wizard-container {
  background: var(--bs-body-bg);
}

[data-bs-theme="dark"] .source-system-card,
[data-bs-theme="dark"] .entity-card,
[data-bs-theme="dark"] .conflict-option {
  background: var(--bs-tertiary-bg);
}

/* ============================================================================
   WHMCS CSV Upload Grid
   ============================================================================ */
.whmcs-csv-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.whmcs-csv-item {
  padding: 0.75rem;
  background: var(--bs-tertiary-bg);
  border-radius: 8px;
  border: 1px solid var(--bs-border-color);
}

.whmcs-csv-item label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.whmcs-csv-item .form-control-sm {
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .whmcs-csv-upload-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   MIGRATION CARDS (Phase 1 Import & Phase 2 Process)
   ============================================================================ */

.migration-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .migration-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .migration-cards-grid {
    grid-template-columns: 1fr;
  }
}

.migration-card {
  background: var(--bs-body-bg, white);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.migration-card[data-status="pending"] {
  opacity: 0.6;
  background: var(--bs-tertiary-bg);
}

.migration-card[data-status="importing"],
.migration-card[data-status="processing"] {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
  animation: migrationPulse 2s ease-in-out infinite;
}

.migration-card[data-status="imported"],
.migration-card[data-status="completed"] {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.migration-card[data-status="partial"] {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.migration-card[data-status="failed"] {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

@keyframes migrationPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
}

.migration-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.migration-card-icon {
  font-size: 1.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: currentColor;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.migration-card-icon i {
  color: white;
  font-size: 1rem;
}

.migration-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
}

.migration-card-status-icon {
  font-size: 1rem;
}

.migration-card-status-icon.pending { color: #9ca3af; }
.migration-card-status-icon.active { color: #3b82f6; }
.migration-card-status-icon.success { color: #10b981; }
.migration-card-status-icon.warning { color: #f59e0b; }
.migration-card-status-icon.error { color: #ef4444; }

.migration-card-progress {
  margin-bottom: 0.5rem;
}

.migration-card-progress-bar {
  height: 6px;
  background: var(--bs-tertiary-bg);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.migration-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.migration-card[data-status="imported"] .migration-card-progress-fill,
.migration-card[data-status="completed"] .migration-card-progress-fill {
  background: linear-gradient(90deg, #10b981, #059669);
}

.migration-card[data-status="failed"] .migration-card-progress-fill {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.migration-card-progress-text {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
  text-align: right;
}

.migration-card-count {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
}

.migration-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.migration-card-stats .stat-created {
  font-size: 0.7rem;
  color: #10b981;
}

.migration-card-stats .stat-skipped {
  font-size: 0.7rem;
  color: #f59e0b;
}

.migration-card-stats .stat-failed {
  font-size: 0.7rem;
  color: #ef4444;
}

.migration-card-error {
  font-size: 0.7rem;
  color: #ef4444;
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================================
   STAGING REVIEW (Step 7)
   ============================================================================ */

.staging-review {
  max-width: 800px;
  margin: 0 auto;
}

.staging-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.staging-preview-table .card {
  border-color: var(--bs-border-color);
}

.staging-preview-table .badge {
  font-weight: 400;
  font-size: 0.7rem;
}
