@import url(https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700&family=Sora:wght@200;300;400;500;600;700&display=swap);
.wizard-container {
  max-width: 1440px;
  margin: 28px auto;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid #dbe7f3;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}
.connect-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: auto; /* Ensure it's auto */
    min-width: 100px; /* Set a reasonable minimum width */
    padding: 8px 16px; /* Adjust padding to make it smaller */
    font-size: 0.9rem; /* Slightly smaller font if needed */
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block; /* Make it only take needed space */
    margin-top: 10px;
}
.wizard-container > h1 {
  text-align: center;
  margin: 0 0 24px;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pipeline-shell {
  margin-bottom: 16px;
  padding: 10px 12px 8px;
  border-radius: 18px;
  border: 1px solid #dbe7f3;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.pipeline-header-copy {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pipeline-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background-color: #dbeafe;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

.pipeline-header h1 {
  display: none;
}

.pipeline-header p {
  display: none;
}

.pipeline-current-stage {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #dbe7f3;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pipeline-stage-chip {
  display: inline-flex;
  width: -webkit-fit-content;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background-color: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.pipeline-current-stage strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.3;
}

.pipeline-current-stage span:last-child {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.progress-bar {
  display: none;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #0f766e 100%);
  border-radius: 999px;
  transition: width 0.5s;
}

.enterprise-progress {
  display: none;
}

.step-indicators {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 0;
  align-items: start;
}

.step-indicator {
  text-align: center;
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  grid-gap: 10px;
  gap: 10px;
}

.enterprise-step-indicators {
  position: relative;
  gap: 8px;
}

.enterprise-step-indicators::before,
.enterprise-step-indicators::after {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 6px;
  border-radius: 999px;
  z-index: 0;
}

.enterprise-step-indicators::before {
  background: #dbe7f3;
}

.enterprise-step-indicators::after {
  right: auto;
  width: 0%;
  width: var(--pipeline-progress-width, 0%);
  background: linear-gradient(90deg, #16a34a 0%, #2563eb 100%);
}

.enterprise-step-indicators .step-indicator {
  position: relative;
  padding: 0 6px;
}

.step-rail-node {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  line-height: 34px;
  margin: 0 auto;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: #94a3b8;
  box-shadow: 0 8px 16px rgba(148, 163, 184, 0.18);
  border: 3px solid #ffffff;
  position: relative;
  z-index: 1;
}

.step-circle.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.step-circle.completed {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.22);
}

.step-title {
  font-size: 11px;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.3;
  width: 100%;
  max-width: 132px;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-wrap: balance;
  text-align: center;
}

.step-copy {
  width: 100%;
  min-height: auto;
  padding: 0 2px 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  align-content: start;
  justify-items: center;
}

.step-kicker {
  display: none;
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step-status {
  display: none;
}

.step-indicator.current .step-copy {
  background: transparent;
  box-shadow: none;
}

.step-indicator.current .step-title {
  color: #1d4ed8;
}

.step-indicator.current .step-kicker {
  color: #1d4ed8;
}

.step-indicator.current .step-status {
  color: #1d4ed8;
}

.step-indicator.done .step-copy {
  background: transparent;
}

.step-indicator.done .step-title {
  color: #15803d;
}

.step-indicator.done .step-kicker,
.step-indicator.done .step-status {
  color: #15803d;
}

.step-indicator.locked-stage .step-copy {
  background: transparent;
}

.step-indicator.locked-stage .step-title,
.step-indicator.locked-stage .step-status,
.step-indicator.locked-stage .step-kicker {
  color: #94a3b8;
}

.step-content {
  padding: 28px;
  border: 1px solid #dbe7f3;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  margin-bottom: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.step-content > h2 {
  margin: 0 0 24px;
  padding: 0;
  color: #0f172a;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  border: none !important;
  border-bottom: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.step-content > h2::before,
.step-content > h2::after {
  display: none !important;
  content: none !important;
}

.form input,
.form textarea {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.form textarea {
  resize: vertical;
}

.navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.navigation button {
  padding: 12px 22px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.navigation button:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.progress-simulation {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  margin-top: 10px;
}

.progress-simulation-fill {
  height: 100%;
  background: #2ecc71;
  border-radius: 5px;
  transition: width 0.5s;
}

.error-message {
  color: #991b1b;
  font-size: 0.9rem;
  margin-top: 8px;
}

.form input,
.form textarea {
  width: 100%;  /* This is affecting your button */
  padding: 8px;
  margin: 5px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
}

@media (max-width: 900px) {
  .wizard-container {
    margin: 20px 16px;
    padding: 18px;
    border-radius: 22px;
  }

  .pipeline-shell {
    padding: 10px 10px 8px;
    border-radius: 18px;
  }

  .pipeline-header {
    margin-bottom: 8px;
  }

  .pipeline-current-stage {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .progress-bar {
    margin: 0 24px 12px;
  }

  .enterprise-progress {
    margin: 0 14px 12px;
  }

  .step-content {
    padding: 20px;
  }

  .step-indicators {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .enterprise-step-indicators .step-indicator::before {
    display: none;
  }

  .enterprise-step-indicators .step-indicator::after,
  .enterprise-step-indicators::before,
  .enterprise-step-indicators::after {
    display: none;
  }

  .step-title {
    max-width: 98px;
    min-height: auto;
    font-size: 11px;
  }

  .step-copy {
    min-height: auto;
    padding: 0;
  }
}

@media (max-width: 640px) {
  .progress-bar {
    margin: 0 12px 14px;
  }

  .enterprise-progress {
    margin: 0 4px 12px;
  }

  .step-indicators {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .step-circle {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 13px;
  }

  .step-title {
    max-width: 98px;
    min-height: auto;
    font-size: 10px;
  }

  .pipeline-current-stage {
    padding: 6px 8px;
  }
}

.analysis-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header - Centered with maroon color */
.analysis-heading {
  text-align: center;
  color: #790022; /* Maroon color */
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Summary Section - Horizontal Row */
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1.5rem;
}

/* Cards with black outline */
.summary-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  flex: 1 1;
  min-width: 200px;
  border: 2px solid #000000; /* Black outline */
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Black shadow on hover */
}

/* Card headings with black color and maroon underline */
.summary-card h3 {
  color: #000000; /* Black color */
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: underline;
  -webkit-text-decoration-color: #800000;
          text-decoration-color: #800000; /* Maroon underline */
  text-underline-offset: 4px;
}

.summary-card p {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 300;
  margin: 0;
}

/* Data Size Section */
.data-size-container {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
  border: 2px solid #000000; /* Black outline */
}

.data-size-heading {
  color: #000000; /* Black color */
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  -webkit-text-decoration-color: #800000;
          text-decoration-color: #800000; /* Maroon underline */
  text-underline-offset: 4px;
}

/* Buttons */
.navigation-buttons {
  text-align: center;
  margin-top: 2rem;
}

.proceed-button {
  background: #800000; /* Maroon color */
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.proceed-button:hover {
  background: #600000; /* Darker maroon */
}

/* Loading and Error States */
.loading-container,
.error-container {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: #7f8c8d;
}

.error-container {
  color: #3ce759;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .summary-row {
    flex-direction: column;
  }
  
  .analysis-heading {
    font-size: 2rem;
  }
}
/* Base Styles */
.migration-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.hazelcast-mapping-root h2,
.hazelcast-mapping-root h3,
.hazelcast-mapping-root .panel-header h2,
.hazelcast-mapping-root .migration-log h3 {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.hazelcast-mapping-root h2::before,
.hazelcast-mapping-root h2::after,
.hazelcast-mapping-root h3::before,
.hazelcast-mapping-root h3::after {
  content: none !important;
  display: none !important;
}

.hazelcast-mapping-root .form-group,
.hazelcast-mapping-root .form-group > div,
.hazelcast-mapping-root .form-group > p,
.hazelcast-mapping-root .form-group > label {
  border-bottom: none !important;
  box-shadow: none !important;
}

.hazelcast-mapping-root .form-group::before,
.hazelcast-mapping-root .form-group::after,
.hazelcast-mapping-root .form-group > div::before,
.hazelcast-mapping-root .form-group > div::after {
  content: none !important;
  display: none !important;
}
 
.migration-header {
  text-align: center;
  margin-bottom: 2rem;
}
 
.migration-header h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}
 
.migration-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}
 
/* Database Panels */
.database-panels {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}
 
.database-panel {
  flex: 1 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}
 
.mongo-panel {
  border-top: 4px solid #3498db;
}
 
.couchbase-panel {
  border-top: 4px solid #2ecc71;
}
 
.panel-header h2 {
  font-size: 1.5rem;
  margin-top: 0;
  color: #2c3e50;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}
 
/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}
 
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
}
 
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.3s;
}
 
select:focus {
  outline: none;
  border-color: #3498db;
}
 
.search-box {
  margin-bottom: 0.5rem;
}
 
.search-box input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
 
.collections-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 0.5rem;
}
 
.collection-item {
  padding: 0.5rem;
  border-bottom: 1px solid #f5f5f5;
}
 
.collection-item:last-child {
  border-bottom: none;
}
 
.collection-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
}
 
.collection-item input {
  margin-right: 0.75rem;
}
 
.selection-hint {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 0.5rem;
  font-style: italic;
}
 
/* Migration Controls */
.migration-controls {
  text-align: center;
  margin-bottom: 2rem;
}
 
.error-message {
  color: #e74c3c;
  background-color: #fdecea;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: left;
}
 
.migrate-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  margin-bottom: 1rem;
}
 
.migrate-button:hover {
  background-color: #2980b9;
}
 
.migrate-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}
 
.function-button {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  margin-bottom: 1rem;
}
 
.function-button:hover {
  background-color: #27ae60;
}
 
.function-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}
 
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}
 
@keyframes spin {
  to { transform: rotate(360deg); }
}
 
/* Migration Log */
.migration-log {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}
 
.migration-log h3 {
  margin-top: 0;
  color: #2c3e50;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}
 
.log-content {
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}
 
.log-entry {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
}
 
.log-entry:last-child {
  border-bottom: none;
}
 
.success-icon {
  color: #2ecc71;
  margin-right: 0.5rem;
  font-weight: bold;
}
 
.error-icon {
  color: #e74c3c;
  margin-right: 0.5rem;
  font-weight: bold;
}
 
.info-icon {
  color: #3498db;
  margin-right: 0.5rem;
  font-weight: bold;
}
 
/* Button container for consistent alignment */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
 
/* Button Row Styles - ADDED FOR SIDE-BY-SIDE BUTTONS */
.button-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
}
 
/* Ensure buttons maintain their existing styles but are properly spaced */
.button-row .migrate-button,
.button-row .function-button {
  margin: 0; /* Remove individual margins since gap handles spacing */
  flex-shrink: 0; /* Prevent buttons from shrinking */
}
 
/* Responsive Design */
@media (max-width: 768px) {
  .database-panels {
    flex-direction: column;
  }
 
  .migration-header h1 {
    font-size: 1.5rem;
  }
 
  .panel-header h2 {
    font-size: 1.2rem;
  }
 
  .migrate-button,
  .function-button {
    min-width: 180px;
    width: 100%;
    max-width: 250px;
  }
 
  /* Responsive adjustments for button row */
  .button-row {
    flex-direction: column;
    gap: 15px;
  }
 
  .button-row .migrate-button,
  .button-row .function-button {
    width: 100%;
    max-width: 250px;
  }
}
 
@media (max-width: 480px) {
  .button-row {
    gap: 12px;
  }
 
  .button-row .migrate-button,
  .button-row .function-button {
    min-width: 180px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
 
.progress-bar-bg {
  width: 100%;
  height: 20px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}
 
.progress-bar-fg {
  height: 100%;
  background-color: #3498db; /* You can change this color */
  width: 0%;
  transition: width 0.4s ease-in-out;
}
/* For WebSocket progress */
.websocket-progress {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
 
.progress-bar-bg {
  background: #e0e0e0;
  border-radius: 10px;
  height: 20px;
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
}
 
.progress-bar-fg {
  background: linear-gradient(to right, #4caf50, #8bc34a);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
}
 
.progress-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
}
 
.stat-card {
  flex: 1 1;
  min-width: 200px;
  margin: 10px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
 
.stat-card h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}
 
.stat-card p {
  font-size: 18px;
  font-weight: bold;
  color: #000000;;
}


.wizard-container { max-width:1400px;margin:40px auto;padding:20px;border-radius:10px;background:#fff;box-shadow:0 0 15px rgba(0,0,0,0.2);}
h1{text-align:center;margin-bottom:20px;}
.progress-bar{height:8px;background:#ddd;border-radius:4px;margin-bottom:20px;}
.progress-bar-fill{height:100%;background:#3498db;border-radius:4px;transition:width 0.5s;}
.step-indicators{display:flex;justify-content:space-between;margin-bottom:20px;}
.step-indicator{text-align:center;flex:1 1;position:relative;}
.step-circle{width:40px;height:40px;border-radius:50%;line-height:40px;margin:0 auto 5px;font-weight:bold;color:#fff;background:#ccc;}
.step-circle.active{background:#3498db;}
.step-circle.completed{background:#2ecc71;}
.step-title{font-size:12px;}
.step-status{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:10px;color:#666;}
.step-content{padding:20px;border:1px solid #ddd;border-radius:8px;background:#f9f9f9;margin-bottom:20px;}
.form input,.form textarea{width:100%;padding:8px;margin:5px 0;border-radius:4px;border:1px solid #ccc;}
.form textarea{resize:vertical;}
.navigation{display:flex;justify-content:space-between;}
.navigation button{padding:8px 16px;border:none;border-radius:4px;background:#3498db;color:#fff;cursor:pointer;}
.navigation button:disabled{background:#ccc;cursor:not-allowed;}
.progress-simulation{width:100%;height:10px;background:#ddd;border-radius:5px;margin-top:10px;}
.progress-simulation-fill{height:100%;background:#2ecc71;border-radius:5px;transition:width 0.5s;}
.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 8px;
}
 

/* Blue header for Hive source panel */
.hive-header-blue {
  color: #1976d2;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.analysis-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header - Centered with maroon color */
.analysis-heading {
  text-align: center;
  color: #790022; /* Maroon color */
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Summary Section - Horizontal Row */
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1.5rem;
}

/* Cards with black outline */
.summary-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  flex: 1 1;
  min-width: 200px;
  border: 2px solid #000000; /* Black outline */
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Black shadow on hover */
}

/* Card headings with black color and maroon underline */
.summary-card h3 {
  color: #000000; /* Black color */
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: underline;
  -webkit-text-decoration-color: #800000;
          text-decoration-color: #800000; /* Maroon underline */
  text-underline-offset: 4px;
}

.summary-card p {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 300;
  margin: 0;
}

/* Data Size Section */
.data-size-container {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
  border: 2px solid #000000; /* Black outline */
}

.data-size-heading {
  color: #000000; /* Black color */
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  -webkit-text-decoration-color: #800000;
          text-decoration-color: #800000; /* Maroon underline */
  text-underline-offset: 4px;
}

/* Buttons */
.navigation-buttons {
  text-align: center;
  margin-top: 2rem;
}

.proceed-button {
  background: #800000; /* Maroon color */
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.proceed-button:hover {
  background: #600000; /* Darker maroon */
}

/* Loading and Error States */
.loading-container,
.error-container {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: #7f8c8d;
}

.error-container {
  color: #3ce759;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .summary-row {
    flex-direction: column;
  }
  
  .analysis-heading {
    font-size: 2rem;
  }
}
.migration-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}
 
.migration-header {
  text-align: center;
  margin-bottom: 2rem;
}
 
.migration-header h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}
 
.migration-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}
 
/* Database Panels */

.database-panels {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}
 
.database-panel {
  flex: 1 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}
 
/* BLUE PANEL FOR SOURCE: HIVE */
.mongo-panel {
  border-top: 4px solid #3498db !important; /* Blue color */
}
 
/* GREEN PANEL FOR TARGET: COUCHBASE */
.couchbase-panel {
  border-top: 4px solid #2ecc71 !important; /* Green color */
}

/* Force top border colors for the two panels */
.database-panels .database-panel.mongo-panel {
  border-top: 4px solid #3498db !important;  /* Blue for Source: Hive */
}

.database-panels .database-panel.couchbase-panel {
  border-top: 4px solid #2ecc71 !important;  /* Green for Target: Couchbase */
}

 
.panel-header h2 {
  font-size: 1.5rem;
  margin-top: 0;
  color: #2c3e50;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}
 
/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}
 
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
}
 
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.3s;
}
 
select:focus {
  outline: none;
  border-color: #3498db;
}
 
.search-box {
  margin-bottom: 0.5rem;
}
 
.search-box input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
 
.collections-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 0.5rem;
}
 
.collection-item {
  padding: 0.5rem;
  border-bottom: 1px solid #f5f5f5;
}
 
.collection-item:last-child {
  border-bottom: none;
}
 
.collection-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
}
 
.collection-item input {
  margin-right: 0.75rem;
}
 
.selection-hint {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 0.5rem;
  font-style: italic;
}
 
/* Migration Controls */
.migration-controls {
  text-align: center;
  margin-bottom: 2rem;
}
 
.error-message {
  color: #e74c3c;
  background-color: #fdecea;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: left;
}
 
.migrate-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  margin-bottom: 1rem;
}
 
.migrate-button:hover {
  background-color: #2980b9;
}
 
.migrate-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}
 
.function-button {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  margin-bottom: 1rem;
}
 
.function-button:hover {
  background-color: #27ae60;
}
 
.function-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}
 
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}
 
@keyframes spin {
  to { transform: rotate(360deg); }
}
 
/* Migration Log */
.migration-log {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}
 
.migration-log h3 {
  margin-top: 0;
  color: #2c3e50;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}
 
.log-content {
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}
 
.log-entry {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
}
 
.log-entry:last-child {
  border-bottom: none;
}
 
.success-icon {
  color: #2ecc71;
  margin-right: 0.5rem;
  font-weight: bold;
}
 
.error-icon {
  color: #e74c3c;
  margin-right: 0.5rem;
  font-weight: bold;
}
 
.info-icon {
  color: #3498db;
  margin-right: 0.5rem;
  font-weight: bold;
}
 
/* Button container for consistent alignment */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
 
/* Button Row Styles - ADDED FOR SIDE-BY-SIDE BUTTONS */
.button-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
}
 
/* Ensure buttons maintain their existing styles but are properly spaced */
.button-row .migrate-button,
.button-row .function-button {
  margin: 0; /* Remove individual margins since gap handles spacing */
  flex-shrink: 0; /* Prevent buttons from shrinking */
}
 
/* Responsive Design */
@media (max-width: 768px) {
  .database-panels {
    flex-direction: column;
  }
 
  .migration-header h1 {
    font-size: 1.5rem;
  }
 
  .panel-header h2 {
    font-size: 1.2rem;
  }
 
  .migrate-button,
  .function-button {
    min-width: 180px;
    width: 100%;
    max-width: 250px;
  }
 
  /* Responsive adjustments for button row */
  .button-row {
    flex-direction: column;
    gap: 15px;
  }
 
  .button-row .migrate-button,
  .button-row .function-button {
    width: 100%;
    max-width: 250px;
  }
}
 
@media (max-width: 480px) {
  .button-row {
    gap: 12px;
  }
 
  .button-row .migrate-button,
  .button-row .function-button {
    min-width: 180px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
 
.progress-bar-bg {
  width: 100%;
  height: 20px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}
 
.progress-bar-fg {
  height: 100%;
  background-color: #3498db; /* You can change this color */
  width: 0%;
  transition: width 0.4s ease-in-out;
}
/* For WebSocket progress */
.websocket-progress {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
 
.progress-bar-bg {
  background: #e0e0e0;
  border-radius: 10px;
  height: 20px;
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
}
 
.progress-bar-fg {
  background: linear-gradient(to right, #4caf50, #8bc34a);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
}
 
.progress-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
}
 
.stat-card {
  flex: 1 1;
  min-width: 200px;
  margin: 10px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
 
.stat-card h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}
 
.stat-card p {
  font-size: 18px;
  font-weight: bold;
  color: #000000;;
}

/* REMOVED CONFLICTING STYLES */
/* Remove these conflicting styles that were overriding the blue color */
/*
.mongo-panel {
    border-top-color: #28a745;
}

.database-panel mongo-panel {
  border-top: 4px solid #3498db;
}
*/

/* Add these styles to your Collection1.css file */

/* Header with refresh button */
.header-with-refresh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Refresh icon */
.refresh-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.refresh-icon:hover {
  background-color: #f5f5f5;
  transform: rotate(90deg);
}

.refresh-icon:active {
  transform: rotate(180deg);
}

/* Specific colors for each panel */
.mongo-panel .refresh-icon:hover {
  background-color: #ebf5fb;
  color: #3498db; /* Blue for Hive */
}

.couchbase-panel .refresh-icon:hover {
  background-color: #eafaf1;
  color: #2ecc71; /* Green for Couchbase */
}

/* Ensure panel header layout is proper */
.panel-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .header-with-refresh {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .refresh-icon {
    align-self: flex-end;
  }
}

.function-transfer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
 
.database-panels-container {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}
 
.database-panel {
  flex: 1 1;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-top: 4px solid transparent; /* panel accent */
}
 
.panel-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}
 
.panel-header h3 {
  margin: 0;
  color: #495057;
}
 
/* Requested colors: Hive = BLUE, Couchbase = GREEN */
.hive-panel { border-top-color: #2196F3; }
.hive-panel .panel-header { color: #2196F3; }
 
.couchbase-panel { border-top-color: #28a745; }
.couchbase-panel .panel-header { color: #28a745; }
 
.form-group {
  margin-bottom: 15px;
}
 
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #495057;
}
 
.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: white;
}
 
.functions-section {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}
 
.functions-list-container {
  flex: 1 1;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
 
.functions-list-container h3 {
  margin-top: 0;
  color: #495057;
}
 
.functions-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 10px;
  background: white;
}
 
.no-functions {
  padding: 10px;
  color: #6c757d;
  text-align: center;
}
 
.select-all-functions {
  padding: 8px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}
 
.select-all-functions label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}
 
.function-item {
  padding: 8px 0;
}
 
.function-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
 
.transfer-actions {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
 
.single-transfer {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
 
.single-transfer label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #495057;
}
 
.single-transfer select {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 15px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}
 
.transfer-button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-weight: 500;
}
 
.transfer-button.primary {
  background-color: #FF6B35;
}
.transfer-button.primary:hover {
  background-color: #e55a2b;
}
 
.transfer-button.secondary {
  background-color: #2196F3;
}
.transfer-button.secondary:hover {
  background-color: #0b7dda;
}
 
.transfer-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}
 
.status-messages {
  margin-top: 20px;
}
 
.status-message {
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 10px;
}
 
.status-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
 
.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
 
.status-message.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}
 
label {
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
  white-space: nowrap;
}
 
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #495057;
}
 
.function-info {
  font-size: 12px;
  color: #6c757d;
  margin-left: 24px;
  font-style: italic;
}
 
.function-item.skipped {
  opacity: 0.6;
}
 
.function-item.skipped label {
  color: #6c757d;
}
 
/* --- Force top row colors (Source: Hive = BLUE, Target: Couchbase = GREEN) ---
.database-panels-container:first-of-type .database-panel:nth-of-type(1) {
  border-top-color: #2196F3 !important;
} */
/* .database-panels-container:first-of-type .database-panel:nth-of-type(1) .panel-header,
.database-panels-container:first-of-type .database-panel:nth-of-type(1) .panel-header h3 {
  color: #2196F3 !important;
}
 
.database-panels-container:first-of-type .database-panel:nth-of-type(2) {
  border-top-color: #28a745 !important;
}
.database-panels-container:first-of-type .database-panel:nth-of-type(2) .panel-header,
.database-panels-container:first-of-type .database-panel:nth-of-type(2) .panel-header h3 {
  color: #28a745 !important;
} */
 
.function-progress-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  
}
 
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
 
.progress-header h3 {
  margin: 0;
  color: #495057;
}
 
.connection-status {
  font-size: 14px;
}
 
.connection-status .connected { color: #28a745; }
.connection-status .disconnected { color: #6c757d; }
 
.progress-bar-wrapper {
  margin: 15px 0;
}
 
.progress-bar-background {
  width: 100%;
  height: 20px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
 
.progress-bar-foreground {
  height: 100%;
  background: #28a745;      /* SOLID GREEN */
  border-radius: 10px;
  transition: width 0.3s ease;
}
 
.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
 
.progress-percentage {
  font-weight: 600;
  color: #495057;
}
 
.progress-details {
  color: #6c757d;
  font-size: 14px;
}
 
.current-operation {
  padding: 8px 12px;
  background: #e7f3ff;
  border-radius: 4px;
  margin: 10px 0;
  font-size: 14px;
  color: #495057;
}
 
.completion-message {
  padding: 10px;
  background: #d4edda;
  color: #155724;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  margin-top: 10px;
}
 

.cdc-monitor {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  max-height: 600px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
 
.cdc-monitor h2 {
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: #333;
}
 
.cdc-event-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
 
.cdc-event {
  background-color: #f9f9f9;
  border-left: 5px solid #ccc;
  margin-bottom: 12px;
  padding: 10px 15px;
  border-radius: 4px;
  font-family: monospace;
  white-space: pre-wrap;
}
 
.cdc-event strong {
  color: #444;
}
 
.cdc-event.insert {
  border-left-color: #4caf50;
}
 
.cdc-event.update {
  border-left-color: #2196f3;
}
 
.cdc-event.delete {
  border-left-color: #f44336;
}
 
.cdc-event code {
  font-family: monospace;
  background-color: #eef;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 6px;
}
 
.cdc-event pre {
  background-color: #f3f3f3;
  padding: 8px;
  margin-top: 10px;
  border-radius: 4px;
  font-size: 0.9em;
}
 

/*===================
/* src/Components/HiveCdc.css */

.hive-cdc-container {
  padding: 12px;
}

.hive-note {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
}

/* Existing blocks */
.cdc-info {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}

.monitoring-active p {
  margin: 6px 0;
}

.stop-cdc-button {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: #e53935;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.stop-cdc-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
}

.status-message.success {
  background: #ecfdf3;
  color: #0f7a2f;
  border: 1px solid #c7f9cc;
}

.status-message.error {
  background: #fff1f1;
  color: #b42318;
  border: 1px solid #ffe3e3;
}

/* ✅ Reverse action spacing */
.reverse-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ✅ Give some breathing room between sections */
.reverse-card {
  margin-top: 18px !important;
}

.reverse-logs-card {
  margin-top: 20px !important;
}

/* ✅ Activity Summary Box Section */
.reverse-summary-card {
  margin-top: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.reverse-summary-title {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
  color: #0f172a;
}

.reverse-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 12px;
  gap: 12px;
}

.reverse-summary-box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
}

.reverse-summary-label {
  font-size: 12px;
  font-weight: 900;
  color: #1a73e8;
  letter-spacing: 0.3px;
}

.reverse-summary-value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}

/* Footnote styling */
.reverse-activity-footnote {
  margin-top: 10px;
  font-size: 11px;
  color: #64748b;
}

/* ✅ Logs scroll & items */
.reverse-logs-scroll {
  max-height: 300px;
  overflow-y: auto;
  font-size: 13px;
  padding-right: 6px;
}

.reverse-log-item {
  border-left: 4px solid #1a73e8;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fbff;
  margin-bottom: 10px;
}

.reverse-log-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.reverse-log-title {
  font-weight: 900;
}

.reverse-log-time {
  font-family: monospace;
  color: #666;
  white-space: nowrap;
}

.reverse-log-message {
  margin-top: 6px;
  color: #333;
  word-break: break-word;
}

/* Clear button */
.reverse-clear-btn {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.reverse-clear-btn:hover {
  background: #f8fafc;
}

/* ✅ Responsive: stack boxes on small screens */
@media (max-width: 760px) {
  .reverse-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Center ONLY the Stop Forward CDC button */
.monitoring-active .stop-cdc-button {
  display: block;
  margin: 12px auto 0 auto; /* auto = center */
}

.stop-cdc-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.wizard-container { max-width:1400px;margin:40px auto;padding:20px;border-radius:10px;background:#fff;box-shadow:0 0 15px rgba(0,0,0,0.2);}
h1{text-align:center;margin-bottom:20px;}
.progress-bar{height:8px;background:#ddd;border-radius:4px;margin-bottom:20px;}
.progress-bar-fill{height:100%;background:#3498db;border-radius:4px;transition:width 0.5s;}
.step-indicators{display:flex;justify-content:space-between;margin-bottom:20px;}
.step-indicator{text-align:center;flex:1 1;position:relative;}
.step-circle{width:40px;height:40px;border-radius:50%;line-height:40px;margin:0 auto 5px;font-weight:bold;color:#fff;background:#ccc;}
.step-circle.active{background:#3498db;}
.step-circle.completed{background:#2ecc71;}
.step-title{font-size:12px;}
.step-status{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:10px;color:#666;}
.step-content{padding:20px;border:1px solid #ddd;border-radius:8px;background:#f9f9f9;margin-bottom:20px;}
.form input,.form textarea{width:100%;padding:8px;margin:5px 0;border-radius:4px;border:1px solid #ccc;}
.form textarea{resize:vertical;}
.navigation{display:flex;justify-content:space-between;}
.navigation button{padding:8px 16px;border:none;border-radius:4px;background:#3498db;color:#fff;cursor:pointer;}
.navigation button:disabled{background:#ccc;cursor:not-allowed;}
.progress-simulation{width:100%;height:10px;background:#ddd;border-radius:5px;margin-top:10px;}
.progress-simulation-fill{height:100%;background:#2ecc71;border-radius:5px;transition:width 0.5s;}
.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 8px;
}
.function-transfer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
 
.database-panels-container {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}
 
.database-panel {
  flex: 1 1;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
 
.panel-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}
 
.panel-header h3 {
  margin: 0;
  color: #495057;
}
 
.mongo-panel .panel-header {
  color: #4CAF50;
}
/* Match Couchbase panel but with Redis color */
.redis-panel {
  border-top: 4px solid #2196F3;   /* or any color you want */
  border-radius: 10px;
  background: white;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
 
 
.couchbase-panel .panel-header {
  color: #2196F3;
}
 
.form-group {
  margin-bottom: 15px;
}
 
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #495057;
}
 
.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: white;
}
 
.functions-section {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}
 
.functions-list-container {
  flex: 1 1;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
 
.functions-list-container h3 {
  margin-top: 0;
  color: #495057;
}
 
.functions-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 10px;
  background: white;
}
 
.no-functions {
  padding: 10px;
  color: #6c757d;
  text-align: center;
}
 
.select-all-functions {
  padding: 8px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}
 
.select-all-functions label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}
 
.function-item {
  padding: 8px 0;
}
 
.function-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
 
.transfer-actions {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
 
.single-transfer {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
 
.single-transfer label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #495057;
}
 
.single-transfer select {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 15px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}
 
.transfer-button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-weight: 500;
}
 
.transfer-button.primary {
  background-color:  #2196F3;
  padding-left: 20px;
}
 
.transfer-button.primary:hover {
  background-color:  #2196F3;
}
 
.transfer-button.secondary {
  background-color: #2196F3;
}
 
.transfer-button.secondary:hover {
  background-color: #0b7dda;
}
 
.transfer-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}
 
.status-messages {
  margin-top: 20px;
}
 
.status-message {
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 10px;
}
 
/* .status-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
} */
 
.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
 
label {
  font-weight: 500; /* or 600 if you want it bolder */
  display: block;
  margin-bottom: 5px;
  white-space: nowrap; /* prevent label break */
}
.migration-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f5f7f9;
  min-height: 100vh;
}

.migration-container h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eaecef;
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  border-left: 4px solid #c62828;
  font-weight: 500;
}

.migration-panels {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.panel {
  flex: 1 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.source-panel {
  border-top: 4px solid #4285f4;
}

.target-panel {
  border-top: 4px solid #34a853;
}

.panel h3 {
  margin-top: 0;
  color: #2c3e50;
  padding-bottom: 8px;
  margin-bottom: 6px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
}

select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 15px;
  background-color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

select:disabled {
  background-color: #f7fafc;
  color: #a0aec0;
  cursor: not-allowed;
}

.search-box {
  margin-bottom: 0.5rem;
}

.search-box input {
  width: 100%; /* Make search input same width as namespace dropdown */
  padding: 12px; /* Same padding as select */
  border: 1px solid #cbd5e0; /* Same border as select */
  border-radius: 6px; /* Same border radius as select */
  font-size: 15px; /* Same font size as select */
  background-color: white; /* Same background as select */
  transition: border-color 0.2s, box-shadow 0.2s; /* Same transition as select */
  box-sizing: border-box; /* Ensure padding is included in width */
}

.search-box input:focus {
  outline: none;
  border-color: #4299e1; /* Same focus color as select */
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2); /* Same focus shadow as select */
}

.search-box input:disabled {
  background-color: #f7fafc; /* Same disabled background as select */
  color: #a0aec0; /* Same disabled color as select */
  cursor: not-allowed; /* Same cursor as select */
}

.search-box input::placeholder {
  color: #a0aec0; /* Placeholder color */
  font-size: 15px; /* Same font size as select */
}

.collections-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 15px;
  background-color: white;
  margin-top: 5px;
}

.collection-item {
  padding: 8px 0;
  margin-bottom: 12px;
}

.collection-item:last-child {
  margin-bottom: 0;
}

.collection-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
  color: #4a5568;
  transition: color 0.2s;
  margin-bottom: 0;
}

.collection-item label:hover {
  color: #2d3748;
}

.collection-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-right: 12px;
}

.source-panel .collection-item input[type="checkbox"] {
  accent-color: #4285f4;
}

.target-panel .collection-item input[type="checkbox"] {
  accent-color: #34a853;
}

.collection-item input[type="checkbox"]:disabled {
  accent-color: #a0aec0;
  cursor: not-allowed;
}

.selection-hint {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 0.5rem;
  font-style: italic;
  text-align: center;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 4px;
}

.migration-controls {
  text-align: center;
  margin-bottom: 30px;
}

.migration-button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.migration-button:hover:not(:disabled) {
  background-color: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.migration-button:active:not(:disabled) {
  transform: translateY(0);
}

.migration-button:disabled {
  background-color: #a5d6a7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.clear-error-btn {
  background-color: #c62828;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 10px;
}

.clear-error-btn:hover {
  background-color: #b71c1c;
}

/* Scrollbar styling */
.collections-list::-webkit-scrollbar {
  width: 6px;
}

.collections-list::-webkit-scrollbar-track {
  border-radius: 3px;
}

.collections-list::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.collections-list::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

@media (max-width: 768px) {
  .migration-panels {
    flex-direction: column;
  }
  
  .migration-container {
    padding: 15px;
  }
  
  .panel {
    padding: 18px;
  }
  
  .collections-list {
    max-height: 200px;
  }
}

/* Success Message */
.success-message {
  background-color: #4CAF50;
  color: white;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.clear-success-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid white;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.clear-success-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Migration Mode Select */
.migration-mode-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #667eea;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.migration-mode-select:hover {
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}

.migration-mode-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.migration-mode-select option {
  background: white;
  color: #333;
  font-weight: 500;
}

.mode-description {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 13px;
  color: #666;
}

.same-as-source-hint {
  color: #667eea;
  font-weight: 600;
}

/* Same As Source Configuration */
.same-as-source-config {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  border: 2px solid #667eea;
}

.memory-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.memory-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.same-as-source-example-box {
  margin-top: 16px;
  padding: 12px;
  background: white;
  border-left: 4px solid black;
  border-radius: 4px;
  font-size: 13px;
}

.same-as-source-example-box strong {
  display: block;
  margin-bottom: 8px;
  color: black;
}

.example-item {
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.example-item code {
  background: #667eea;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

/* Manual Selection Configuration */
.manual-selection-config {
  margin-top: 16px;
}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Selection hint */
.selection-hint {
  margin-top: 8px;
  padding: 6px 10px;
  background: #e3f2fd;
  border-left: 3px solid #2196F3;
  font-size: 13px;
  color: #1976D2;
  font-weight: 500;
  border-radius: 3px;
}

/* Collections list */
.collections-list {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  background: #fafafa;
}

.collection-item {
  padding: 6px 8px;
  margin: 4px 0;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.collection-item:hover {
  background: #e8f4f8;
}

.collection-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.collection-item input[type="checkbox"] {
  margin-right: 10px;
  cursor: pointer;
}

/* Migration button enhancements */
.migration-button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.migration-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.migration-button:active:not(:disabled) {
  transform: translateY(0);
}

.migration-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
} */
.migration-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f5f7f9;
  min-height: 100vh;
}
 
.migration-container h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eaecef;
}
 
.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  border-left: 4px solid #c62828;
  font-weight: 500;
}
 
.migration-panels {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}
 
.panel {
  flex: 1 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}
 
.source-panel {
  border-top: 4px solid #4285f4;
}
 
.target-panel {
  border-top: 4px solid #34a853;
}
 
.panel h3 {
  margin-top: 0;
  color: #2c3e50;
  padding-bottom: 8px;
  margin-bottom: 6px;
}
 
.form-group {
  margin-bottom: 1.5rem;
}
 
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
}
 
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 15px;
  background-color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}
 
select:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}
 
select:disabled {
  background-color: #f7fafc;
  color: #a0aec0;
  cursor: not-allowed;
}
 
.search-box {
  margin-bottom: 0.5rem;
}
 
.search-box input {
  width: 100%; /* Make search input same width as namespace dropdown */
  padding: 12px; /* Same padding as select */
  border: 1px solid #cbd5e0; /* Same border as select */
  border-radius: 6px; /* Same border radius as select */
  font-size: 15px; /* Same font size as select */
  background-color: white; /* Same background as select */
  transition: border-color 0.2s, box-shadow 0.2s; /* Same transition as select */
  box-sizing: border-box; /* Ensure padding is included in width */
}
 
.search-box input:focus {
  outline: none;
  border-color: #4299e1; /* Same focus color as select */
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2); /* Same focus shadow as select */
}
 
.search-box input:disabled {
  background-color: #f7fafc; /* Same disabled background as select */
  color: #a0aec0; /* Same disabled color as select */
  cursor: not-allowed; /* Same cursor as select */
}
 
.search-box input::placeholder {
  color: #a0aec0; /* Placeholder color */
  font-size: 15px; /* Same font size as select */
}
 
.collections-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 15px;
  background-color: white;
  margin-top: 5px;
}
 
.collection-item {
  padding: 8px 0;
  margin-bottom: 12px;
}
 
.collection-item:last-child {
  margin-bottom: 0;
}
 
.collection-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
  color: #4a5568;
  transition: color 0.2s;
  margin-bottom: 0;
}
 
.collection-item label:hover {
  color: #2d3748;
}
 
.collection-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-right: 12px;
}
 
.source-panel .collection-item input[type="checkbox"] {
  accent-color: #4285f4;
}
 
.target-panel .collection-item input[type="checkbox"] {
  accent-color: #34a853;
}
 
.collection-item input[type="checkbox"]:disabled {
  accent-color: #a0aec0;
  cursor: not-allowed;
}
 
.selection-hint {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 0.5rem;
  font-style: italic;
  text-align: center;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 4px;
}
 
.migration-controls {
  text-align: center;
  margin-bottom: 30px;
}
 
.migration-button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
 
.migration-button:hover:not(:disabled) {
  background-color: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
 
.migration-button:active:not(:disabled) {
  transform: translateY(0);
}
 
.migration-button:disabled {
  background-color: #a5d6a7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
 
.clear-error-btn {
  background-color: #c62828;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 10px;
}
 
.clear-error-btn:hover {
  background-color: #b71c1c;
}
 
/* Scrollbar styling */
.collections-list::-webkit-scrollbar {
  width: 6px;
}
 
.collections-list::-webkit-scrollbar-track {
  border-radius: 3px;
}
 
.collections-list::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}
 
.collections-list::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}
 
@media (max-width: 768px) {
  .migration-panels {
    flex-direction: column;
  }
 
  .migration-container {
    padding: 15px;
  }
 
  .panel {
    padding: 18px;
  }
 
  .collections-list {
    max-height: 200px;
  }
}
 
/* Success Message */
.success-message {
  background-color: #4CAF50;
  color: white;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}
 
.clear-success-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid white;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}
 
.clear-success-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
 
/* Migration Mode Select */
.migration-mode-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #667eea;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}
 
.migration-mode-select:hover {
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}
 
.migration-mode-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
 
.migration-mode-select option {
  background: white;
  color: #333;
  font-weight: 500;
}
 
.mode-description {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 13px;
  color: #666;
}
 
.same-as-source-hint {
  color: #667eea;
  font-weight: 600;
}
 
/* Same As Source Configuration */
.same-as-source-config {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  border: 2px solid #667eea;
}
 
.memory-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}
 
.memory-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
 
.input-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}
 
.same-as-source-example-box {
  margin-top: 16px;
  padding: 12px;
  background: white;
  border-left: 4px solid black;
  border-radius: 4px;
  font-size: 13px;
}
 
.same-as-source-example-box strong {
  display: block;
  margin-bottom: 8px;
  color: black;
}
 
.example-item {
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}
 
.example-item code {
  background: #667eea;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}
 
/* Manual Selection Configuration */
.manual-selection-config {
  margin-top: 16px;
}
 
/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 
/* Selection hint */
.selection-hint {
  margin-top: 8px;
  padding: 6px 10px;
  background: #e3f2fd;
  border-left: 3px solid #2196F3;
  font-size: 13px;
  color: #1976D2;
  font-weight: 500;
  border-radius: 3px;
}
 
/* Collections list */
.collections-list {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  background: #fafafa;
}
 
.collection-item {
  padding: 6px 8px;
  margin: 4px 0;
  border-radius: 4px;
  transition: background 0.2s ease;
}
 
.collection-item:hover {
  background: #e8f4f8;
}
 
.collection-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}
 
.collection-item input[type="checkbox"] {
  margin-right: 10px;
  cursor: pointer;
}
 
/* Migration button enhancements */
.migration-button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
 
.migration-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
 
.migration-button:active:not(:disabled) {
  transform: translateY(0);
}
 
.migration-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
 
.migration-button {
  min-width: 220px;
  height: 48px;
 
  display: flex;                
  align-items: center;          
  justify-content: center;      
 
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
 
 
 
  */


 
.migration-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f5f7f9;
  min-height: 100vh;
}
 
.migration-container h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eaecef;
}
 
.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  border-left: 4px solid #c62828;
  font-weight: 500;
}
 
.migration-panels {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}
 
.panel {
  flex: 1 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}
 
.source-panel {
  border-top: 4px solid #4285f4;
}
 
.target-panel {
  border-top: 4px solid #34a853;
}
 
.panel h3 {
  margin-top: 0;
  color: #2c3e50;
  padding-bottom: 8px;
  margin-bottom: 6px;
}
 
.form-group {
  margin-bottom: 1.5rem;
}
 
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
}
 
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 15px;
  background-color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}
 
select:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}
 
select:disabled {
  background-color: #f7fafc;
  color: #a0aec0;
  cursor: not-allowed;
}
 
.search-box {
  margin-bottom: 0.5rem;
}
 
.search-box input {
  width: 100%; /* Make search input same width as namespace dropdown */
  padding: 12px; /* Same padding as select */
  border: 1px solid #cbd5e0; /* Same border as select */
  border-radius: 6px; /* Same border radius as select */
  font-size: 15px; /* Same font size as select */
  background-color: white; /* Same background as select */
  transition: border-color 0.2s, box-shadow 0.2s; /* Same transition as select */
  box-sizing: border-box; /* Ensure padding is included in width */
}
 
.search-box input:focus {
  outline: none;
  border-color: #4299e1; /* Same focus color as select */
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2); /* Same focus shadow as select */
}
 
.search-box input:disabled {
  background-color: #f7fafc; /* Same disabled background as select */
  color: #a0aec0; /* Same disabled color as select */
  cursor: not-allowed; /* Same cursor as select */
}
 
.search-box input::placeholder {
  color: #a0aec0; /* Placeholder color */
  font-size: 15px; /* Same font size as select */
}
 
.collections-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 15px;
  background-color: white;
  margin-top: 5px;
}
 
.collection-item {
  padding: 8px 0;
  margin-bottom: 12px;
}
 
.collection-item:last-child {
  margin-bottom: 0;
}
 
.collection-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
  color: #4a5568;
  transition: color 0.2s;
  margin-bottom: 0;
}
 
.collection-item label:hover {
  color: #2d3748;
}
 
.collection-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-right: 12px;
}
 
.source-panel .collection-item input[type="checkbox"] {
  accent-color: #4285f4;
}
 
.target-panel .collection-item input[type="checkbox"] {
  accent-color: #34a853;
}
 
.collection-item input[type="checkbox"]:disabled {
  accent-color: #a0aec0;
  cursor: not-allowed;
}
 
.selection-hint {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 0.5rem;
  font-style: italic;
  text-align: center;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 4px;
}
 
/* .migration-controls {
  text-align: center;
  margin-bottom: 30px;
} */
 
.migration-button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
 
.migration-button:hover:not(:disabled) {
  background-color: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
 
.migration-button:active:not(:disabled) {
  transform: translateY(0);
}
 
.migration-button:disabled {
  background-color: #a5d6a7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
 
.clear-error-btn {
  background-color: #c62828;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 10px;
}
 
.clear-error-btn:hover {
  background-color: #b71c1c;
}
 
/* Scrollbar styling */
.collections-list::-webkit-scrollbar {
  width: 6px;
}
 
.collections-list::-webkit-scrollbar-track {
  border-radius: 3px;
}
 
.collections-list::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}
 
.collections-list::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}
 
@media (max-width: 768px) {
  .migration-panels {
    flex-direction: column;
  }
 
  .migration-container {
    padding: 15px;
  }
 
  .panel {
    padding: 18px;
  }
 
  .collections-list {
    max-height: 200px;
  }
}
 
/* Success Message */
.success-message {
  background-color: #4CAF50;
  color: white;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}
 
.clear-success-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid white;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}
 
.clear-success-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
 
/* Migration Mode Select */
.migration-mode-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #667eea;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}
 
.migration-mode-select:hover {
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}
 
.migration-mode-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
 
.migration-mode-select option {
  background: white;
  color: #333;
  font-weight: 500;
}
 
.mode-description {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 13px;
  color: #666;
}
 
.same-as-source-hint {
  color: #667eea;
  font-weight: 600;
}
 
/* Same As Source Configuration */
.same-as-source-config {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  border: 2px solid #667eea;
}
 
.memory-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}
 
.memory-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
 
.input-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}
 
.same-as-source-example-box {
  margin-top: 16px;
  padding: 12px;
  background: white;
  border-left: 4px solid black;
  border-radius: 4px;
  font-size: 13px;
}
 
.same-as-source-example-box strong {
  display: block;
  margin-bottom: 8px;
  color: black;
}
 
.example-item {
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}
 
.example-item code {
  background: #667eea;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}
 
/* Manual Selection Configuration */
.manual-selection-config {
  margin-top: 16px;
}
 
/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 
/* Selection hint */
.selection-hint {
  margin-top: 8px;
  padding: 6px 10px;
  background: #e3f2fd;
  border-left: 3px solid #2196F3;
  font-size: 13px;
  color: #1976D2;
  font-weight: 500;
  border-radius: 3px;
}
 
/* Collections list */
.collections-list {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  background: #fafafa;
}
 
.collection-item {
  padding: 6px 8px;
  margin: 4px 0;
  border-radius: 4px;
  transition: background 0.2s ease;
}
 
.collection-item:hover {
  background: #e8f4f8;
}
 
.collection-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}
 
.collection-item input[type="checkbox"] {
  margin-right: 10px;
  cursor: pointer;
}
 
/* Migration button enhancements */
.migration-button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
 
.migration-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
 
.migration-button:active:not(:disabled) {
  transform: translateY(0);
}
 
.migration-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
 
.migration-button {
  min-width: 220px;
  height: 48px;
 
  display: flex;                /* 👈 ADD */
  align-items: center;          /* 👈 ADD */
  justify-content: center;      /* 👈 ADD */
 
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
 
 
 
 
 
 
.migration-button {
  min-width: 180px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}
 
.migration-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}
 
.migration-button:active {
  transform: translateY(0);
}
 
.migration-button:disabled {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0.7;
}
 
.migration-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 30px;
}
 

/* Root + typography */
:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --muted: #7b7f87;
  --accent: #333;
  --gap: 18px;
  --radius: 12px;

  --blue: #2196f3;
  --green: #4caf50;
  --orange: #ff9800;
  --purple: #9c27b0;
  --teal: #00bcd4;
  --danger: #f44336;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; background: #f4f5f7; background: var(--bg); color: #333; color: var(--accent); }

/* Root layout */
.dashboard-root {
  padding: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.dashboard-header h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.2px;
}
.header-sub { color: #7b7f87; color: var(--muted); font-size: 13px; }

/* Main grid */
.dashboard-main {
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-gap: 18px;
  gap: 18px;
}

/* Top cards row */
.top-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  grid-gap: 18px;
  grid-gap: var(--gap);
  gap: var(--gap);
}

/* Generic card */
.card {
  background: #ffffff;
  background: var(--card);
  border-radius: 12px;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(15, 20, 25, 0.06);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
}

/* Card head */
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.card-title { font-weight: 700; font-size: 15px; }
.card-sub { color: #7b7f87; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* badges */
.card-badge {
  background: rgba(0,0,0,0.06);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  min-width: 54px;
  text-align: center;
  font-size: 14px;
}
.card-badge.green { background: rgba(76, 175, 80, 0.12); color: #4caf50; color: var(--green); }

/* card body */
.card-body { padding: 16px 18px; }

/* Source small list */
.small-list ul {
  list-style: none;
  padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  grid-gap: 8px;
  gap: 8px;
}
.small-list li {
  font-size: 13px;
  padding: 6px 8px;
  background: #fbfcfd;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.03);
}

/* target realtime count */
.realtime-count {
  display:flex; flex-direction:column; align-items:center; gap:6px; margin-bottom:12px;
}
.realtime-count .count-number { font-size: 32px; font-weight: 800; }
.realtime-count .count-label { color: #7b7f87; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; }

/* kv row small */
.kv-row { display:flex; gap:12px; margin-top:12px; }
.kv { flex:1 1; display:flex; justify-content:space-between; align-items:center; padding:10px; border-radius:8px; background:#fafafa; border:1px solid rgba(0,0,0,0.03); }
.kv-key { color:#7b7f87; color:var(--muted); font-weight:600; font-size:12px; }
.kv-value { font-weight:700; }

/* mini progress */
.mini-progress { margin-top:12px; }
.mini-progress-label { font-size:12px; color:#7b7f87; color:var(--muted); margin-bottom:8px; }
.mini-progress-bar { background:#eee; height:10px; border-radius:8px; overflow:hidden; }
.mini-progress-fill { height:100%; background: linear-gradient(90deg, #2196f3, #5aa9f8); background: linear-gradient(90deg, var(--blue), #5aa9f8); width:0; transition: width 400ms ease; }
.mini-progress-meta { display:flex; justify-content:space-between; margin-top:8px; color:#7b7f87; color:var(--muted); font-size:12px; }

/* Stats row */
.stats-row { margin-top: 0; }
.statistics-grid { display:grid; grid-template-columns: repeat(5, 1fr); grid-gap: 14px; gap: 14px; }
.stat-box { background:#ffffff; background:var(--card); border-radius:10px; padding:18px; text-align:center; border:1px solid rgba(0,0,0,0.04); box-shadow: 0 4px 14px rgba(12,17,22,0.04);}
.stat-number { font-size:20px; font-weight:800; color:#333; color:var(--accent); margin-bottom:6px; }
.stat-label { font-size:12px; color:#7b7f87; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:0.6px; }

/* color accents for stat boxes (left border) */
.stat-box.stat-total { border-left: 6px solid #2196f3; border-left: 6px solid var(--blue); }
.stat-box.stat-migrated { border-left: 6px solid #4caf50; border-left: 6px solid var(--green); }
.stat-box.stat-remaining { border-left: 6px solid #ff9800; border-left: 6px solid var(--orange); }
.stat-box.stat-speed { border-left: 6px solid #9c27b0; border-left: 6px solid var(--purple); }
.stat-box.stat-success { border-left: 6px solid #00bcd4; border-left: 6px solid var(--teal); }

/* Lower row layout */
.lower-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 18px;
  grid-gap: 18px;
  grid-gap: var(--gap);
  gap: var(--gap);
}

/* migration progress card */
.migration-progress-card .progress-items { display:flex; flex-direction:column; gap:12px; }
.progress-item {
  background:#fff; border-radius:10px; padding:12px; border:1px solid rgba(0,0,0,0.03);
  display:flex; flex-direction:column; gap:8px;
}
.progress-item-header { display:flex; justify-content:space-between; align-items:center; }
.progress-item-title { font-weight:700; }
.progress-percentage { font-weight:800; color:#333; color:var(--accent); }
.progress-bar-container { background:#eee; height:10px; border-radius:8px; overflow:hidden; }
.progress-bar-fill { height:100%; width:0; background: linear-gradient(90deg, #4caf50, #6fd58a); background: linear-gradient(90deg, var(--green), #6fd58a); transition: width 400ms ease; }
.progress-item-stats { display:flex; justify-content:space-between; color:#7b7f87; color:var(--muted); font-size:13px; }

/* action controls */
.action-controls { display:flex; gap:10px; margin-top:12px; }
.btn { padding:8px 12px; border-radius:8px; border:1px solid rgba(0,0,0,0.06); background:transparent; cursor:pointer; font-weight:700; }
.btn.primary { background:#2196f3; background:var(--blue); color:#fff; border:none; }
.btn.danger { background:#f44336; background:var(--danger); color:#fff; border:none; }

/* activity log card */
.activity-log-card .activity-log-container {
  display:flex; flex-direction:column; gap:8px; max-height:420px; overflow:auto; padding:10px;
}
.log-entry {
  background:#fff; border-radius:8px; padding:10px; display:flex; gap:12px; border:1px solid rgba(0,0,0,0.03);
  align-items:flex-start;
}
.log-timestamp { min-width:72px; color:#7b7f87; color:var(--muted); font-weight:700; font-size:12px; }
.log-message { flex:1 1; }
.log-tag { font-size:12px; font-weight:800; color:#7b7f87; color:var(--muted); margin-bottom:6px; }
.log-text { color:#333; color:var(--accent); font-size:13px; white-space:pre-wrap; word-break:break-word; }

/* colors for log-levels */
.log-entry.log-info { border-left:4px solid #2196f3; border-left:4px solid var(--blue); background: linear-gradient(90deg, rgba(33,150,243,0.03), #fff); }
.log-entry.log-success { border-left:4px solid #4caf50; border-left:4px solid var(--green); background: linear-gradient(90deg, rgba(76,175,80,0.03), #fff); }
.log-entry.log-warning { border-left:4px solid #ff9800; border-left:4px solid var(--orange); background: linear-gradient(90deg, rgba(255,152,0,0.03), #fff); }
.log-entry.log-error { border-left:4px solid #f44336; border-left:4px solid var(--danger); background: linear-gradient(90deg, rgba(244,67,54,0.02), #fff); }

/* connection indicator */
.connection-indicator { font-weight:800; padding:8px 10px; border-radius:999px; font-size:12px; }
.connection-indicator.live { background: rgba(76,175,80,0.12); color:#4caf50; color:var(--green); }
.connection-indicator.offline { background: rgba(244,67,54,0.06); color:#f44336; color:var(--danger); }

/* small helpers */
.card-sub { display:block; margin-top:6px; color:#7b7f87; color:var(--muted); font-weight:600; font-size:12px; }

/* responsive */
@media (max-width: 1100px) {
  .statistics-grid { grid-template-columns: repeat(3, 1fr); }
  .statistics-grid .stat-box { padding: 14px; }
  .top-cards { grid-template-columns: 1fr; }
  .lower-row { grid-template-columns: 1fr; }
  .statistics-grid { grid-auto-rows: minmax(70px, auto); }
}

@media (max-width: 720px) {
  .statistics-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size:18px; }
  .dashboard-root { padding: 14px; }
}
/* Add these styles to your RedisMigrationDashboard.css file */
.stats-progress-section {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.stats-panel {
  flex: 1 1;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.progress-panel {
  flex: 1 1;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  background: #fafafa;
}

.progress-placeholder {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
}



/* ===============================
   CDC ACTION BUTTONS (Connect-style)
   =============================== */

.cdc-controls {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

/* Base button */
.cdc-button {
  min-width: 180px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;

  border-radius: 8px;
  border: none;

  color: #fff;
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* ---------------- READY (BLUE) ---------------- */
.cdc-button.ready {
  background: #2196f3;
  background: var(--blue);
  box-shadow: 0 6px 14px rgba(33, 150, 243, 0.25);
}

.cdc-button.ready:hover:not(:disabled) {
  background: #1e88e5;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(33, 150, 243, 0.35);
}

/* ---------------- LOADING (GRAY) ---------------- */
.cdc-button.loading {
  background: #9e9e9e;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------------- SUCCESS (GREEN) ---------------- */
.cdc-button.success {
  background: #4caf50;
  background: var(--green);
  cursor: not-allowed;
  box-shadow: 0 6px 14px rgba(76, 175, 80, 0.25);
}

/* ---------------- DISABLED FALLBACK ---------------- */
.cdc-button:disabled {
  opacity: 0.92;
  transform: none;
}

/* Optional: subtle text polish */
.cdc-button.success,
.cdc-button.loading {
  letter-spacing: 0.2px;
}

.stat-box.stat-error {
  border-left: 6px solid #f44336;
  border-left: 6px solid var(--danger);
}



.wizard-container { max-width:1400px;margin:40px auto;padding:20px;border-radius:10px;background:#fff;box-shadow:0 0 15px rgba(0,0,0,0.2);}
.wizard-container > h1{text-align:center;margin-bottom:20px;}
.wizard-container > .progress-bar{height:8px;background:#ddd;border-radius:4px;margin-bottom:0;overflow:hidden;}
.wizard-container > .progress-bar > .progress-bar-fill{height:100%;background:#3498db;border-radius:4px;transition:width 0.5s;}
.wizard-container > .step-indicators{display:flex;justify-content:space-between;align-items:flex-start;margin-top:-24px;margin-bottom:20px;padding-bottom:8px;}
.wizard-container > .step-indicators .step-indicator{text-align:center;flex:1 1;position:relative;}
.wizard-container > .step-indicators .step-circle{width:40px;height:40px;border-radius:50%;line-height:40px;margin:0 auto 8px;font-weight:bold;color:#fff;background:#ccc;border:4px solid #fff;box-sizing:border-box;position:relative;z-index:1;}
.wizard-container > .step-indicators .step-circle.active{background:#3498db;}
.wizard-container > .step-indicators .step-circle.completed{background:#2ecc71;}
.wizard-container > .step-indicators .step-title{font-size:12px;display:block;}
.wizard-container > .step-indicators .step-status{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:10px;color:#666;}
.wizard-container > .step-content{padding:20px;border:1px solid #ddd;border-radius:8px;background:#f9f9f9;margin-bottom:20px;}
.wizard-container .form input,.wizard-container .form textarea{width:100%;padding:8px;margin:5px 0;border-radius:4px;border:1px solid #ccc;}
.wizard-container .form textarea{resize:vertical;}
.wizard-container > .navigation{display:flex;justify-content:space-between;}
.wizard-container > .navigation button{padding:8px 16px;border:none;border-radius:4px;background:#3498db;color:#fff;cursor:pointer;}
.wizard-container > .navigation button:disabled{background:#ccc;cursor:not-allowed;}
.wizard-container .progress-simulation{width:100%;height:10px;background:#ddd;border-radius:5px;margin-top:10px;}
.wizard-container .progress-simulation-fill{height:100%;background:#2ecc71;border-radius:5px;transition:width 0.5s;}
.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* =========================================================================
   Mapping.css — Select & Map (production)
   Design tokens, chip grid, virtualized mapping rows, submission progress.
   ========================================================================= */

:root {
  --msm-bg: #fafbfc;
  --msm-surface: #ffffff;
  --msm-surface-2: #fcfcfd;
  --msm-border: #e5e7eb;
  --msm-border-soft: #f1f5f9;
  --msm-text: #1a202c;
  --msm-text-soft: #475569;
  --msm-text-muted: #64748b;
  --msm-text-faint: #94a3b8;

  --msm-purple: #6b46c1;
  --msm-purple-dark: #553c9a;
  --msm-purple-soft: #f5f3ff;
  --msm-purple-ring: rgba(107, 70, 193, 0.15);

  --msm-green: #16a34a;
  --msm-green-soft: #dcfce7;
  --msm-green-text: #166534;

  --msm-amber: #d97706;
  --msm-amber-soft: #fef3c7;
  --msm-amber-text: #92400e;

  --msm-red: #dc2626;
  --msm-red-soft: #fef2f2;
  --msm-red-text: #991b1b;
}

/* ===== Root ===== */
.msm-root {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a202c;
  color: var(--msm-text);
  background: #fafbfc;
  background: var(--msm-bg);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== Messages ===== */
.msm-msg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.msm-msg-err { background: #fef2f2; background: var(--msm-red-soft); color: #991b1b; color: var(--msm-red-text); border-left: 3px solid #dc2626; border-left: 3px solid var(--msm-red); }
.msm-msg-ok  { background: #f0fdf4; color: #15803d; border-left: 3px solid #16a34a; border-left: 3px solid var(--msm-green); }
.msm-msg-dismiss { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; opacity: 0.6; }

/* ===== Submission progress banner ===== */
.msm-progress {
  background: #f5f3ff;
  background: var(--msm-purple-soft);
  border: 1px solid #e5e7eb;
  border: 1px solid var(--msm-border);
  border-left: 3px solid #6b46c1;
  border-left: 3px solid var(--msm-purple);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.msm-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #1a202c;
  color: var(--msm-text);
  flex-wrap: wrap;
}
.msm-progress-head strong { font-weight: 600; }
.msm-progress-head span { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; color: #475569; color: var(--msm-text-soft); }
.msm-progress-track {
  height: 6px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
}
.msm-progress-fill {
  height: 100%;
  background: #6b46c1;
  background: var(--msm-purple);
  transition: width 0.25s ease;
}
.msm-btn-cancel {
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  color: var(--msm-red);
  cursor: pointer;
  font-family: inherit;
}
.msm-btn-cancel:hover { background: #fef2f2; background: var(--msm-red-soft); }

/* ===== Mode toggle (segmented) ===== */
.msm-mode-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 4px 0;
}
.msm-mode-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  color: var(--msm-text-muted);
}
.msm-mode-toggle {
  display: inline-flex;
  background: #ffffff;
  background: var(--msm-surface);
  border: 1px solid #e5e7eb;
  border: 1px solid var(--msm-border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.msm-mode-btn {
  padding: 7px 16px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  color: var(--msm-text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.msm-mode-btn:hover:not(:disabled):not(.active) { color: #6b46c1; color: var(--msm-purple); background: #f5f3ff; background: var(--msm-purple-soft); }
.msm-mode-btn.active { background: #6b46c1; background: var(--msm-purple); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.msm-mode-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Cards =====
   Note: NO `overflow: hidden` here. The picker dropdown panel is absolutely
   positioned inside the source card and must be allowed to render past the
   card's bottom edge. Top corners of the colored card-head are explicitly
   rounded to compensate. */
.msm-card {
  background: #ffffff;
  background: var(--msm-surface);
  border: 1px solid #e5e7eb;
  border: 1px solid var(--msm-border);
  border-radius: 10px;
  margin-bottom: 14px;
}
.msm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #fcfcfd;
  background: var(--msm-surface-2);
  border-bottom: 1px solid #f1f5f9;
  border-bottom: 1px solid var(--msm-border-soft);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  flex-wrap: wrap;
}
.msm-card-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.msm-card-title h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1a202c;
  color: var(--msm-text);
}
.msm-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.msm-dot.src { background: #4285f4; }
.msm-dot.tgt { background: #34a853; }
.msm-stat {
  display: inline-block;
  padding: 2px 10px;
  background: #f1f5f9;
  background: var(--msm-border-soft);
  color: #475569;
  color: var(--msm-text-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.msm-card-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ===== Inputs and buttons ===== */
.msm-search {
  padding: 7px 12px;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--msm-border);
  border-radius: 6px;
  font-size: 13px;
  width: 200px;
  background: #fff;
  font-family: inherit;
  color: #1a202c;
  color: var(--msm-text);
}
.msm-search:focus,
.msm-cell-select:focus,
.msm-cell-size:focus,
.msm-bulk-select:focus,
.msm-bulk-size input:focus,
.msm-field select:focus,
.msm-field input:focus {
  outline: none;
  border-color: #6b46c1;
  border-color: var(--msm-purple);
  box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.15);
  box-shadow: 0 0 0 3px var(--msm-purple-ring);
}
.msm-btn-2 {
  padding: 7px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--msm-border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  color: var(--msm-text-soft);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s ease;
}
.msm-btn-2:hover:not(:disabled) { background: #f5f3ff; background: var(--msm-purple-soft); border-color: #6b46c1; border-color: var(--msm-purple); color: #6b46c1; color: var(--msm-purple); }
.msm-btn-2:disabled { opacity: 0.5; cursor: not-allowed; }

.msm-btn-ghost {
  padding: 6px 10px;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #6b46c1;
  color: var(--msm-purple);
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
}
.msm-btn-ghost:hover:not(:disabled) { background: #f5f3ff; background: var(--msm-purple-soft); }
.msm-btn-ghost:disabled { color: #94a3b8; color: var(--msm-text-faint); cursor: not-allowed; }
.msm-icon-btn { padding: 6px 9px; font-size: 14px; }

/* ===== Region picker (combobox) ============================================ */

.msm-picker-wrap {
  position: relative;
  padding: 14px 18px;
}

/* Trigger — looks like a normal input */
.msm-picker-trigger {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--msm-border);
  border-radius: 8px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
  cursor: text;
}
.msm-picker-trigger:hover { border-color: #94a3b8; border-color: var(--msm-text-faint); }
.msm-picker-trigger.open,
.msm-picker-trigger:focus-within {
  border-color: #6b46c1;
  border-color: var(--msm-purple);
  box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.15);
  box-shadow: 0 0 0 3px var(--msm-purple-ring);
}
.msm-picker-input {
  flex: 1 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #1a202c;
  color: var(--msm-text);
  outline: none;
  min-width: 0;
}
.msm-picker-input::placeholder { color: #94a3b8; color: var(--msm-text-faint); }
.msm-picker-input:disabled { color: #94a3b8; color: var(--msm-text-faint); cursor: not-allowed; }
.msm-picker-caret {
  padding: 0 12px;
  color: #64748b;
  color: var(--msm-text-muted);
  font-size: 12px;
  pointer-events: none;
  transition: transform 0.15s ease;
}
.msm-picker-caret.open { transform: rotate(180deg); }

/* Floating dropdown panel */
.msm-picker-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  top: calc(100% - 6px);
  z-index: 10;
  background: #fff;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--msm-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.msm-picker-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #fcfcfd;
  background: var(--msm-surface-2);
  border-bottom: 1px solid #f1f5f9;
  border-bottom: 1px solid var(--msm-border-soft);
  font-size: 12px;
  color: #64748b;
  color: var(--msm-text-muted);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.msm-picker-panel-actions { display: flex; gap: 4px; }

/* Virtualized option list */
.msm-picker-list {
  overflow-y: auto;
  scrollbar-gutter: stable;
  background: #fff;
}
.msm-picker-list-inner {
  position: relative;
}

/* Single option row inside the panel */
.msm-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 13px;
  color: #1a202c;
  color: var(--msm-text);
  box-sizing: border-box;
  transition: background 0.08s ease;
  -webkit-user-select: none;
          user-select: none;
}
.msm-opt:hover,
.msm-opt.focused {
  background: #f5f3ff;
  background: var(--msm-purple-soft);
}
.msm-opt.active {
  background: rgba(107, 70, 193, 0.04);
  color: #1a202c;
  color: var(--msm-text);
}
.msm-opt.active.focused,
.msm-opt.active:hover {
  background: #f5f3ff;
  background: var(--msm-purple-soft);
}
.msm-opt-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--msm-border);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: transparent;
  background: #fff;
  flex-shrink: 0;
}
.msm-opt-check.checked {
  background: #6b46c1;
  background: var(--msm-purple);
  border-color: #6b46c1;
  border-color: var(--msm-purple);
  color: #fff;
}
.msm-opt-text {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Selected tags row ============================================ */

.msm-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 14px;
  overflow-y: auto;
}
.msm-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  background: #f5f3ff;
  background: var(--msm-purple-soft);
  border: 1px solid rgba(107, 70, 193, 0.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #553c9a;
  color: var(--msm-purple-dark);
  max-width: 280px;
}
.msm-tag-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msm-tag-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #553c9a;
  color: var(--msm-purple-dark);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  flex-shrink: 0;
}
.msm-tag-x:hover:not(:disabled) {
  background: rgba(107, 70, 193, 0.2);
  color: #553c9a;
  color: var(--msm-purple-dark);
}
.msm-tag-x:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Empty states ===== */
.msm-empty {
  padding: 28px;
  text-align: center;
  color: #94a3b8;
  color: var(--msm-text-faint);
  font-size: 13px;
  width: 100%;
}
.msm-empty-inset {
  margin: 4px 18px 14px;
  padding: 24px;
  background: #fcfcfd;
  background: var(--msm-surface-2);
  border: 1px dashed #e5e7eb;
  border: 1px dashed var(--msm-border);
  border-radius: 8px;
}

/* ===== Manual target config (Bucket + Scope) ===== */
.msm-target-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  border-bottom: 1px solid var(--msm-border-soft);
  background: #ffffff;
  background: var(--msm-surface);
}
.msm-field { display: flex; flex-direction: column; gap: 6px; }
.msm-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  color: var(--msm-text-muted);
}
.msm-field select,
.msm-field input {
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--msm-border);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  font-family: inherit;
  color: #1a202c;
  color: var(--msm-text);
}

/* ===== Bulk apply controls ===== */
.msm-bulk-select {
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--msm-border);
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
  font-family: inherit;
  color: #1a202c;
  color: var(--msm-text);
  min-width: 140px;
}
.msm-bulk-size {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--msm-border);
  border-radius: 6px;
  background: #fff;
  padding-right: 10px;
}
.msm-bulk-size input {
  width: 70px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  font-size: 12px;
  text-align: right;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  color: #1a202c;
  color: var(--msm-text);
}
.msm-bulk-size input:focus { outline: none; box-shadow: none; }
.msm-bulk-size span { font-size: 11px; font-weight: 600; color: #64748b; color: var(--msm-text-muted); }

/* =========================================================================
   Mapping rows — virtualized
   The header (.msm-row-head) sits outside the scroll container; the scroll
   container (.msm-rows-virt) uses `scrollbar-gutter: stable` so the
   scrollbar's width doesn't misalign the header columns.
   ========================================================================= */

.msm-rows-shell { padding: 4px 0; }

.msm-row {
  display: grid;
  align-items: center;
  grid-gap: 14px;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid #f1f5f9;
  border-bottom: 1px solid var(--msm-border-soft);
  box-sizing: border-box;
  transition: background 0.1s ease;
}
.msm-row:last-child { border-bottom: none; }

/* Mode-specific column templates — applied to BOTH the head row and rows inside the virt container */
.msm-row-manual,
.msm-rows-virt.manual .msm-row {
  grid-template-columns: 44px 1.1fr 28px 2.2fr;
}
.msm-row-saas,
.msm-rows-virt.saas .msm-row {
  grid-template-columns: 44px 1fr 28px 2fr 130px;
}

/* Header row */
.msm-row-head {
  background: #fcfcfd;
  background: var(--msm-surface-2);
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  color: var(--msm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e5e7eb;
  border-bottom: 1px solid var(--msm-border);
}

/* Virtualized scroll container */
.msm-rows-virt {
  position: relative;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.msm-rows-inner {
  position: relative;
  /* height set inline (= count * ROW_HEIGHT_PX) */
}

/* Hover on visible rows */
.msm-rows-virt .msm-row:not(.msm-row-head):hover { background: #fcfcfd; background: var(--msm-surface-2); }

/* Row state colors */
.msm-c-num   { display: flex; justify-content: center; }
.msm-c-arr   { color: #cbd5e0; font-size: 16px; text-align: center; }
.msm-c-src,
.msm-c-tgt,
.msm-c-size  { min-width: 0; }

.msm-row-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  background: var(--msm-border-soft);
  color: #64748b;
  color: var(--msm-text-muted);
  font-size: 11px;
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.msm-row.ok   .msm-row-num { background: #dcfce7; background: var(--msm-green-soft); color: #166534; color: var(--msm-green-text); }
.msm-row.warn .msm-row-num { background: #fef3c7; background: var(--msm-amber-soft); color: #92400e; color: var(--msm-amber-text); }

.msm-src-name {
  font-weight: 600;
  color: #1a202c;
  color: var(--msm-text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.msm-cell-select,
.msm-cell-size {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--msm-border);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: #1a202c;
  color: var(--msm-text);
  font-family: inherit;
}
.msm-cell-size {
  text-align: right;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.msm-cell-select:disabled {
  background: #fcfcfd;
  background: var(--msm-surface-2);
  color: #94a3b8;
  color: var(--msm-text-faint);
  cursor: not-allowed;
}

.msm-target-code {
  display: inline-block;
  font-family: 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  background: #f1f5f9;
  background: var(--msm-border-soft);
  padding: 4px 10px;
  border-radius: 4px;
  color: #475569;
  color: var(--msm-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ===== CTA ===== */
.msm-cta {
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
}
.msm-btn-primary {
  padding: 12px 32px;
  background: linear-gradient(135deg, #6b46c1 0%, #553c9a 100%);
  background: linear-gradient(135deg, var(--msm-purple) 0%, var(--msm-purple-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-width: 280px;
  box-shadow: 0 2px 8px rgba(107, 70, 193, 0.22);
  transition: all 0.15s ease;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.msm-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(107, 70, 193, 0.32);
}
.msm-btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(107, 70, 193, 0.22);
}
.msm-btn-primary:disabled { background: #cbd5e0; cursor: not-allowed; box-shadow: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .msm-card-head { flex-direction: column; align-items: stretch; }
  .msm-card-tools { width: 100%; }
  .msm-search { flex: 1 1; width: auto; }
  .msm-target-config { grid-template-columns: 1fr; }
  .msm-row-manual,
  .msm-rows-virt.manual .msm-row { grid-template-columns: 36px 1fr 22px 2fr; gap: 8px; }
  .msm-row-saas,
  .msm-rows-virt.saas .msm-row   { grid-template-columns: 36px 1fr 22px 1.5fr 110px; gap: 8px; }
  .msm-target-code { font-size: 11px; padding: 3px 7px; }
}

/* ===== Backward-compat shims ===== */
.error-message {
  background: #fef2f2;
  background: var(--msm-red-soft); color: #991b1b; color: var(--msm-red-text);
  padding: 10px 16px; border-radius: 8px; margin-bottom: 12px;
  border-left: 3px solid #dc2626;
  border-left: 3px solid var(--msm-red); font-weight: 500; font-size: 13px;
}
.success-message {
  background: #f0fdf4; color: #15803d;
  padding: 10px 16px; border-radius: 8px; margin-bottom: 12px;
  border-left: 3px solid #16a34a;
  border-left: 3px solid var(--msm-green); font-weight: 500; font-size: 13px;
}
.gemfire-cdc-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.cdc-controls-grid {
  display: block;
  margin-bottom: 20px;
}

.cdc-control-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.cdc-direction-title {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cdc-dual-group {
  flex-wrap: nowrap;
  width: 100%;
}

.cdc-dual-button {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: calc(50% - 5px);
  width: calc(50% - 5px) !important;
  min-width: 0 !important;
  max-width: calc(50% - 5px) !important;
  box-sizing: border-box !important;
}

/* Start CDC Button */
.start-cdc-button {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1 1;
  min-width: 140px;
}

.start-cdc-button:hover:not(:disabled) {
  background-color: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.start-cdc-button:disabled {
  background-color: #d1d5db !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.7 !important;
}

/* Stop CDC Button */
.stop-cdc-button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1 1;
  min-width: 140px;
}

.stop-cdc-button:hover:not(:disabled) {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.stop-cdc-button:disabled {
  background-color: #d1d5db !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.7 !important;
}

/* Status Messages */
.status-message {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 15px 0;
  font-size: 14px;
  font-weight: 500;
}

.status-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message-icon {
  margin-right: 10px;
  font-weight: bold;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .button-group {
    flex-direction: column;
  }
  
  .start-cdc-button,
  .stop-cdc-button {
    width: 100%;
  }
}

/* .wizard-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  margin: 20px 0;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #28a745);
  transition: width 0.3s ease;
}

.step-indicators {
  display: flex;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 8px;
  background: #e9ecef;
}

.step-circle.active {
  background: #007bff;
  color: white;
}

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

.step-title {
  font-size: 13px;
  font-weight: 600;
}

.step-status {
  font-size: 11px;
  color: #6c757d;
}

.step-content {
  min-height: 260px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.navigation {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
} */

src/Components/DocumentDB/Analysispage1.css
.analysis-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.loading-container,
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px;
  text-align: center;
}

.loading-spinner,
.error-icon {
  width: 60px;
  height: 60px;
  border: 4px solid #e3e6ea;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-icon {
  border-top-color: #dc3545;
  animation: none;
  background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27%23dc3545%27%3E%3Cpath d=%27M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%27/%3E%3C/svg%3E") no-repeat center;
  background-size: 40px;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 30px;
}

.summary-card {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #0056b3);
}

.summary-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  position: relative;
}

.card-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background-size: contain;
  opacity: 0.9;
}

.summary-card:nth-child(1) .card-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27%23ffffff%27%3E%3Cpath d=%27M4 8h16v2H4zm0 4h16v2H4z%27/%3E%3C/svg%3E");
}

.summary-card:nth-child(2) .card-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27%23ffffff%27%3E%3Cpath d=%27M3 5v14h19V5zm17 12H4V7h16z%27/%3E%3C/svg%3E");
}

.summary-card:nth-child(3) .card-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27%23ffffff%27%3E%3Cpath d=%27M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z%27/%3E%3Cpath d=%27M7 11h10v2H7z%27/%3E%3C/svg%3E");
}

.card-value {
  margin: 0 0 12px 0;
  font-size: 48px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1;
}

.card-description {
  margin: 0;
  font-size: 14px;
  color: #718096;
  line-height: 1.5;
}

.page-header {
  background: white;
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.retry-button:hover {
  background-color: #0056b3 !important;
  transform: translateY(-2px);
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3) !important;
}

@media (max-width: 768px) {
  .summary-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .summary-card {
    padding: 24px 20px;
  }
  
  .card-value {
    font-size: 36px;
  }
  
  .analysis-container {
    padding: 16px;
  }
}

/* PipelineWizard2.css - Modern Stepper Styling */

.wizard-container {
  max-width: 1200px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  padding: 30px;
  overflow: hidden; /* For animations */
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eaecef; 
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Progress Bar Container */
.progress-bar {
  height: 6px;
  background: #edf2f7;
  border-radius: 3px;
  margin: 0 auto 40px auto;
  position: relative;
  width: 90%;
  z-index: 0;
}

.progress-bar-fill {
  height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(255, 153, 0, 0.3);
}

/* Step Indicators */
.step-indicators {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  width: 100%;
  position: relative;
  z-index: 1; /* Above progress bar line if needed */
  padding: 0 2%; /* Align with progress bar width */
}

.step-indicator {
  text-align: center;
  flex: 1 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 40px;
  background: #fff;
  border: 2px solid #cbd5e0;
  color: #a0aec0;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Active State */
.step-circle.active {
border-color: #764ba2;
color: #764ba2;
  background: #fff;
  transform: scale(1.1);
box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.15);   
}

/* Completed State */
.step-circle.completed {
  background: #48bb78; 
  border-color: #48bb78;
  color: #fff;
}

.step-title {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
  transition: color 0.3s;
}

.step-indicator:hover .step-title {
  color: #4a5568;
}

.step-circle.active + .step-title {
  color: #2d3748;
  font-weight: 700;
}

.step-status {
  display: none; /* Hide text status, rely on visuals */
}

/* Step Content Area */
.step-content {
  background: #f8fafc;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid #edf2f7;
  min-height: 300px;
}

.step-content h2 {
  margin-top: 0;
  color: #4a5568;
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

/* Navigation Buttons */
.navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #edf2f7;
}

.navigation button {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Back Button */
.navigation button:first-child {
  background: #e2e8f0;
  color: #4a5568;
}

.navigation button:first-child:hover:not(:disabled) {
  background: #cbd5e0;
  color: #2d3748;
}

/* Next/Finish Button */
.navigation button:last-child {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 6px rgba(102, 126, 234, 0.25);
}

.navigation button:last-child:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 8px rgba(102, 126, 234, 0.35); 
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); 
}

.navigation button:disabled {
  background: #edf2f7;
  color: #a0aec0;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.error-message {
  color: #e53e3e;
  background: #fff5f5;
  padding: 10px;
  border-radius: 6px;
  margin-top: 15px;
  border: 1px solid #feb2b2;
  text-align: center;
  font-weight: 500;
}
/* Collection5.css - Modern Material Design Update */

/* Base Styles */
.migration-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}


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

/* Database Panels Layout */
.database-panels {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.database-panel {
  flex: 1 1;
  background: #fff;
  border-radius: 8px; 
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
  padding: 1.5rem;
  border: none; 
}

/* Distinct Panel Colors */
.dynamodb-panel {
  border-top: 4px solid #4285f4; 
}

.couchbase-panel {
  border-top: 4px solid #34a853; /* Match Redis Target Green */
}

.panel-header h2 {
  font-size: 1.5rem;
  margin-top: 0;
  color: #2c3e50;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f2f5;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
  font-size: 0.95rem;
}

select, input[type="text"], input[type="number"], input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 15px;
  background-color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

select:focus, input:focus {
  outline: none;
  border-color: #4299e1; 
box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

/* Checkbox & Radio Lists */
.collections-list {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 15px;
  background-color: white; 
  margin-top: 5px;
}

.collection-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.2s;
}

.collection-item:last-child {
  border-bottom: none;
}

.collection-item:hover {
  background-color: #edf2f7;
}

.collection-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 0;
  font-weight: 500;
  color: #4a5568;
}

input[type="checkbox"] {
  margin-right: 0.5rem; 
  width: 16px;          
  height: 16px;
  accent-color: #667eea; 
  cursor: pointer;
  vertical-align: middle;
}

/* Hint Text */
.selection-hint {
  font-size: 0.85rem;
  color: #718096;
  margin-top: 0.5rem;
  font-style: italic;
  background: #fff4e5;
  padding: 0.5rem;
  border-radius: 4px;
border-left: 3px solid #4299e1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .database-panels {
    flex-direction: column;
  }
  
  .migration-container {
    padding: 1rem;
  }
}

.navigation button {
  border: none !important;
  border-radius: 6px !important;
  padding: 12px 28px !important; 
  font-size: 1rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 6px rgba(102, 126, 234, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  cursor: pointer;
}

.navigation button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.navigation button:disabled {
  background: #cbd5e0 !important; 
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.step-title {
  color: #2d3748 !important; 
  font-weight: 700;
}

.step-circle.active {
  background: #667eea !important; 
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}


/* Scrollbar styling */
.collections-list::-webkit-scrollbar,
.custom-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px; 
}

.collections-list::-webkit-scrollbar-track,
.custom-scroll::-webkit-scrollbar-track {
  background: transparent; 
}

.collections-list::-webkit-scrollbar-thumb,
.custom-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.collections-list::-webkit-scrollbar-thumb:hover,
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}
.analysis-container {
  width: 100%;       
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.analysis-heading {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1.5rem;
}



.summary-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1;
  min-width: 200px;
  border: none; 
  border-top: 4px solid #667eea;
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.summary-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none; 
}

.summary-card p {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 300;
  margin: 0;
}

/* Data Size Section */
.data-size-container {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
  border: 1px solid #eaeaea; 
}

.data-size-heading {
  color: #2c3e50;
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-bottom: 2px solid #f0f2f5; 
  padding-bottom: 10px;
}

/* Buttons */
.navigation-buttons {
  text-align: center;
  margin-top: 2rem;
}

.proceed-button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
box-shadow: 0 4px 6px rgba(102, 126, 234, 0.25);
}

.proceed-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(102, 126, 234, 0.35); 
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Loading and Error States */
.loading-container,
.error-container {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: #7f8c8d;
}

.error-container {
  color: #d32f2f; 
}

@media (max-width: 768px) {
  .summary-row {
    flex-direction: column;
  }
  
  .analysis-heading {
    font-size: 2rem;
  }
}

.hbase-connection-container {
  border: 1px solid #ddd;
  padding: 25px;
  border-radius: 8px;
  background-color: #f8f9fa;
  margin-bottom: 25px;
  max-width: 1400px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.hbase-connection-title {
  margin-top: 0;
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #495057;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
  opacity: 0.7;
}

.error-message {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
}

.error-message::before {
  content: "⚠ ";
  margin-right: 4px;
}

.button-container {
  text-align: center;
  margin: 25px 0 20px 0;
}

.connect-button {
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  width: auto;
  min-width: 160px;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.connect-button:hover:not(:disabled) {
  background-color: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.connect-button:active:not(:disabled) {
  transform: translateY(0);
}

.connect-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.connect-button.connected {
  background-color: #28a745;
}

.connect-button.connected:hover:not(:disabled) {
  background-color: #218838;
}

.connect-button.connecting {
  background-color: #17a2b8;
  position: relative;
}

.connect-button.connecting::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.alert {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.alert-error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-success {
  color: green;
  /* background-color: #d4edda; */
  /* border-color: #c3e6cb; */
}

/* Responsive design */
@media (max-width: 576px) {
  .hbase-connection-container {
    padding: 20px 15px;
    margin: 15px;
  }
  
  .connect-button {
    width: 100%;
    min-width: auto;
  }
}

/* Loading animation for connecting state */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.connect-button.connecting {
  animation: pulse 1.5s ease-in-out infinite;
}
/* Base Styles */
.hbase-metadata-container {
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.metadata-boxes {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.metadata-box {
  padding: 25px;
  border: 2px solid #000;
  border-radius: 8px;
  text-align: center;
  min-width: 180px;
  flex: 1 1;
  max-width: 250px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.namespace-box {
  border-bottom: 4px solid #000;
}

.table-box {
  border-bottom: 4px solid #000;
}

.box-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.box-title {
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 15px;
  text-decoration: underline;
  color: #000;
  padding: 8px 12px;
  display: inline-block;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.box-value {
  font-size: 32px;
  font-weight: bold;
  color: #000;
  margin-top: 15px;
}

/* Loading State */
.hbase-metadata-loading {
  text-align: center;
  padding: 40px 20px;
  font-size: 18px;
  color: #666;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error State */
.hbase-metadata-error {
  text-align: center;
  padding: 30px;
  font-size: 16px;
  color: #d32f2f;
  border: 1px solid #d32f2f;
  border-radius: 8px;
  margin: 20px 0;
  background-color: #fde7e7;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.hbase-metadata-error h3 {
  margin: 0 0 15px 0;
  color: #d32f2f;
}

.error-message {
  margin-bottom: 20px;
  padding: 10px;
  background-color: rgba(211, 47, 47, 0.1);
  border-radius: 4px;
}

/* Auth Required State */
.auth-required-message {
  text-align: center;
  padding: 30px;
  background-color: #fff8e1;
  border-radius: 8px;
  border: 1px solid #ffd54f;
}

.auth-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.auth-required-message h3 {
  color: #ff8f00;
  margin-bottom: 10px;
}

.auth-required-message p {
  color: #666;
  font-size: 16px;
}

/* Buttons */
.retry-button, .refresh-button {
  margin-top: 15px;
  padding: 12px 24px;
  background-color: #2196f3;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.retry-button:hover, .refresh-button:hover {
  background-color: #1976d2;
  transform: translateY(-1px);
}

.retry-button:active, .refresh-button:active {
  transform: translateY(0);
}

/* Demo Mode */
.demo-banner {
  background-color: #ff9800;
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tablet Media Query */
@media (max-width: 768px) {
  .hbase-metadata-container {
    padding: 15px;
  }
  
  .metadata-boxes {
    gap: 20px;
  }
  
  .metadata-box {
    padding: 20px;
    min-width: 150px;
  }
  
  .box-title {
    font-size: 16px;
    padding: 6px 10px;
  }
  
  .box-value {
    font-size: 28px;
  }
  
  .hbase-metadata-error {
    padding: 20px;
    font-size: 15px;
  }
  
  .error-icon {
    font-size: 40px;
  }
}

/* Mobile Media Query */
@media (max-width: 600px) {
  .hbase-metadata-container {
    padding: 10px;
  }
  
  .metadata-boxes {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .metadata-box {
    min-width: 200px;
    width: 100%;
    max-width: 250px;
    padding: 20px 15px;
  }
  
  .box-title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .box-value {
    font-size: 24px;
    margin-top: 10px;
  }
  
  .hbase-metadata-loading {
    padding: 30px 15px;
    font-size: 16px;
  }
  
  .loading-spinner {
    width: 35px;
    height: 35px;
  }
  
  .hbase-metadata-error {
    padding: 15px;
    margin: 10px 0;
  }
  
  .error-icon {
    font-size: 36px;
  }
  
  .auth-required-message {
    padding: 20px 15px;
  }
  
  .demo-banner {
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .retry-button, .refresh-button {
    padding: 10px 20px;
    font-size: 15px;
    width: 100%;
    max-width: 200px;
  }
}

/* Small Mobile Media Query */
@media (max-width: 400px) {
  .metadata-box {
    min-width: 180px;
    padding: 15px 10px;
  }
  
  .box-title {
    font-size: 15px;
    padding: 5px 8px;
  }
  
  .box-value {
    font-size: 22px;
  }
  
  .hbase-metadata-container {
    padding: 8px;
  }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .metadata-boxes {
    flex-direction: row;
  }
  
  .metadata-box {
    padding: 15px;
  }
  
  .hbase-metadata-container {
    padding: 10px;
  }
}

/* Print Styles */
@media print {
  .hbase-metadata-container {
    padding: 0;
    border: 1px solid #000;
  }
  
  .metadata-box {
    border: 2px solid #000;
    box-shadow: none;
  }
  
  .demo-banner,
  .retry-button,
  .refresh-button,
  .hbase-metadata-loading,
  .hbase-metadata-error {
    display: none;
  }
}
/* Base Container */
.migration-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f5f7f9;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Authentication States */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.auth-required-message {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Messages */
.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  border-left: 4px solid #c62828;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.error-message:hover {
  opacity: 0.9;
}

.success-message {
  background-color: #4CAF50;
  color: white;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 6px;
  cursor: pointer;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
  transition: opacity 0.3s ease;
}

.success-message:hover {
  opacity: 0.9;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Panels Layout */
.migration-panels {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.panel {
  flex: 1 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  min-height: 400px;
  box-sizing: border-box;
}

.source-panel {
  border-top: 4px solid #4285f4;
}

.target-panel {
  border-top: 4px solid #34a853;
}

.panel-header {
  margin-bottom: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #eaecef;
}

.panel-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.3rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
  font-size: 0.95rem;
}

select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 15px;
  background-color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

select:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

select:disabled {
  background-color: #f7fafc;
  color: #a0aec0;
  cursor: not-allowed;
}

select.loading {
  background-image: linear-gradient(90deg, #f7fafc 25%, #e2e8f0 50%, #f7fafc 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Memory Input */
.memory-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #cbd5e0;
  border-radius: 6px;
  font-size: 15px;
  background-color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.memory-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.memory-input:disabled {
  background-color: #f7fafc;
  color: #a0aec0;
  cursor: not-allowed;
}

.input-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* Tables List */
.collections-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 10px;
  background-color: white;
  margin-top: 5px;
}

.collection-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.collection-item:hover {
  background-color: #f7fafc;
}

.collection-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
  color: #4a5568;
  transition: color 0.2s;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.collection-item label:hover {
  color: #2d3748;
}

.collection-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-right: 12px;
  flex-shrink: 0;
}

.source-panel .collection-item input[type="checkbox"] {
  accent-color: #4285f4;
}

.target-panel .collection-item input[type="checkbox"] {
  accent-color: #34a853;
}

.collection-item input[type="checkbox"]:disabled {
  accent-color: #a0aec0;
  cursor: not-allowed;
}

.selection-summary {
  margin-top: 10px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* Migration Mode */
.migration-mode-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #667eea;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.migration-mode-select:hover:not(:disabled) {
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}

.migration-mode-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.migration-mode-select option {
  background: white;
  color: #333;
  font-weight: 500;
}

/* Same As Source Config */
.same-as-source-config {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  border: 2px solid #667eea;
}

.info-message {
  background: #e3f2fd;
  border-left: 4px solid #2196F3;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #1976D2;
}

.migration-summary {
  background: white;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.migration-summary h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #2c3e50;
}

.migration-summary p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: #555;
}

.table-preview {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #ddd;
}

.table-list-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.table-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.table-badge:last-child {
  background: #6c757d;
}

/* Migration Controls */
.migration-controls {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eaecef;
}

.migration-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  min-width: 300px;
  position: relative;
  overflow: hidden;
}

.migration-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.migration-button:active:not(:disabled) {
  transform: translateY(0);
}

.migration-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.migration-button.migrating {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.migration-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.migration-progress .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.migration-progress-info {
  margin-top: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.migration-progress-info .progress-bar {
  width: 100%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #45a049);
  border-radius: 5px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* Loading Indicators */
.loading-indicator {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #667eea;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .migration-panels {
    gap: 1.5rem;
  }
  
  .panel {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .migration-container {
    padding: 1rem;
  }
  
  .migration-panels {
    flex-direction: column;
    gap: 1rem;
  }
  
  .panel {
    min-height: auto;
  }
  
  .migration-button {
    min-width: auto;
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
  }
  
  .collections-list {
    max-height: 200px;
  }
  
  .table-list-preview {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .migration-container {
    padding: 0.75rem;
  }
  
  .panel {
    padding: 1rem;
  }
  
  .migration-button {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
  
  select, .memory-input {
    padding: 10px;
    font-size: 14px;
  }
  
  .collections-list {
    max-height: 150px;
  }
}

/* Mobile-specific optimizations */
@media (hover: none) and (pointer: coarse) {
  .collection-item {
    padding: 12px;
  }
  
  .collection-item label {
    font-size: 16px; /* Larger font for mobile touch */
  }
  
  .collection-item input[type="checkbox"] {
    width: 22px;
    height: 22px; /* Larger checkboxes for touch */
  }
  
  select, .memory-input {
    padding: 14px; /* Larger touch targets */
  }
}

/* Print styles */
@media print {
  .migration-container {
    background: white;
    padding: 0;
  }
  
  .migration-button,
  .migration-controls,
  .migration-progress-info {
    display: none;
  }
  
  .panel {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  
  .collections-list {
    max-height: none;
    overflow: visible;
  }
}

.stop-cdc-main-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.stop-cdc-section {
 
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  color: black;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

.stop-cdc-section h3 {
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stop-cdc-button-container {
  display: flex;
  width: 40%;
  flex-direction: column;
  gap: 15px;
}

.stop-cdc-button {
  background: linear-gradient(135deg, green 0%, green 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 200px;
}

.stop-cdc-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.stop-cdc-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.stop-cdc-button.stopped {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stop-cdc-button.stopping {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.status-message {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.stopping-message {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.error-message {
  background: rgba(255, 87, 87, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.retry-button {
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.retry-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Reverse CDC Section */
.reverse-cdc-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.reverse-cdc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.reverse-cdc-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.view-logs-btn, .refresh-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-logs-btn:hover, .refresh-btn:hover {
  background: #219653;
  transform: translateY(-1px);
}

.refresh-btn {
  background: #27ae60;
}

.refresh-btn:hover {
  background: #219653;
}

/* Migration Mapping */
.migration-mapping-simple {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid #e9ecef;
}

.mapping-container {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.mapping-section {
  flex: 1 1;
  background: white;
  border-radius: 8px;
  padding: 18px;
  border: 1px solid #dee2e6;
}

.source-section {
  border-top: 4px solid #3498db;
}

.target-section {
  border-top: 4px solid #27ae60;
}

.mapping-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.mapping-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mapping-section-title h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #2c3e50;
}

.database-type {
  background: #e9ecef;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 600;
}

.mapping-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mapping-field {
  display: flex;
  align-items: center;
}

.field-label {
  width: 100px;
  font-weight: 600;
  font-size: 0.9rem;
}

.field-value {
  flex: 1 1;
  padding: 6px 12px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  font-size: 0.9rem;
}

.field-value.filled {
  color: #2c3e50;
  font-weight: 500;
}

.field-value.empty {
  color: #6c757d;
  font-style: italic;
}

/* Reverse CDC Controls */
.reverse-cdc-controls {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid #e9ecef;
}

.control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.control-header h4 {
  margin: 0;
  font-size: 1.2rem;
}

.active-tasks-count {
  background: rgba(52, 152, 219, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #3498db;
}

.active-tasks-count span {
  font-weight: bold;
  font-size: 1.1rem;
}

.reverse-cdc-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 15px;
  animation: slideIn 0.3s ease;
}

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

.reverse-cdc-status.error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

.reverse-cdc-status.success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #27ae60;
}

.clear-error-btn, .clear-success-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.clear-error-btn:hover {
  background: rgba(231, 76, 60, 0.2);
}

.clear-success-btn:hover {
  background: rgba(46, 204, 113, 0.2);
}

.control-buttons {
  display: flex;
  gap: 15px;
}

.start-reverse-cdc-btn, .stop-reverse-cdc-btn {
  flex: 1 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.start-reverse-cdc-btn {
  background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
  color: white;
}

.start-reverse-cdc-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.start-reverse-cdc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.stop-reverse-cdc-btn {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
}

.stop-reverse-cdc-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.stop-reverse-cdc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.statistics-controls {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.clear-stats-btn, .reset-global-btn {
  background: #95a5a6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-stats-btn:hover, .reset-global-btn:hover {
  background: #7f8c8d;
  transform: translateY(-1px);
}

/* Global Statistics Cards */
.global-statistics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 15px;
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.global-stat {
  border-top: 4px solid #3498db;
}

.insert-stat {
  border-top: 4px solid #27ae60;
}

.update-stat {
  border-top: 4px solid #f39c12;
}

.delete-stat {
  border-top: 4px solid #e74c3c;
}

.stat-content {
  text-align: center;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.3rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: #e9ecef;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(80vh - 70px);
}

/* Stats Modal */
.detailed-statistics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 15px;
  gap: 15px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.stat-label-modal {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}

.stat-value-modal {
  font-weight: 500;
  color: #2c3e50;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-running {
  background: #d4edda;
  color: #155724;
}

.status-stopped {
  background: #f8d7da;
  color: #721c24;
}

/* Logs Modal */
.logs-container {
  max-height: 400px;
  overflow-y: auto;
}

.log-item {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.log-item:hover {
  background: #f8f9fa;
}

.log-timestamp {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 4px;
}

.log-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.log-message {
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.4;
}

.no-logs {
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-style: italic;
}

.loading-stats {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .stop-cdc-main-container {
    padding: 10px;
  }
  
  .stop-cdc-section,
  .reverse-cdc-section {
    padding: 16px;
  }
  
  .stop-cdc-button-container {
    width: 100%;
  }
  
  .stop-cdc-button {
    min-width: auto;
    width: 100%;
  }
  
  .reverse-cdc-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .view-logs-btn,
  .refresh-btn {
    flex: 1 1;
    text-align: center;
  }
  
  .mapping-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .global-statistics-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .control-buttons {
    flex-direction: column;
  }
  
  .start-reverse-cdc-btn,
  .stop-reverse-cdc-btn {
    width: 100%;
  }
  
  .statistics-controls {
    flex-direction: column;
  }
  
  .clear-stats-btn,
  .reset-global-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .global-statistics-cards {
    grid-template-columns: 1fr;
  }
  
  .stop-cdc-section h3,
  .reverse-cdc-header h3 {
    font-size: 1.2rem;
  }
  
  .mapping-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .field-label {
    width: auto;
  }
  
  .field-value {
    width: 100%;
  }
  
  .modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .detailed-statistics {
    grid-template-columns: 1fr;
  }
}
.wizard-container { max-width:1400px;margin:40px auto;padding:20px;border-radius:10px;background:#fff;box-shadow:0 0 15px rgba(0,0,0,0.2);}
.wizard-container > h1{text-align:center;margin-bottom:20px;}
.wizard-container > .progress-bar{height:8px;background:#ddd;border-radius:4px;margin-bottom:0;overflow:hidden;}
.wizard-container > .progress-bar > .progress-bar-fill{height:100%;background:#3498db;border-radius:4px;transition:width 0.5s;}
.wizard-container > .step-indicators{display:flex;justify-content:space-between;align-items:flex-start;margin-top:-24px;margin-bottom:20px;padding-bottom:8px;}
.wizard-container > .step-indicators .step-indicator{text-align:center;flex:1 1;position:relative;}
.wizard-container > .step-indicators .step-circle{width:40px;height:40px;border-radius:50%;line-height:40px;margin:0 auto 8px;font-weight:bold;color:#fff;background:#ccc;border:4px solid #fff;box-sizing:border-box;position:relative;z-index:1;}
.wizard-container > .step-indicators .step-circle.active{background:#3498db;}
.wizard-container > .step-indicators .step-circle.completed{background:#2ecc71;}
.wizard-container > .step-indicators .step-title{font-size:12px;display:block;}
.wizard-container > .step-indicators .step-status{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:10px;color:#666;}
.wizard-container > .step-content{padding:20px;border:1px solid #ddd;border-radius:8px;background:#f9f9f9;margin-bottom:20px;}
.wizard-container .form input,.wizard-container .form textarea{width:100%;padding:8px;margin:5px 0;border-radius:4px;border:1px solid #ccc;}
.wizard-container .form textarea{resize:vertical;}
.wizard-container > .navigation{display:flex;justify-content:space-between;}
.wizard-container > .navigation button{padding:8px 16px;border:none;border-radius:4px;background:#3498db;color:#fff;cursor:pointer;}
.wizard-container > .navigation button:disabled{background:#ccc;cursor:not-allowed;}

.wizard-container { max-width:1400px;margin:40px auto;padding:20px;border-radius:10px;background:#fff;box-shadow:0 0 15px rgba(0,0,0,0.2);}
h1{text-align:center;margin-bottom:20px;}
.progress-bar{height:8px;background:#ddd;border-radius:4px;margin-bottom:20px;}
.progress-bar-fill{height:100%;background:#3498db;border-radius:4px;transition:width 0.5s;}
.step-indicators{display:flex;justify-content:space-between;margin-bottom:20px;}
.step-indicator{text-align:center;flex:1 1;position:relative;}
.step-circle{width:40px;height:40px;border-radius:50%;line-height:40px;margin:0 auto 5px;font-weight:bold;color:#fff;background:#ccc;}
.step-circle.active{background:#3498db;}
.step-circle.completed{background:#2ecc71;}
.step-title{font-size:12px;}
.step-status{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:10px;color:#666;}
.step-content{padding:20px;border:1px solid #ddd;border-radius:8px;background:#f9f9f9;margin-bottom:20px;}
.form input,.form textarea{width:100%;padding:8px;margin:5px 0;border-radius:4px;border:1px solid #ccc;}
.form textarea{resize:vertical;}
.navigation{display:flex;justify-content:space-between;}
.navigation button{padding:8px 16px;border:none;border-radius:4px;background:#3498db;color:#fff;cursor:pointer;}
.navigation button:disabled{background:#ccc;cursor:not-allowed;}
.progress-simulation{width:100%;height:10px;background:#ddd;border-radius:5px;margin-top:10px;}
.progress-simulation-fill{height:100%;background:#2ecc71;border-radius:5px;transition:width 0.5s;}
.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 8px;
}
 



.migration-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #f5f7fa;
  min-height: 100vh;
}

.migration-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.migration-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
}

.job-id-badge {
  background: #edf2f7;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-family: monospace;
  color: #4a5568;
}

.database-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 24px;
}

.database-panel {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.panel-header {
  padding: 20px 24px;
  background: #f8f9fa;
  border-bottom: 2px solid #e2e8f0;
  color: #2d3748;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #2d3748;
}

.mysql-panel .panel-header {
  background: #f8f9fa;
  border-bottom: 2px solid #e2e8f0;
}

.mysql-panel .panel-header h2 {
  color: #2c5282; 
}

.database-panels .database-panel.mysql-panel {
    border-top: 4px solid #3182ce !important;
}


.couchbase-panel .panel-header {
  background: #f8f9fa;
  border-bottom: 2px solid #e2e8f0;
}

.loading-spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top-color: #4a5568;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.form-group {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.form-group:last-child {
  border-bottom: none;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
}

select, input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: all 0.2s;
}

select:focus, input:focus {
  outline: none;
  border-color: #4a5568;
  box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

select:disabled, input:disabled {
  background: #f7fafc;
  cursor: not-allowed;
}


.tables-list-container {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.tables-checkbox-list {
  max-height: 350px;
  overflow-y: auto;
}


.table-checkbox-item {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.2s;
  display: flex;             
  align-items: center;       
}

.table-checkbox-item:hover {
  background: #f7fafc;
}

.table-checkbox-item.select-all-item {
  background: #f7fafc;
  border-bottom: 2px solid #e2e8f0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
}


.table-checkbox-item label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin: 0 !important;
  width: 100%;
}



.table-checkbox-item input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #2196f3;
}


 .table-checkbox-item .table-name {
  flex: 1 1;
  font-size: 13px;   
  color: #2d3748;
  font-weight: normal;
}

.table-checkbox-item.select-all-item .table-name {
  font-weight: normal;
  color: #2d3748;  
}


.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-left: 8px;
  flex-shrink: 0;
}

.parent-badge {
  background: #c6f6d5;
  color: #22543d;
}

.independent-badge {
  background: #e2e8f0;
  color: #4a5568;
}

.child-badge {
  background: #bee3f8;
  color: #2c5282;
}

.count-badge {
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: #4a5568;
  margin-left: 8px;
  flex-shrink: 0;
}


.selected-info {
  margin-top: 12px;
  padding: 10px 12px;
  background: #e6fffa;
  border-radius: 8px;
  text-align: center;
}

.selected-count {
  font-size: 13px;
  font-weight: 500;
  color: #2c7a7b;
}


.related-tables-section {
  padding: 20px 24px;
  background: #fafbfc;
  border-top: 1px solid #e2e8f0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.section-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.total-badge {
  background: #edf2f7;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #4a5568;
}

.child-tables-info {
  margin-top: 8px;
}

.child-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.child-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  font-size: 13px;
  color: #4a5568;
  transition: all 0.2s;
}

.child-tag:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}


.index-migration-section {
  padding: 16px 24px 20px 24px;
  background: #fafbfc;
  border-top: 1px solid #e2e8f0;
}

.index-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin: 0;
  padding: 12px;
  
  border-radius: 8px;
  transition: all 0.2s;
}

.index-checkbox-label:hover {

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.index-checkbox {
  width: 18px;
  height: 18px;
  margin: 2px 0 0 0;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #2196f3 !important;
}

.index-checkbox-text {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.index-checkbox-text strong {
  font-size: 14px;
  color: #2d3748;
  font-weight: 600;
}

.index-hint {
  font-size: 12px;
 
  font-weight: normal;
}


.info-text {
  font-size: 12px;
  color: #718096;
  margin-top: 8px;
  line-height: 1.4;
}

.info-text.warning {
  color: #e53e3e;
}

.info-message {
  padding: 12px;
  text-align: center;
  color: #718096;
  font-size: 13px;
  background: #f7fafc;
  border-radius: 6px;
}

.loading-message {
  padding: 20px;
  text-align: center;
  color: #718096;
  font-size: 13px;
}


.collections-list-container {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.collections-list {
  max-height: 250px;
  overflow-y: auto;
}

.collection-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #e2e8f0;
}

.collection-item:hover {
  background: #f7fafc;
}

.collection-item.select-all {
  background: #f7fafc;
  border-bottom: 2px solid #e2e8f0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.collection-item input {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #4a5568;
}

.collection-name {
  flex: 1 1;
  font-size: 13px;
  color: #2d3748;
}


.same-as-source-section {
  padding: 20px 24px;
}

.info-box {
  background: #f7fafc;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  border: 1px solid #e2e8f0;
}

.info-box h4 {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 12px 0;
}

.migration-summary p {
  font-size: 13px;
  margin: 8px 0;
  color: #4a5568;
}

.table-summary {
  margin: 12px 0;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.parent-summary {
  display: inline-block;
  font-weight: 500;
  color: #22543d;
  background: #c6f6d5;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  margin-bottom: 8px;
}

.children-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.child-summary {
  font-size: 12px;
  color: #2c5282;
  background: #bee3f8;
  padding: 4px 10px;
  border-radius: 16px;
}

.more-summary {
  font-size: 12px;
  color: #718096;
  padding: 4px 8px;
}


.migration-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
  padding: 20px 0;
}

.migrate-button {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4a5568;
  color: white;
}

.migrate-button:hover:not(:disabled) {
  background: #2d3748;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 85, 104, 0.2);
}

.migrate-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}


.cdc-operations-panel {
  background: white;
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cdc-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.cdc-breakdown {
  display: flex;
  gap: 16px;
}

.cdc-stat {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
}

.cdc-stat.insert {
  background: #c6f6d5;
  color: #22543d;
}

.cdc-stat.update {
  background: #feebc8;
  color: #7b341e;
}

.cdc-stat.delete {
  background: #fed7d7;
  color: #9b2c2c;
}


.error-message {
  background: #fed7d7;
  padding: 12px 16px;
  border-radius: 8px;
  color: #9b2c2c;
  margin-bottom: 16px;
  font-size: 13px;
  border-left: 4px solid #c53030;
}


.progress-container {
  position: relative;
  background: #e2e8f0;
  border-radius: 20px;
  height: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-bar {
  background: #4a5568;
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 20px;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -20px;
  font-size: 11px;
  color: #4a5568;
  font-weight: 500;
}


.logs-container {
  background: white;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logs-container h4 {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 12px 0;
}

.logs-list {
  max-height: 200px;
  overflow-y: auto;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 12px;
}

.log-entry {
  padding: 6px 0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.log-time {
  color: #718096;
  font-family: monospace;
}

.log-title {
  font-weight: 600;
  color: #4a5568;
}

.log-message {
  color: #2d3748;
  flex: 1 1;
}


.loading-container, .error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f5f7fa;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #4a5568;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.auth-button {
  background: #4a5568;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.2s;
}

.auth-button:hover {
  background: #2d3748;
  transform: translateY(-1px);
}


.tables-checkbox-list::-webkit-scrollbar,
.collections-list::-webkit-scrollbar,
.logs-list::-webkit-scrollbar {
  width: 6px;
}

.tables-checkbox-list::-webkit-scrollbar-track,
.collections-list::-webkit-scrollbar-track,
.logs-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.tables-checkbox-list::-webkit-scrollbar-thumb,
.collections-list::-webkit-scrollbar-thumb,
.logs-list::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.tables-checkbox-list::-webkit-scrollbar-thumb:hover,
.collections-list::-webkit-scrollbar-thumb:hover,
.logs-list::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}


@media (max-width: 768px) {
  .database-panels {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .migration-container {
    padding: 16px;
  }
  
  .migration-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .migrate-button {
    justify-content: center;
  }
  
  .cdc-operations-panel {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .log-entry {
    flex-direction: column;
    gap: 4px;
  }
  
  .table-checkbox-item label {
    gap: 10px;
  }
  
  .badge {
    padding: 3px 8px;
    font-size: 10px;
  }
}

.write-performance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 24px;
  gap: 24px;
}

 
.databases-list-container {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  max-height: 250px;
  overflow-y: auto;
  background: white;
}

.databases-checkbox-list {
  display: flex;
  flex-direction: column;
}

.database-checkbox-item {
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.database-checkbox-item:last-child {
  border-bottom: none;
}

.database-checkbox-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  margin: 0;
}

.database-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 12px;
  cursor: pointer;
   accent-color: #2196f3 !important;
}

.database-name {
  font-size: 14px;
  font-weight: normal;
  cursor: pointer;
}

















.buckets-list-container {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.buckets-checkbox-list {
  max-height: 300px;
  overflow-y: auto;
}

.bucket-checkbox-item {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.bucket-checkbox-item:hover {
  background: #f7fafc;
}

.bucket-checkbox-item:last-child {
  border-bottom: none;
}

.bucket-checkbox-item.select-all-item {
  border-bottom: 2px solid #e2e8f0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
}

.bucket-checkbox-item label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin: 0 !important;
  width: 100%;
}

.bucket-checkbox-item input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #38a169 !important;
}

.bucket-name {
  flex: 1 1;
  font-size: 14px;
  color: #2d3748;
  font-weight: normal;
}

.bucket-checkbox-item.select-all-item .bucket-name {
  font-weight: 600;
  color: #000000;
}


.bucket-checkbox-item.select-all-item .count-badge {
  display: none;
}


.bucket-checkbox-item:not(.select-all-item) .count-badge {
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: #4a5568;
  margin-left: 8px;
  flex-shrink: 0;
}


.bucket-checkbox-item:has(input:checked) {
  border-left: 3px solid #38a169;
}


.scopes-list-container {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.scopes-checkbox-list {
  max-height: 300px;
  overflow-y: auto;
}

.scope-checkbox-item {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.scope-checkbox-item:hover {
  background: #f7fafc;
}

.scope-checkbox-item:last-child {
  border-bottom: none;
}

.scope-checkbox-item.select-all-item {
  border-bottom: 2px solid #e2e8f0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
}

.scope-checkbox-item label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin: 0 !important;
  width: 100%;
}

.scope-checkbox-item input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #38a169 !important;
}

.scope-name {
  flex: 1 1;
  font-size: 14px;
  color: #2d3748;
  font-weight: normal;
}

.scope-checkbox-item.select-all-item .scope-name {
  font-weight: 600;
  color: #000000;
}

.scope-checkbox-item.select-all-item .count-badge {
  display: none;
}


.scope-checkbox-item:not(.select-all-item) .count-badge {
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: #4a5568;
  margin-left: 8px;
  flex-shrink: 0;
}


.scope-checkbox-item:has(input:checked) {
  border-left: 3px solid #38a169;
}


.collections-list-container {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.collections-list {
  max-height: 300px;
  overflow-y: auto;
}

.collection-item {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.collection-item:hover {
  background: #f7fafc;
}

.collection-item:last-child {
  border-bottom: none;
}

.collection-item.select-all {
  border-bottom: 2px solid #e2e8f0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
}

.collection-item label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin: 0 !important;
  width: 100%;
}

.collection-item input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #38a169 !important;
}

.collection-name {
  flex: 1 1;
  font-size: 14px;
  color: #2d3748;
  font-weight: normal;
}

.collection-item.select-all .collection-name {
  font-weight: 600;
  color: #000000;
}


.collection-item.select-all .count-badge {
  display: none;
}


.collection-item:not(.select-all) .count-badge {
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: #4a5568;
  margin-left: 8px;
  flex-shrink: 0;
}


.collection-item:has(input:checked) {

}


.couchbase-panel {
  border-top: 4px solid #38a169 !important;
}

.couchbase-panel .panel-header {
  border-bottom: 2px solid #e2e8f0;
}

.couchbase-panel .panel-header h2 {
  color: #2d3748;
}


.couchbase-panel .info-text {
  font-size: 12px;
  color: #718096;
  margin-top: 8px;
  line-height: 1.4;
}

.couchbase-panel .info-text.warning {
  color: #e53e3e;
}


.couchbase-panel .loading-message {
  padding: 20px;
  text-align: center;
  color: #718096;
  font-size: 13px;
  background: #f7fafc;
  border-radius: 6px;
}


.buckets-checkbox-list::-webkit-scrollbar,
.scopes-checkbox-list::-webkit-scrollbar,
.collections-list::-webkit-scrollbar {
  width: 6px;
}

.buckets-checkbox-list::-webkit-scrollbar-track,
.scopes-checkbox-list::-webkit-scrollbar-track,
.collections-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.buckets-checkbox-list::-webkit-scrollbar-thumb,
.scopes-checkbox-list::-webkit-scrollbar-thumb,
.collections-list::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.buckets-checkbox-list::-webkit-scrollbar-thumb:hover,
.scopes-checkbox-list::-webkit-scrollbar-thumb:hover,
.collections-list::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}





.collection-item label {
  gap: 12px;  
}


.collection-item input[type="checkbox"] {
  margin-right: 8px !important;  
}


.collection-name {
  padding-left: 4px; 
}















.mysql-migration-dashboard {
  width: 100%;
  min-height: 100%;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.dashboard-container {
  min-height: 100%;
  padding: 24px;
  background: #f7fafc;
}


.connection-banner {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.connection-banner.error {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}


.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 24px;
}

.info-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid #dce4f0;
  border-top: 4px solid;
}

.info-card.source-card {
  border-top-color: #1d4ed8;
}

.info-card.target-card {
  border-top-color: #0f766e;
}

.card-header {
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
  font-size: 16px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.info-row .label {
  color: #6b7280;
  font-size: 14px;
}

.info-row .value {
  color: #111827;
  font-weight: 500;
  font-size: 14px;
}


.progress-section {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid #dce4f0;
  border-top: 4px solid #1d4ed8;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-title {
  font-weight: 600;
  color: #374151;
}

.progress-percent {
  font-size: 20px;
  font-weight: 700;
  color: #1d4ed8;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 16px;
  gap: 16px;
}

.progress-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.progress-stat .stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.progress-stat .stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}


.migration-stats-section {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid #dce4f0;
  border-top: 4px solid #1d4ed8;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px 0;
}

.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  border-top: 4px solid;
}

.stat-card.total-documents {
  border-top-color: #3b82f6;
}

.stat-card.migrated-documents {
  border-top-color: #10b981;
}

.stat-card.remaining {
  border-top-color: #f59e0b;
}

.stat-card.target-actual-count {
  border-top-color: #8b5cf6;
}

.stat-card.chunk-documents,
.stat-card.chunk-total {
  border-top-color: #0891b2;
}

.stat-card.index-documents {
  border-top-color: #0ea5e9;
}

.stat-card.index-failed-documents {
  border-top-color: #dc2626;
}

.stat-card.success-rate {
  border-top-color: #8b5cf6;
}

.stat-card.speed {
  border-top-color: #4b5563;
}

.stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  word-break: break-word;
}

/* Production Readiness Section */
.production-readiness-section {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid #dce4f0;
  border-top: 4px solid #1d4ed8;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.readiness-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.readiness-badge.pass {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #86efac;
}

.readiness-badge.pending {
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
}

.readiness-badge.check {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.readiness-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  color: #475569;
  font-size: 13px;
}

.production-readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.production-readiness-card {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 12px;
}

.production-readiness-card.pass {
  border-left: 4px solid #10b981;
}

.production-readiness-card.pending {
  border-left: 4px solid #f59e0b;
}

.production-readiness-card.check {
  border-left: 4px solid #ef4444;
}

.readiness-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.readiness-card-title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}

.readiness-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}

.readiness-state.pass {
  color: #065f46;
  background: #d1fae5;
  border-color: #86efac;
}

.readiness-state.pending {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fdba74;
}

.readiness-state.check {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.readiness-card-detail {
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

/* Tables Overview Section */
.tables-overview-section {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid #dce4f0;
  border-top: 4px solid #1d4ed8;
}

.overview-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #6b7280;
}

.table-level-scroll {
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.table-level-scroll::-webkit-scrollbar {
  width: 10px;
}

.table-level-scroll::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 999px;
}

.table-level-scroll::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 999px;
}

.table-category {
  background: #f8fafc;
  border-radius: 6px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.category-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px 0;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.table-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  border: 1px solid #dbe4f0;
  border-top: 4px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  min-height: 196px;
  display: flex;
  flex-direction: column;
}

.table-card:hover {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.table-card.parent {
  border-top-color: #1d4ed8;
}

.table-card.child {
  border-top-color: #0f766e;
}

.table-card.grandchild {
  border-top-color: #0ea5e9;
}

.table-card.junction {
  border-top-color: #6b7280;
}

.table-card.selfRef {
  border-top-color: #8b5cf6;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
}

.table-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #111827;
  flex-wrap: wrap;
}

.table-title {
  font-weight: 700;
}

.expand-icon {
  font-size: 12px;
  color: #6b7280;
}

.table-status-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-chip.pass {
  color: #065f46;
  background: #d1fae5;
}

.status-chip.partial {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fb923c;
}

.status-chip.failed {
  color: #991b1b;
  background: #fee2e2;
  border-color: #f87171;
}

.status-chip.not-applicable {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #60a5fa;
}

.table-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 2px 0;
}

.stat-row .label {
  color: #6b7280;
}

.stat-row .value {
  font-weight: 500;
  color: #111827;
}

.table-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 2px;
}

.table-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
  transition: width 0.25s ease;
}

.details-btn {
  margin-top: auto;
  padding: 6px 12px;
  background: #1d4ed8;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.details-btn:hover {
  background: #1e40af;
}

/* Metadata Popup */
.metadata-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.35);
  -webkit-backdrop-filter: blur(1px);
          backdrop-filter: blur(1px);
}

.metadata-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1220px;
  max-width: 96vw;
  max-height: 80vh;
  overflow-y: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.28);
  z-index: 1000;
  border: 1px solid #cbd5e1;
  border-top: 6px solid #1d4ed8;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}

.popup-header-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.popup-header h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.popup-subtitle {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.close-btn {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #1d4ed8;
  padding: 0;
}

.popup-content {
  padding: 14px 16px;
}

.popup-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 12px;
}

.popup-kpi-card {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.popup-kpi-label {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
}

.popup-kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.popup-kpi-value.pass {
  color: #047857;
}

.popup-kpi-value.partial {
  color: #b45309;
}

.popup-row-container {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.popup-column {
  flex: 1 1;
  min-width: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.popup-column h5 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid;
}

.popup-column h5.source-title {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

.popup-column h5.target-title {
  color: #0f766e;
  border-bottom-color: #0f766e;
}

.popup-row {
  display: flex;
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px dotted #f3f4f6;
}

.popup-row .label {
  width: 128px;
  color: #6b7280;
  flex-shrink: 0;
  font-size: 12px;
}

.popup-row .value {
  flex: 1 1;
  color: #111827;
  font-weight: 500;
  word-break: break-word;
  font-size: 12px;
}


.storage-guide-section {
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #ffffff 100%);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0 4px 0;
}

.storage-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.storage-guide-section h5 {
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
}

.storage-guide-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #34d399;
}

.storage-guide-summary {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
}

.storage-guide-note {
  margin: 0 0 12px 0;
  font-size: 11px;
  color: #475569;
  line-height: 1.45;
}

.storage-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.storage-guide-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px;
  min-height: 72px;
}

.storage-guide-card-title {
  font-size: 11px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.storage-guide-card-value {
  font-size: 12px;
  color: #0f172a;
  line-height: 1.45;
}

.storage-flow-section {
  margin-top: 12px;
}

.storage-flow-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.storage-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.storage-flow-card {
  border: 1px solid #cbd5e1;
  border-left-width: 4px;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

.storage-flow-card.info {
  border-left-color: #3b82f6;
}

.storage-flow-card.pass {
  border-left-color: #10b981;
}

.storage-flow-card.partial {
  border-left-color: #f59e0b;
}

.storage-flow-card.failed {
  border-left-color: #ef4444;
}

.storage-flow-card-title {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.storage-flow-card-value {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.storage-flow-card-detail {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
}

.migration-details-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  margin-top: 6px;
}

.migration-details-section h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1d4ed8;
  margin: 0 0 12px 0;
}

.migration-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 4px 12px;
  gap: 4px 12px;
}

.index-detail-row {
  border: 1px solid #e2e8f0;
  border-left-width: 4px;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  background: #f8fafc;
}

.index-detail-row.pass {
  border-left-color: #10b981;
}

.index-detail-row.partial {
  border-left-color: #f59e0b;
}

.index-detail-row.failed {
  border-left-color: #ef4444;
}


.cdc-panel {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid #d1fae5;
  border-top: 4px solid #059669;
}

.cdc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 20px;
}

.cdc-stat-card {
  background: #f9fafb;
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  border-top: 3px solid #3182ce;
}

.cdc-stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.cdc-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

/* Logs Section */
.logs-section {
  background: linear-gradient(140deg, #f8fafc 0%, #ffffff 65%);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  border-top: 4px solid #6b7280;
}

.log-controls {
  display: flex;
  gap: 12px;
}

.log-filters {
  display: flex;
  gap: 6px;
}

.filter-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.filter-btn.active {
  background: #1d4ed8;
  color: white;
}

.auto-scroll-btn {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 12px;
  background: white;
  color: #6b7280;
  cursor: pointer;
}

.logs-container {
  height: 340px;
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 12px;
}

.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 4px;
  background: #f9fafb;
  border-radius: 4px;
  border-left: 3px solid transparent;
}

.log-entry.log-success {
  border-left-color: #10b981;
}

.log-entry.log-error {
  border-left-color: #ef4444;
}

.log-entry.log-info {
  border-left-color: #3b82f6;
}

.log-time {
  color: #6b7280;
  font-size: 11px;
  white-space: nowrap;
  min-width: 85px;
}

.log-content {
  flex: 1 1;
}

.log-title {
  color: #111827;
  font-weight: 500;
  margin-bottom: 2px;
  font-size: 12px;
}

.log-message {
  color: #6b7280;
  font-size: 11px;
}

.log-source {
  color: #9ca3af;
  font-size: 10px;
  padding: 2px 6px;
  background: #e5e7eb;
  border-radius: 2px;
}

.no-logs {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6b7280;
  font-style: italic;
}


@media (max-width: 1200px) {
  .dashboard-container {
    padding: 16px;
  }

  .stats-cards-grid,
  .progress-stats,
  .cdc-stats-grid,
  .production-readiness-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .popup-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .dashboard-container {
    padding: 12px;
  }

  .table-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .popup-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    padding: 10px;
  }

  .stats-cards-grid,
  .progress-stats,
  .cdc-stats-grid,
  .production-readiness-grid {
    grid-template-columns: 1fr;
  }

  .overview-summary {
    flex-direction: column;
    gap: 6px;
  }

  .log-controls {
    flex-direction: column;
  }

  .metadata-popup {
    width: 95%;
  }

  .popup-kpi-strip {
    grid-template-columns: 1fr;
  }

  .popup-row-container {
    flex-direction: column;
    gap: 16px;
  }

  .migration-details-grid {
    grid-template-columns: 1fr;
  }

  .storage-guide-grid {
    grid-template-columns: 1fr;
  }

  .storage-flow-grid {
    grid-template-columns: 1fr;
  }

  .table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .table-status-badges {
    justify-content: flex-start;
  }

  .table-level-scroll {
    max-height: 420px;
  }

  .logs-container {
    height: 280px;
    max-height: 280px;
    padding: 10px;
  }

  .log-entry {
    flex-direction: column;
    gap: 6px;
  }

  .log-time {
    min-width: auto;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 16px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-value {
    font-size: 22px;
  }

  .table-grid {
    grid-template-columns: 1fr;
  }

  .table-card {
    min-height: 178px;
    padding: 10px;
  }

  .metadata-popup {
    max-width: 98vw;
    max-height: 85vh;
  }

  .popup-content {
    padding: 10px;
  }

  .popup-header {
    padding: 10px 12px;
  }

  .logs-section {
    padding: 12px;
  }

  .log-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}



.chart-toggle-btn {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-toggle-btn:hover:not(:disabled) {
  background: #dbeafe;
  border-color: #60a5fa;
}

.chart-toggle-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chart-toggle-btn.inline {
  margin-left: 4px;
  padding: 5px 12px;
}


.section-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}


.relation-chart-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.35);
  -webkit-backdrop-filter: blur(1px);
          backdrop-filter: blur(1px);
}


.relation-chart-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1320px;
  max-width: 97vw;
  max-height: 82vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.28);
  border: 1px solid #cbd5e1;
  border-top: 6px solid #0f766e;
  z-index: 1001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}


.relation-chart-header {
  border-bottom: 1px solid #dcfce7;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.relation-chart-header h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}


.relation-chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.relation-chart-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}


.relation-chart-view-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.relation-chart-view-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.relation-chart-table-select {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  min-width: 170px;
  cursor: pointer;
}

.relation-chart-table-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


.relation-chart-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
}

.chart-control-btn {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-control-btn:hover:not(:disabled) {
  background: #dbeafe;
  border-color: #93c5fd;
}

.chart-control-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chart-control-btn.active {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
}

.chart-zoom-label {
  min-width: 52px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}


.relation-chart-scroll {
  flex: 1 1;
  overflow: auto;
  padding: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 65%);
  cursor: grab;
  -webkit-user-select: none;
          user-select: none;
}

.relation-chart-scroll.dragging {
  cursor: grabbing;
}


.relation-chart-scroll::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

.relation-chart-scroll::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 999px;
}

.relation-chart-scroll::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
}

.relation-chart-scroll::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}


.relation-chart-canvas {
  position: relative;
  min-width: 100%;
  will-change: transform;
}


.relation-chart-lines {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.relation-link {
  fill: none;
  stroke: rgba(15, 23, 42, 0.26);
  stroke-width: 1.7;
}


.relation-level-chip {
  position: absolute;
  top: 6px;
  transform: translateY(-100%);
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 5;
}


.relation-node {
  position: absolute;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #64748b;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.09);
  padding: 10px 10px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: box-shadow 0.2s ease;
  cursor: pointer;
  z-index: 10;
}

.relation-node:hover {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}


.relation-node.synthetic {
  border-style: dashed;
  opacity: 0.88;
}


.relation-node.parent {
  border-left-color: #1d4ed8;
}

.relation-node.child,
.relation-node.embedded {
  border-left-color: #0f766e;
}

.relation-node.grandchild {
  border-left-color: #0891b2;
}

.relation-node.reference,
.relation-node.junction,
.relation-node.selfRef {
  border-left-color: #7c3aed;
}


.relation-node-title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
}

.relation-node-subtitle {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.relation-node-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
}


@media (max-width: 768px) {
  .relation-chart-popup {
    width: 96vw;
    max-height: 86vh;
  }

  .relation-chart-toolbar {
    align-items: flex-start;
  }

  .relation-chart-summary {
    gap: 8px;
    flex-direction: column;
  }

  .relation-chart-view-switch {
    width: 100%;
    justify-content: flex-start;
  }

  .relation-chart-table-select {
    min-width: 100%;
  }

  .relation-chart-controls {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .relation-node {
    padding: 8px 8px 6px 10px;
  }

  .relation-node-title {
    font-size: 11px;
  }

  .relation-node-subtitle {
    font-size: 9px;
  }

  .relation-node-meta {
    font-size: 9px;
  }
}

@media (max-width: 576px) {
  .chart-control-btn {
    padding: 6px 8px;
    font-size: 10px;
  }

  .relation-chart-scroll {
    padding: 10px;
  }

  .relation-level-chip {
    font-size: 8px;
    padding: 2px 6px;
  }
}









.info-row {
  display: block;
}

.label {
  display: block;
  margin-bottom: 12px;
}

.names-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.name-tag {
  display: block;
  background: #f8f9fa;
  color: #2c3e50;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-family: monospace;
  border-left: 4px solid #1a73e8;
}

.name-tag.more {
  text-align: center;
  background: #e9ecef;
  color: #666;
  border-left-color: #999;
}



































 

.stop-all-cdc-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
 
.button-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
 

/* .stop-all-button {
 
  font-size: 20px;
 
  
  min-width: 350px;
  min-height: 70px;
 
  
  padding: 25px 50px;
 
 
  margin: 40px 20px;
 
 
  background: linear-gradient(135deg, #667eea 0%, #667eea 100%);
  color: white;
  width: 5px;
  height: 30px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(75, 53, 220, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
} */


.stop-all-button {
  font-size: 16px;
  min-width: 250px;
  min-height: 60px;
  padding: 15px 40px;
  margin: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: auto;        /* CHANGED from 5px */
  height: auto;       /* CHANGED from 30px */
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(75, 53, 220, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;           /* ADD */
  align-items: center;     /* ADD */
  justify-content: center; /* ADD */
  gap: 8px;                /* ADD */
  white-space: nowrap;     /* ADD */
}
 
.stop-all-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
  background: linear-gradient(135deg, #667eea 0%, #667eea 100%);
}
 
.stop-all-button:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}
 
.stop-all-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
 
/* .stop-all-button.stopped {
 
   background: linear-gradient(135deg,  0%,  100%);
  cursor: default;
  box-shadow: none;
} */
 .stop-all-button.stopped {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%); /* FIXED - was empty */
  cursor: default;
  box-shadow: none;
}
 
.stop-all-button.stopped:hover {
  transform: none;
  box-shadow: none;
}
 
.message {
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
 
.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
 
.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
 
.message-icon {
  font-size: 18px;
  font-weight: bold;
}
 

/* .spinner {
  width: 50px;
  height: 16px;
  border: 2px solid rgba(43, 57, 250, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  display: inline-block;
  margin-right: 8px;
} */

.spinner {
  width: 16px;          /* CHANGED from 50px */
  height: 16px;         /* CHANGED from 16px */
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  display: inline-block;
  flex-shrink: 0;       /* ADD */
  margin-right: 0;      /* CHANGED */
}
 
@keyframes spin {
  to { transform: rotate(360deg); }
}
 
.auth-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 15px;
}
 
.auth-loading .spinner {
  width: 40px;
  height: 40px;
  border-width: 4px;
}
 
.login-prompt {
  max-width: 500px;
  margin: 100px auto;
  padding: 40px;
  text-align: center;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
 
.login-prompt h2 {
  color: #2c3e50;
  margin-bottom: 15px;
}
 
.login-prompt p {
  color: #7f8c8d;
  margin-bottom: 25px;
}
 
.login-button {
  padding: 12px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
 
.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
 

/* AerospikeConnection.css - FULL WIDTH VERSION WITH SMALLER BUTTON */

.aerospike-connection-container {
  width: 100%;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* Loading State */
.aerospike-loading {
  text-align: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #FF6B35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

.spinner-small {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

.spinner-very-small {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #28a745;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 5px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Auth Prompt */
.auth-prompt {
  text-align: center;
  padding: 40px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.auth-title {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.auth-message {
  color: #666;
  margin-bottom: 20px;
}

.auth-button {
  background-color: #FF6B35;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-button:hover {
  background-color: #e85a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* User Info */
.user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.user-badge {
  color: #28a745;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.user-badge::before {
  content: '✓';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #28a745;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  margin-right: 8px;
  font-size: 12px;
}

.logout-button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.logout-button:hover {
  background-color: #c82333;
}

/* Active Connections */
.active-connections {
  margin-bottom: 25px;
  padding: 15px;
  background-color: #e8f4fd;
  border-left: 4px solid #2196F3;
  border-radius: 4px;
}

.active-connections h4 {
  margin: 0 0 10px 0;
  color: #1976d2;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.connection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.connection-item {
  padding: 5px 10px;
  background-color: white;
  border-radius: 4px;
  font-size: 13px;
  color: #495057;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Connection Form */
.connection-form {
  margin-top: 20px;
  width: 100%;
}

.connection-form h3 {
  color: #333;
  margin-bottom: 25px;
  font-size: 1.3rem;
  text-align: center;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
  width: 100%;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  color: #495057;
  font-weight: 500;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #FF6B35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input.error {
  border-color: #dc3545;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Checkbox Group */
.checkbox-group {
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #495057;
  font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Advanced Toggle */
.advanced-toggle {
  margin: 15px 0;
}

.advanced-button {
  background: none;
  border: none;
  color: #FF6B35;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.advanced-button:hover {
  text-decoration: underline;
}

/* Error Message */
.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
}

/* Button Container - UPDATED for smaller button */
.button-container {
  margin: 25px 0 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.button-group {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

/* UPDATED - Smaller connect button */
.connect-button {
  padding: 8px 16px;
  background-color: #FF6B35;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 36px;
}

.connect-button:hover:not(:disabled) {
  background-color: #e85a2a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.connect-button.connected {
  background-color: #28a745;
}

.connect-button.connected:hover:not(:disabled) {
  background-color: #218838;
}

.connect-button.connecting {
  background-color: #ffc107;
  cursor: wait;
}

.connect-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* UPDATED - Smaller disconnect button */
.disconnect-button {
  padding: 8px 16px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 80px;
  height: 36px;
}

.disconnect-button:hover:not(:disabled) {
  background-color: #5a6268;
}

.disconnect-button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.checkmark {
  margin-right: 6px;
  font-size: 14px;
}

/* Alerts */
.alert {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  display: flex;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.success-icon {
  width: 24px;
  height: 24px;
  background-color: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.error-icon {
  width: 24px;
  height: 24px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.success-content,
.error-content {
  flex: 1 1;
}

.success-content strong,
.error-content strong {
  display: block;
  margin-bottom: 5px;
}

.success-content p,
.error-content p {
  margin: 0;
  font-size: 14px;
}

.fetching-indicator {
  margin-top: 8px;
  display: flex;
  align-items: center;
  color: #28a745;
  font-size: 13px;
}

.error-suggestion {
  margin-top: 10px;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  font-size: 13px;
}

/* Namespaces List */
.namespaces-list {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #e9ecef;
  width: 100%;
}

.namespaces-list h4 {
  color: #495057;
  margin-bottom: 15px;
  font-size: 16px;
}

.namespaces-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.namespace-item {
  padding: 8px 12px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  font-size: 14px;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.namespace-item:hover {
  background-color: #fff3e0;
  border-color: #FF6B35;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.namespace-icon {
  font-size: 16px;
}

/* Advanced Section */
.advanced-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #ced4da;
  width: 100%;
}

.advanced-title {
  color: #495057;
  margin-bottom: 15px;
  font-size: 1rem;
}

.advanced-note {
  margin-top: 10px;
  color: #6c757d;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .aerospike-connection-container {
    padding: 15px;
  }

  .button-group {
    flex-direction: column;
  }

  .connect-button,
  .disconnect-button {
    width: 100%;
    min-width: 100%;
  }

  .namespaces-list ul {
    grid-template-columns: 1fr;
  }

  .user-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .logout-button {
    width: 100%;
  }
}

/* Tooltip for disabled buttons */
.connect-button[disabled] {
  position: relative;
}

.connect-button[disabled]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background-color: #333;
  color: white;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  margin-bottom: 5px;
  z-index: 1000;
}

/* Animation for success message */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success,
.alert-error {
  animation: slideIn 0.3s ease-out;
}
.aerospike-metadata-container,
.aerospike-metadata-loading,
.aerospike-metadata-error {
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  max-width: 980px;
  margin: 0 auto;
}

/* Metadata Boxes Layout */
.metadata-boxes {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Individual Metadata Box */
.metadata-box {
  flex: 1 1;
  min-width: 200px;
  max-width: 300px;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metadata-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.metadata-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.namespace-box::before {
  background: linear-gradient(90deg, #4299e1 0%, #667eea 100%);
}

.sets-box::before {
  background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
}

.box-content {
  text-align: center;
}

.box-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.box-value {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.box-footer {
  text-align: center;
  margin-top: 0.5rem;
}

.info-tooltip {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #e2e8f0;
  color: #4a5568;
  border-radius: 50%;
  font-size: 12px;
  line-height: 20px;
  cursor: help;
  transition: background 0.3s ease;
}

.info-tooltip:hover {
  background: #cbd5e0;
}

/* Loading State */
.aerospike-metadata-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: #4299e1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

/* Error State */
.aerospike-metadata-error {
  text-align: center;
  padding: 2rem;
}

.error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
  border-radius: 50%;
  position: relative;
}

.error-icon::before,
.error-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 4px;
  background: white;
  border-radius: 2px;
}

.error-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.error-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.error-message {
  color: #e53e3e;
  margin: 1rem 0;
  font-size: 1.1rem;
}

.error-actions {
  margin-top: 1.5rem;
}

.error-help {
  margin-top: 1rem;
  color: #718096;
  font-size: 0.9rem;
}

.retry-button {
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.retry-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(66, 153, 225, 0.3);
}

.retry-button:active {
  transform: translateY(0);
}

/* Authentication Required Message */
.auth-required-message {
  text-align: center;
  padding: 2rem;
}

.auth-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
  border-radius: 50%;
  position: relative;
}

.auth-icon::before {
  content: '🔒';
  font-size: 32px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.auth-required-message h3 {
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.auth-required-message p {
  color: #718096;
  font-size: 1rem;
}

/* Demo Mode Banner */
.demo-banner {
  background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Connection Info */
.connection-info {
  margin-top: 1.5rem;
  text-align: center;
  color: #a0aec0;
  font-size: 0.9rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.namespace-list {
  margin-top: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
}

.namespace-list h4 {
  margin: 0 0 0.75rem;
  color: #2d3748;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.list-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.list-item {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #e6f0ff;
  color: #244a77;
  font-size: 0.85rem;
  font-weight: 600;
}

.list-item.more {
  background: #edf2f7;
  color: #4a5568;
}

/* Responsive Design */
@media (max-width: 768px) {
  .metadata-boxes {
    gap: 1rem;
  }
  
  .metadata-box {
    min-width: 150px;
  }
  
  .box-value {
    font-size: 2.5rem;
  }
  
  .box-title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .aerospike-metadata-container {
    padding: 1rem;
  }
  
  .metadata-boxes {
    flex-direction: column;
    align-items: center;
  }
  
  .metadata-box {
    width: 100%;
    max-width: 100%;
  }
  
  .box-value {
    font-size: 3rem;
  }
}


/* Add to your existing Aerospike.css */

.auth-prompt-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  color: white;
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.auth-prompt-container h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.auth-prompt-container p {
  font-size: 16px;
  margin-bottom: 25px;
  opacity: 0.9;
}

.auth-prompt-container .auth-button {
  background: white;
  color: #667eea;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.auth-prompt-container .auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Connection status indicator */
.connection-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-left: 15px;
}

.connection-status.connected {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.connection-status.disconnected {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.connection-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.connection-status.connected .status-dot {
  background: #28a745;
}

.connection-status.disconnected .status-dot {
  background: #dc3545;
}

/* Step content improvements */
.step-content {
  min-height: 500px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.step-content h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 24px;
}

.step-content > p {
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

/* Navigation improvements */
.navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding: 20px 0;
}

.nav-button {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.back-button {
  background: #6c757d;
  color: white;
}

.back-button:hover:not(:disabled) {
  background: #5a6268;
  transform: translateX(-2px);
}

.next-button.enabled,
.finish-button.enabled {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.next-button.enabled:hover,
.finish-button.enabled:hover {
  transform: translateX(2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.next-button.disabled,
.finish-button.disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

/* Real-time migration container */
.real-time-migration-container {
  margin-top: 20px;
}

/* CDC Panel styles */
.cdc-controls {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.couchbase-to-aerospike-cdc-panel {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.couchbase-to-aerospike-cdc-panel h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 20px;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
  display: inline-block;
}

.panel-description {
  background: #e3f2fd;
  padding: 15px;
  border-radius: 6px;
  margin: 15px 0;
  color: #1565c0;
  line-height: 1.6;
}

.cdc-config-display {
  margin: 20px 0;
}

.config-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.config-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  gap: 20px;
}

.source-panel,
.target-panel {
  background: #f8f9fa;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.panel-header {
  background: #667eea;
  color: white;
  padding: 10px 15px;
  font-weight: 600;
}

.panel-content {
  padding: 15px;
}

.panel-content div {
  margin-bottom: 8px;
  color: #555;
}

.cdc-divider {
  margin: 25px 0;
  border: none;
  border-top: 2px dashed #dee2e6;
}

.cdc-control-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.aerospike-cdc-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.aerospike-cdc-button {
  min-width: 96px;
  height: 34px;
  padding: 6px 12px;
  border: 1px solid #c9d4ea;
  border-radius: 8px;
  background: #ffffff;
  color: #253657;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aerospike-cdc-start-button {
  background: #15803d;
  border-color: #166534;
  color: #ffffff;
}

.aerospike-cdc-start-button:hover:not(:disabled) {
  background: #166534;
  border-color: #14532d;
}

.aerospike-cdc-stop-button {
  background: #dc2626;
  border-color: #b91c1c;
  color: #ffffff;
}

.aerospike-cdc-stop-button:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #991b1b;
}

.aerospike-cdc-button:not(.aerospike-cdc-start-button):not(.aerospike-cdc-stop-button):hover:not(:disabled) {
  background: #f3f7ff;
  border-color: #9db2df;
}

.aerospike-cdc-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.reverse-cdc-gate-note {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed #b7c8e6;
  border-radius: 8px;
  color: #3e4f6a;
  background: #f7faff;
  font-size: 13px;
}

.reverse-cdc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-top: 12px;
}

.reverse-cdc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reverse-cdc-field label {
  font-size: 12px;
  font-weight: 600;
  color: #3b4b66;
}

.reverse-cdc-field input,
.reverse-cdc-field select {
  height: 34px;
  border: 1px solid #c9d4ea;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  color: #253657;
  background: #ffffff;
}

.reverse-cdc-field input[readonly] {
  background: #f7f9fc;
  color: #4b5b75;
}

.reverse-cdc-log-panel {
  margin-top: 14px;
  border: 1px solid #d5dfef;
  border-radius: 8px;
  background: #f9fbff;
  padding: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.reverse-cdc-log-title {
  font-size: 13px;
  font-weight: 700;
  color: #2e3f60;
  margin-bottom: 8px;
}

.reverse-cdc-log-empty {
  font-size: 12px;
  color: #7083a3;
}

.reverse-cdc-log-entry {
  display: grid;
  grid-template-columns: 90px 72px 1fr;
  grid-gap: 8px;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #e3eaf6;
  font-size: 12px;
  color: #2f405f;
}

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

.reverse-cdc-log-time {
  color: #627698;
}

.reverse-cdc-log-level {
  text-transform: uppercase;
  font-weight: 700;
  color: #365a96;
}

.reverse-cdc-log-message {
  color: #2f405f;
  word-break: break-word;
}

.cdc-monitoring-panel {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
}

.cdc-monitoring-panel h4 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
}

.cdc-error-message {
  text-align: center;
  padding: 40px;
  background: #fff3f3;
  border-radius: 8px;
  border: 1px solid #ffcdd2;
}

.error-title {
  color: #d32f2f;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.error-hint {
  color: #666;
  font-size: 14px;
  margin-top: 15px;
  font-style: italic;
}

/* Status badge */
.migration-status-indicator {
  margin: 20px 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
}

.status-badge.auto {
  background: #e3f2fd;
  color: #1976d2;
}

.status-badge.manual {
  background: #fff3e0;
  color: #f57c00;
}

.status-badge.completed {
  background: #d4edda;
  color: #28a745;
}

.status-badge.running {
  animation: pulse 2s infinite;
}

.status-icon {
  margin-right: 8px;
  font-size: 16px;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .step-indicators {
    flex-direction: column;
    gap: 10px;
  }
  
  .config-panels {
    grid-template-columns: 1fr;
  }
  
  .navigation {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-button {
    width: 100%;
  }
  
  .couchbase-to-aerospike-cdc-panel {
    padding: 15px;
  }

  .aerospike-cdc-actions {
    flex-wrap: wrap;
  }

  .reverse-cdc-form-grid {
    grid-template-columns: 1fr;
  }

  .reverse-cdc-log-entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* 
.wizard-container { max-width:1400px;margin:40px auto;padding:20px;border-radius:10px;background:#fff;box-shadow:0 0 15px rgba(0,0,0,0.2);}
h1{text-align:center;margin-bottom:20px;}
.progress-bar{height:8px;background:#ddd;border-radius:4px;margin-bottom:20px;}
.progress-bar-fill{height:100%;background:#3498db;border-radius:4px;transition:width 0.5s;}
.step-indicators{display:flex;justify-content:space-between;margin-bottom:20px;}
.step-indicator{text-align:center;flex:1;position:relative;}
.step-circle{width:40px;height:40px;border-radius:50%;line-height:40px;margin:0 auto 5px;font-weight:bold;color:#fff;background:#ccc;}
.step-circle.active{background:#3498db;}
.step-circle.completed{background:#2ecc71;}
.step-title{font-size:12px;}
.step-status{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:10px;color:#666;}
.step-content{padding:20px;border:1px solid #ddd;border-radius:8px;background:#f9f9f9;margin-bottom:20px;}
.form input,.form textarea{width:100%;padding:8px;margin:5px 0;border-radius:4px;border:1px solid #ccc;}
.form textarea{resize:vertical;}
.navigation{display:flex;justify-content:space-between;}
.navigation button{padding:8px 16px;border:none;border-radius:4px;background:#3498db;color:#fff;cursor:pointer;}
.navigation button:disabled{background:#ccc;cursor:not-allowed;}
.progress-simulation{width:100%;height:10px;background:#ddd;border-radius:5px;margin-top:10px;}
.progress-simulation-fill{height:100%;background:#2ecc71;border-radius:5px;transition:width 0.5s;}
.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 8px;
}
  */
.hive-header-blue {
  color: #1976d2;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.analysis-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.details-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2rem;
}

.details-header h2 {
  margin: 0;
  color: #1f2937;
  font-size: 2rem;
  font-weight: 600;
}

/* Header - Centered with maroon color */
.analysis-heading {
  text-align: center;
  color: #790022; /* Maroon color */
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Summary Section - Horizontal Row */
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1.5rem;
}

/* Cards with black outline */
.summary-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  flex: 1 1;
  min-width: 200px;
  border: 2px solid #000000; /* Black outline */
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Black shadow on hover */
}

/* Card headings with black color and maroon underline */
.summary-card h3 {
  color: #000000; /* Black color */
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: underline;
  -webkit-text-decoration-color: #800000;
          text-decoration-color: #800000; /* Maroon underline */
  text-underline-offset: 4px;
}

.summary-card p {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 300;
  margin: 0;
}

/* Data Size Section */
.data-size-container {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
  border: 2px solid #000000; /* Black outline */
}

.data-size-heading {
  color: #000000; /* Black color */
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  -webkit-text-decoration-color: #800000;
          text-decoration-color: #800000; /* Maroon underline */
  text-underline-offset: 4px;
}

/* Buttons */
.navigation-buttons {
  text-align: center;
  margin-top: 2rem;
}

.proceed-button {
  background: #800000; /* Maroon color */
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.proceed-button:hover {
  background: #600000; /* Darker maroon */
}

/* Loading and Error States */
.loading-container,
.error-container {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: #7f8c8d;
}

.error-container {
  color: #3ce759;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .details-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-row {
    flex-direction: column;
  }
  
  .analysis-heading {
    font-size: 2rem;
  }
}

.migration-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}
 
.migration-header {
  text-align: center;
  margin-bottom: 2rem;
}
 
.migration-header h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}
 
.migration-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}
 
/* Database Panels */

.database-panels {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}
 
.database-panel {
  flex: 1 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}
 
/* BLUE PANEL FOR SOURCE: HIVE */
.mongo-panel {
  border-top: 4px solid #3498db !important; /* Blue color */
}
 
/* GREEN PANEL FOR TARGET: COUCHBASE */
.couchbase-panel {
  border-top: 4px solid #2ecc71 !important; /* Green color */
}

/* Force top border colors for the two panels */
.database-panels .database-panel.mongo-panel {
  border-top: 4px solid #3498db !important;  /* Blue for Source: Hive */
}

.database-panels .database-panel.couchbase-panel {
  border-top: 4px solid #2ecc71 !important;  /* Green for Target: Couchbase */
}

 
.panel-header h2 {
  font-size: 1.5rem;
  margin-top: 0;
  color: #2c3e50;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}
 
/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}
 
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
}
 
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.3s;
}
 
select:focus {
  outline: none;
  border-color: #3498db;
}
 
.search-box {
  margin-bottom: 0.5rem;
}
 
.search-box input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
 
.collections-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 0.5rem;
}
 
.collection-item {
  padding: 0.5rem;
  border-bottom: 1px solid #f5f5f5;
}
 
.collection-item:last-child {
  border-bottom: none;
}
 
.collection-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
}
 
.collection-item input {
  margin-right: 0.75rem;
}
 
.selection-hint {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 0.5rem;
  font-style: italic;
}
 
/* Migration Controls */
.migration-controls {
  text-align: center;
  margin-bottom: 2rem;
}
 
.error-message {
  color: #e74c3c;
  background-color: #fdecea;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: left;
}
 
.migrate-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  margin-bottom: 1rem;
}
 
.migrate-button:hover {
  background-color: #2980b9;
}
 
.migrate-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}
 
.function-button {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  margin-bottom: 1rem;
}
 
.function-button:hover {
  background-color: #27ae60;
}
 
.function-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}
 
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}
 
@keyframes spin {
  to { transform: rotate(360deg); }
}
 
/* Migration Log */
.migration-log {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}
 
.migration-log h3 {
  margin-top: 0;
  color: #2c3e50;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}
 
.log-content {
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}
 
.log-entry {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
}
 
.log-entry:last-child {
  border-bottom: none;
}
 
.success-icon {
  color: #2ecc71;
  margin-right: 0.5rem;
  font-weight: bold;
}
 
.error-icon {
  color: #e74c3c;
  margin-right: 0.5rem;
  font-weight: bold;
}
 
.info-icon {
  color: #3498db;
  margin-right: 0.5rem;
  font-weight: bold;
}
 
/* Button container for consistent alignment */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
 
/* Button Row Styles - ADDED FOR SIDE-BY-SIDE BUTTONS */
.button-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
}
 
/* Ensure buttons maintain their existing styles but are properly spaced */
.button-row .migrate-button,
.button-row .function-button {
  margin: 0; /* Remove individual margins since gap handles spacing */
  flex-shrink: 0; /* Prevent buttons from shrinking */
}
 
/* Responsive Design */
@media (max-width: 768px) {
  .database-panels {
    flex-direction: column;
  }
 
  .migration-header h1 {
    font-size: 1.5rem;
  }
 
  .panel-header h2 {
    font-size: 1.2rem;
  }
 
  .migrate-button,
  .function-button {
    min-width: 180px;
    width: 100%;
    max-width: 250px;
  }
 
  /* Responsive adjustments for button row */
  .button-row {
    flex-direction: column;
    gap: 15px;
  }
 
  .button-row .migrate-button,
  .button-row .function-button {
    width: 100%;
    max-width: 250px;
  }
}
 
@media (max-width: 480px) {
  .button-row {
    gap: 12px;
  }
 
  .button-row .migrate-button,
  .button-row .function-button {
    min-width: 180px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
 
.progress-bar-bg {
  width: 100%;
  height: 20px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}
 
.progress-bar-fg {
  height: 100%;
  background-color: #3498db; /* You can change this color */
  width: 0%;
  transition: width 0.4s ease-in-out;
}
/* For WebSocket progress */
.websocket-progress {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
 
.progress-bar-bg {
  background: #e0e0e0;
  border-radius: 10px;
  height: 20px;
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
}
 
.progress-bar-fg {
  background: linear-gradient(to right, #4caf50, #8bc34a);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
}
 
.progress-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
}
 
.stat-card {
  flex: 1 1;
  min-width: 200px;
  margin: 10px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
 
.stat-card h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}
 
.stat-card p {
  font-size: 18px;
  font-weight: bold;
  color: #000000;;
}

/* REMOVED CONFLICTING STYLES */
/* Remove these conflicting styles that were overriding the blue color */
/*
.mongo-panel {
    border-top-color: #28a745;
}

.database-panel mongo-panel {
  border-top: 4px solid #3498db;
}
*/

/* Add these styles to your Collection1.css file */

/* Header with refresh button */
.header-with-refresh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Refresh icon */
.refresh-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.refresh-icon:hover {
  background-color: #f5f5f5;
  transform: rotate(90deg);
}

.refresh-icon:active {
  transform: rotate(180deg);
}

/* Specific colors for each panel */
.mongo-panel .refresh-icon:hover {
  background-color: #ebf5fb;
  color: #3498db; /* Blue for Hive */
}

.couchbase-panel .refresh-icon:hover {
  background-color: #eafaf1;
  color: #2ecc71; /* Green for Couchbase */
}

/* Ensure panel header layout is proper */
.panel-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .header-with-refresh {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .refresh-icon {
    align-self: flex-end;
  }
}

/* Bucket Memory (MB) - make input bigger + nicer label */
.bucket-memory-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #2c3e50;
  font-size: 1.05rem;
}

.bucket-memory-input {
  width: 95%;
  height: 20px;              /* increase height */
  padding: 10px 12px;        /* better spacing */
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;           /* readable */
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bucket-memory-input:focus {
  border-color: #2ecc71;     /* matches couchbase panel green */
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.bucket-memory-hint {
  display: block;
  margin-top: 6px;
  color: #7f8c8d;
  font-size: 0.9rem;
}


.function-transfer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
 
.database-panels-container {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}
 
.database-panel {
  flex: 1 1;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-top: 4px solid transparent; /* panel accent */
}
 
.panel-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}
 
.panel-header h3 {
  margin: 0;
  color: #495057;
}
 
/* Requested colors: Hive = BLUE, Couchbase = GREEN */
.hive-panel { border-top-color: #2196F3; }
.hive-panel .panel-header { color: #2196F3; }
 
.couchbase-panel { border-top-color: #28a745; }
.couchbase-panel .panel-header { color: #28a745; }
 
.form-group {
  margin-bottom: 15px;
}
 
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #495057;
}
 
.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: white;
}
 
.functions-section {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}
 
.functions-list-container {
  flex: 1 1;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
 
.functions-list-container h3 {
  margin-top: 0;
  color: #495057;
}
 
.functions-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 10px;
  background: white;
}
 
.no-functions {
  padding: 10px;
  color: #6c757d;
  text-align: center;
}
 
.select-all-functions {
  padding: 8px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}
 
.select-all-functions label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}
 
.function-item {
  padding: 8px 0;
}
 
.function-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
 
.transfer-actions {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
 
.single-transfer {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
 
.single-transfer label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #495057;
}
 
.single-transfer select {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 15px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}
 
.transfer-button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-weight: 500;
}
 
.transfer-button.primary {
  background-color: #FF6B35;
}
.transfer-button.primary:hover {
  background-color: #e55a2b;
}
 
.transfer-button.secondary {
  background-color: #2196F3;
}
.transfer-button.secondary:hover {
  background-color: #0b7dda;
}
 
.transfer-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}
 
.status-messages {
  margin-top: 20px;
}
 
.status-message {
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 10px;
}
 
.status-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
 
.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
 
.status-message.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}
 
label {
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
  white-space: nowrap;
}
 
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #495057;
}
 
.function-info {
  font-size: 12px;
  color: #6c757d;
  margin-left: 24px;
  font-style: italic;
}
 
.function-item.skipped {
  opacity: 0.6;
}
 
.function-item.skipped label {
  color: #6c757d;
}
 
/* --- Force top row colors (Source: Hive = BLUE, Target: Couchbase = GREEN) ---
.database-panels-container:first-of-type .database-panel:nth-of-type(1) {
  border-top-color: #2196F3 !important;
} */
/* .database-panels-container:first-of-type .database-panel:nth-of-type(1) .panel-header,
.database-panels-container:first-of-type .database-panel:nth-of-type(1) .panel-header h3 {
  color: #2196F3 !important;
}
 
.database-panels-container:first-of-type .database-panel:nth-of-type(2) {
  border-top-color: #28a745 !important;
}
.database-panels-container:first-of-type .database-panel:nth-of-type(2) .panel-header,
.database-panels-container:first-of-type .database-panel:nth-of-type(2) .panel-header h3 {
  color: #28a745 !important;
} */
 
.function-progress-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  
}
 
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
 
.progress-header h3 {
  margin: 0;
  color: #495057;
}
 
.connection-status {
  font-size: 14px;
}
 
.connection-status .connected { color: #28a745; }
.connection-status .disconnected { color: #6c757d; }
 
.progress-bar-wrapper {
  margin: 15px 0;
}
 
.progress-bar-background {
  width: 100%;
  height: 20px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
 
.progress-bar-foreground {
  height: 100%;
  background: #28a745;      /* SOLID GREEN */
  border-radius: 10px;
  transition: width 0.3s ease;
}
 
.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
 
.progress-percentage {
  font-weight: 600;
  color: #495057;
}
 
.progress-details {
  color: #6c757d;
  font-size: 14px;
}
 
.current-operation {
  padding: 8px 12px;
  background: #e7f3ff;
  border-radius: 4px;
  margin: 10px 0;
  font-size: 14px;
  color: #495057;
}
 
.completion-message {
  padding: 10px;
  background: #d4edda;
  color: #155724;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  margin-top: 10px;
}
 

.wizard-container { max-width:1400px;margin:40px auto;padding:20px;border-radius:10px;background:#fff;box-shadow:0 0 15px rgba(0,0,0,0.2);}
h1{text-align:center;margin-bottom:20px;}
.progress-bar{height:8px;background:#ddd;border-radius:4px;margin-bottom:20px;}
.progress-bar-fill{height:100%;background:#3498db;border-radius:4px;transition:width 0.5s;}
.step-indicators{display:flex;justify-content:space-between;margin-bottom:20px;}
.step-indicator{text-align:center;flex:1 1;position:relative;}
.step-circle{width:40px;height:40px;border-radius:50%;line-height:40px;margin:0 auto 5px;font-weight:bold;color:#fff;background:#ccc;}
.step-circle.active{background:#3498db;}
.step-circle.completed{background:#2ecc71;}
.step-title{font-size:12px;}
.step-status{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:10px;color:#666;}
.step-content{padding:20px;border:1px solid #ddd;border-radius:8px;background:#f9f9f9;margin-bottom:20px;}
.form input,.form textarea{width:100%;padding:8px;margin:5px 0;border-radius:4px;border:1px solid #ccc;}
.form textarea{resize:vertical;}
.navigation{display:flex;justify-content:space-between;}
.navigation button{padding:8px 16px;border:none;border-radius:4px;background:#3498db;color:#fff;cursor:pointer;}
.navigation button:disabled{background:#ccc;cursor:not-allowed;}
.progress-simulation{width:100%;height:10px;background:#ddd;border-radius:5px;margin-top:10px;}
.progress-simulation-fill{height:100%;background:#2ecc71;border-radius:5px;transition:width 0.5s;}
.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 8px;
}
.migration-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}
 
.migration-header {
  text-align: center;
  margin-bottom: 2rem;
}
 
.migration-header h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}
 
.migration-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}
 
/* Database Panels */

.database-panels {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}
 
.database-panel {
  flex: 1 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}
 
/* BLUE PANEL FOR SOURCE: HIVE */
.mongo-panel {
  border-top: 4px solid #3498db !important; /* Blue color */
}
 
/* GREEN PANEL FOR TARGET: COUCHBASE */
.couchbase-panel {
  border-top: 4px solid #2ecc71 !important; /* Green color */
}

/* Force top border colors for the two panels */
.database-panels .database-panel.mongo-panel {
  border-top: 4px solid #3498db !important;  /* Blue for Source: Hive */
}

.database-panels .database-panel.couchbase-panel {
  border-top: 4px solid #2ecc71 !important;  /* Green for Target: Couchbase */
}

 
.panel-header h2 {
  font-size: 1.5rem;
  margin-top: 0;
  color: #2c3e50;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}
 
/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}
 
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
}
 
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.3s;
}
 
select:focus {
  outline: none;
  border-color: #3498db;
}
 
.search-box {
  margin-bottom: 0.5rem;
}
 
.search-box input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
 
.collections-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 0.5rem;
}
 
.collection-item {
  padding: 0.5rem;
  border-bottom: 1px solid #f5f5f5;
}
 
.collection-item:last-child {
  border-bottom: none;
}
 
.collection-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
}
 
.collection-item input {
  margin-right: 0.75rem;
}
 
.selection-hint {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 0.5rem;
  font-style: italic;
}
 
/* Migration Controls */
.migration-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}
 
.error-message {
  color: #e74c3c;
  background-color: #fdecea;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: left;
}
 
.migrate-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  margin-bottom: 1rem;
}
 
.migrate-button:hover {
  background-color: #2980b9;
}
 
.migrate-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}
 
.function-button {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  margin-bottom: 1rem;
}
 
.function-button:hover {
  background-color: #27ae60;
}
 
.function-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}
 
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}
 
@keyframes spin {
  to { transform: rotate(360deg); }
}
 
/* Migration Log */
.migration-log {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}
 
.migration-log h3 {
  margin-top: 0;
  color: #2c3e50;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}
 
.log-content {
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}
 
.log-entry {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
}
 
.log-entry:last-child {
  border-bottom: none;
}
 
.success-icon {
  color: #2ecc71;
  margin-right: 0.5rem;
  font-weight: bold;
}
 
.error-icon {
  color: #e74c3c;
  margin-right: 0.5rem;
  font-weight: bold;
}
 
.info-icon {
  color: #3498db;
  margin-right: 0.5rem;
  font-weight: bold;
}
 
/* Button container for consistent alignment */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
 
/* Button Row Styles - ADDED FOR SIDE-BY-SIDE BUTTONS */
.button-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
}
 
/* Ensure buttons maintain their existing styles but are properly spaced */
.button-row .migrate-button,
.button-row .function-button {
  margin: 0; /* Remove individual margins since gap handles spacing */
  flex-shrink: 0; /* Prevent buttons from shrinking */
}
 
/* Responsive Design */
@media (max-width: 768px) {
  .database-panels {
    flex-direction: column;
  }
 
  .migration-header h1 {
    font-size: 1.5rem;
  }
 
  .panel-header h2 {
    font-size: 1.2rem;
  }
 
  .migrate-button,
  .function-button {
    min-width: 180px;
    width: 100%;
    max-width: 250px;
  }
 
  /* Responsive adjustments for button row */
  .button-row {
    flex-direction: column;
    gap: 15px;
  }
 
  .button-row .migrate-button,
  .button-row .function-button {
    width: 100%;
    max-width: 250px;
  }
}
 
@media (max-width: 480px) {
  .button-row {
    gap: 12px;
  }
 
  .button-row .migrate-button,
  .button-row .function-button {
    min-width: 180px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
 
.progress-bar-bg {
  width: 100%;
  height: 20px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}
 
.progress-bar-fg {
  height: 100%;
  background-color: #3498db; /* You can change this color */
  width: 0%;
  transition: width 0.4s ease-in-out;
}
/* For WebSocket progress */
.websocket-progress {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
 
.progress-bar-bg {
  background: #e0e0e0;
  border-radius: 10px;
  height: 20px;
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
}
 
.progress-bar-fg {
  background: linear-gradient(to right, #4caf50, #8bc34a);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
}
 
.progress-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
}
 
.stat-card {
  flex: 1 1;
  min-width: 200px;
  margin: 10px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
 
.stat-card h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}
 
.stat-card p {
  font-size: 18px;
  font-weight: bold;
  color: #000000;;
}

/* REMOVED CONFLICTING STYLES */
/* Remove these conflicting styles that were overriding the blue color */
/*
.mongo-panel {
    border-top-color: #28a745;
}

.database-panel mongo-panel {
  border-top: 4px solid #3498db;
}
*/

/* Add these styles to your Collection1.css file */

/* Header with refresh button */
.header-with-refresh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Refresh icon */
.refresh-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.refresh-icon:hover {
  background-color: #f5f5f5;
  transform: rotate(90deg);
}

.refresh-icon:active {
  transform: rotate(180deg);
}

/* Specific colors for each panel */
.mongo-panel .refresh-icon:hover {
  background-color: #ebf5fb;
  color: #3498db; /* Blue for Hive */
}

.couchbase-panel .refresh-icon:hover {
  background-color: #eafaf1;
  color: #2ecc71; /* Green for Couchbase */
}

/* Ensure panel header layout is proper */
.panel-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .header-with-refresh {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .refresh-icon {
    align-self: flex-end;
  }
}

/* Bucket Memory (MB) - make input bigger + nicer label */
.bucket-memory-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #2c3e50;
  font-size: 1.05rem;
}

.bucket-memory-input {
  width: 95%;
  height: 20px;              /* increase height */
  padding: 10px 12px;        /* better spacing */
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;           /* readable */
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bucket-memory-input:focus {
  border-color: #2ecc71;     /* matches couchbase panel green */
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.bucket-memory-hint {
  display: block;
  margin-top: 6px;
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* Root + typography */
:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --muted: #7b7f87;
  --accent: #333;
  --gap: 18px;
  --radius: 12px;

  --blue: #2196f3;
  --green: #2196f3;

  --orange: #ff9800;
  --purple: #9c27b0;
  --teal: #00bcd4;
  --danger: #f44336;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; background: #f4f5f7; background: var(--bg); color: #333; color: var(--accent); }

/* Root layout */
.dashboard-root {
  padding: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.dashboard-header h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.2px;
}
.header-sub { color: #7b7f87; color: var(--muted); font-size: 13px; }

/* Main grid */
.dashboard-main {
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-gap: 18px;
  gap: 18px;
}

/* Top cards row */
.top-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  grid-gap: 18px;
  grid-gap: var(--gap);
  gap: var(--gap);
}

/* Generic card */
.card {
  background: #ffffff;
  background: var(--card);
  border-radius: 12px;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(15, 20, 25, 0.06);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
}

/* Card head */
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.card-title { font-weight: 700; font-size: 15px; }
.card-sub { color: #7b7f87; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* badges */
.card-badge {
  background: rgba(0,0,0,0.06);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  min-width: 54px;
  text-align: center;
  font-size: 14px;
}
.card-badge.green { background: rgba(76, 175, 80, 0.12); color: #2196f3; color: var(--green); }

/* card body */
.card-body { padding: 16px 18px; }

/* Source small list */
.small-list ul {
  list-style: none;
  padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  grid-gap: 8px;
  gap: 8px;
}
.small-list li {
  font-size: 13px;
  padding: 6px 8px;
  background: #fbfcfd;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.03);
}

/* target realtime count */
.realtime-count {
  display:flex; flex-direction:column; align-items:center; gap:6px; margin-bottom:12px;
}
.realtime-count .count-number { font-size: 32px; font-weight: 800; }
.realtime-count .count-label { color: #7b7f87; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; }

/* kv row small */
.kv-row { display:flex; gap:12px; margin-top:12px; }
.kv { flex:1 1; display:flex; justify-content:space-between; align-items:center; padding:10px; border-radius:8px; background:#fafafa; border:1px solid rgba(0,0,0,0.03); }
.kv-key { color:#7b7f87; color:var(--muted); font-weight:600; font-size:12px; }
.kv-value { font-weight:700; }

/* mini progress */
.mini-progress { margin-top:12px; }
.mini-progress-label { font-size:12px; color:#7b7f87; color:var(--muted); margin-bottom:8px; }
.mini-progress-bar { background:#eee; height:10px; border-radius:8px; overflow:hidden; }
.mini-progress-fill { height:100%; background: linear-gradient(90deg, #2196f3, #5aa9f8); background: linear-gradient(90deg, var(--blue), #5aa9f8); width:0; transition: width 400ms ease; }
.mini-progress-meta { display:flex; justify-content:space-between; margin-top:8px; color:#7b7f87; color:var(--muted); font-size:12px; }

/* Stats row */
.stats-row { margin-top: 0; }
.statistics-grid { display:grid; grid-template-columns: repeat(5, 1fr); grid-gap: 14px; gap: 14px; }.stat-box { 
  background: #ffffff; 
  background: var(--card);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 14px rgba(12,17,22,0.04);
  border-left: none;
}
.stat-number { font-size:20px; font-weight:800; color:#333; color:var(--accent); margin-bottom:6px; }
.stat-label { font-size:12px; color:#7b7f87; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:0.6px; }

/* color accents for stat boxes (left border) */
.stat-box.stat-total { 
  border-top: 6px solid #2196f3; 
  border-top: 6px solid var(--blue);
  border-left: none;
}

.stat-box.stat-migrated {
  border-top: 6px solid #9c27b0;
  border-top: 6px solid var(--purple);
  border-left: none;
}

.stat-box.stat-remaining { 
  border-top: 6px solid #ff9800; 
  border-top: 6px solid var(--orange);
  border-left: none;
}

.stat-box.stat-error { 
  border-top: 6px solid #f44336; 
  border-top: 6px solid var(--danger);
  border-left: none;
}

.stat-box.stat-remaining { border-top: 6px solid #ff9800; border-top: 6px solid var(--orange); }
.stat-box.stat-error { border-top: 6px solid #f44336; border-top: 6px solid var(--danger); }

/* Lower row layout */
.lower-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 18px;
  grid-gap: 18px;
  grid-gap: var(--gap);
  gap: var(--gap);
}

/* migration progress card */
.migration-progress-card .progress-items { display:flex; flex-direction:column; gap:12px; }
.progress-item {
  background:#fff; border-radius:10px; padding:12px; border:1px solid rgba(0,0,0,0.03);
  display:flex; flex-direction:column; gap:8px;
}
.progress-item-header { display:flex; justify-content:space-between; align-items:center; }
.progress-item-title { font-weight:700; }
.progress-percentage { font-weight:800; color:#333; color:var(--accent); }
.progress-bar-container { background:#eee; height:10px; border-radius:8px; overflow:hidden; }
.progress-bar-fill { height:100%; width:0; background: linear-gradient(90deg, #2196f3, #5aa9f8); background: linear-gradient(90deg, var(--blue), #5aa9f8); transition: width 400ms ease; }
.progress-item-stats { display:flex; justify-content:space-between; color:#7b7f87; color:var(--muted); font-size:13px; }

/* action controls */
.action-controls { display:flex; gap:10px; margin-top:12px; }
.btn { padding:8px 12px; border-radius:8px; border:1px solid rgba(0,0,0,0.06); background:transparent; cursor:pointer; font-weight:700; }
.btn.primary { background:#2196f3; background:var(--blue); color:#fff; border:none; }
.btn.danger { background:#f44336; background:var(--danger); color:#fff; border:none; }

/* activity log card */
.activity-log-card .activity-log-container {
  display:flex; flex-direction:column; gap:8px; max-height:420px; overflow:auto; padding:10px;
}
.log-entry {
  background:#fff; border-radius:8px; padding:10px; display:flex; gap:12px; border:1px solid rgba(0,0,0,0.03);
  align-items:flex-start;
}
.log-timestamp { min-width:72px; color:#7b7f87; color:var(--muted); font-weight:700; font-size:12px; }
.log-message { flex:1 1; }
.log-tag { font-size:12px; font-weight:800; color:#7b7f87; color:var(--muted); margin-bottom:6px; }
.log-text { color:#333; color:var(--accent); font-size:13px; white-space:pre-wrap; word-break:break-word; }

/* colors for log-levels */
.log-entry.log-info { border-left:4px solid #2196f3; border-left:4px solid var(--blue); background: linear-gradient(90deg, rgba(33,150,243,0.03), #fff); }
.log-entry.log-success { border-left:4px solid #2196f3; border-left:4px solid var(--green); background: linear-gradient(90deg, rgba(76,175,80,0.03), #fff); }
.log-entry.log-warning { border-left:4px solid #ff9800; border-left:4px solid var(--orange); background: linear-gradient(90deg, rgba(255,152,0,0.03), #fff); }
.log-entry.log-error { border-left:4px solid #f44336; border-left:4px solid var(--danger); background: linear-gradient(90deg, rgba(244,67,54,0.02), #fff); }

/* connection indicator */
.connection-indicator { font-weight:800; padding:8px 10px; border-radius:999px; font-size:12px; }
.connection-indicator.live { background: rgba(76,175,80,0.12); color:#2196f3; color:var(--green); }
.connection-indicator.offline { background: rgba(244,67,54,0.06); color:#f44336; color:var(--danger); }

/* small helpers */
.card-sub { display:block; margin-top:6px; color:#7b7f87; color:var(--muted); font-weight:600; font-size:12px; }

/* responsive */
@media (max-width: 1100px) {
  .statistics-grid { grid-template-columns: repeat(3, 1fr); }
  .statistics-grid .stat-box { padding: 14px; }
  .top-cards { grid-template-columns: 1fr; }
  .lower-row { grid-template-columns: 1fr; }
  .statistics-grid { grid-auto-rows: minmax(70px, auto); }
}

@media (max-width: 720px) {
  .statistics-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size:18px; }
  .dashboard-root { padding: 14px; }
}

.stats-progress-section {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.stats-panel {
  flex: 1 1;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.progress-panel {
  flex: 1 1;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  background: #fafafa;
}

.progress-placeholder {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
}





/* ===============================
   CDC ACTION BUTTONS (Connect-style)
   =============================== */

.cdc-controls {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

/* Base button */
.cdc-button {
  min-width: 180px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;

  border-radius: 8px;
  border: none;

  color: #fff;
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* ---------------- READY (BLUE) ---------------- */
.cdc-button.ready {
  background: #2196f3;
  background: var(--blue);
  box-shadow: 0 6px 14px rgba(33, 150, 243, 0.25);
}

.cdc-button.ready:hover:not(:disabled) {
  background: #1e88e5;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(33, 150, 243, 0.35);
}

/* ---------------- LOADING (GRAY) ---------------- */
.cdc-button.loading {
  background: #9e9e9e;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------------- SUCCESS (GREEN) ---------------- */
.cdc-button.success {
  background: #2196f3;
  background: var(--blue);
  cursor: not-allowed;
  box-shadow: 0 6px 14px rgba(76, 175, 80, 0.25);
}

/* ---------------- DISABLED FALLBACK ---------------- */
.cdc-button:disabled {
  opacity: 0.92;
  transform: none;
}

/* Optional: subtle text polish */
.cdc-button.success,
.cdc-button.loading {
  letter-spacing: 0.2px;
}

.stat-box.stat-error {
  border-left: none;
  border-top: 6px solid #f44336;
  border-top: 6px solid var(--danger);
}









/* Add to your CSS file */
.stat-box.stat-inserts {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stat-box.stat-updates {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.stat-box.stat-deletes {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
}





.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* MongoConnection.css */
.mongo-connection-container {
  border: 1px solid #ddd;
  padding: 25px;
  border-radius: 8px;
  background-color: #f8f9fa;
  margin-bottom: 25px;
  max-width: 1400px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.mongo-connection-title {
  margin-top: 0;
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #495057;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
  opacity: 0.7;
}

.error-message {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
}

.error-message::before {
  content: "⚠ ";
  margin-right: 4px;
}

.button-container {
  text-align: center;
  margin: 25px 0 20px 0;
}

.button-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.connect-button {
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  width: auto;
  min-width: 200px;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 46px;
}

.connect-button:hover:not(:disabled) {
  background-color: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.connect-button:active:not(:disabled) {
  transform: translateY(0);
}

.connect-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Light grey color while connecting */
.connect-button.connecting:disabled {
  background-color: #a0a0a0;
  color: #f8f9fa;
}

/* Light grey color after connected */
.connect-button.connected:disabled {
  background-color: #a0a0a0;
  color: #f8f9fa;
  cursor: not-allowed;
}

.connect-button.connecting::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.alert {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.alert-error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-success {
  color: green;
}

/* Disconnect Button Styles */
.disconnect-button {
  background-color: #e03131;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  min-width: 160px;
  width: auto;
  height: 46px; /* Same height as connect button */
}

.disconnect-button:hover {
  background-color: #c92a2a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.disconnect-button:active {
  transform: translateY(0);
}

/* Auth0 Authentication Styles */
.auth-prompt {
  text-align: center;
  padding: 40px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
  margin-bottom: 20px;
}

.auth-title {
  color: #495057;
  margin-bottom: 10px;
  font-size: 18px;
}

.auth-message {
  color: #6c757d;
  margin-bottom: 20px;
  font-size: 14px;
}

.auth-button {
  background-color: #eb5424;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-button:hover {
  background-color: #d1431c;
}

/* Auth Status Indicator */
.auth-status {
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 6px;
  background-color: #e7f5ff;
  border-left: 4px solid #4dabf7;
}

.auth-indicator {
  font-size: 14px;
  font-weight: 600;
  color: #1864ab;
}

.auth-indicator.authenticated::before {
  content: " ";
  color: #2b8a3e;
}

/* Loading State */
.mongo-loading {
  text-align: center;
  padding: 40px;
  color: #495057;
}

/* Disabled State for Non-Authenticated Users */
.connect-button.disabled {
  background-color: #e9ecef;
  color: #adb5bd;
  cursor: not-allowed;
  border: 1px solid #dee2e6;
}

.connect-button.disabled:hover {
  background-color: #e9ecef;
  transform: none;
}

/* Form Hint */
.form-hint {
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
  margin-bottom: 8px;
  font-style: italic;
}

/* Loading animation for connecting state */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.connect-button.connecting {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Media Queries for Responsive Design */

/* For tablets and smaller screens */
@media (max-width: 768px) {
  .mongo-connection-container {
    padding: 20px;
    margin: 15px;
  }
  
  .button-group {
    flex-direction: column;
    width: 100%;
  }
  
  .connect-button,
  .disconnect-button {
    width: 100%;
    min-width: auto;
    margin-left: 0;
  }
  
  .disconnect-button {
    margin-top: 10px;
  }
}

/* For mobile phones */
@media (max-width: 576px) {
  .mongo-connection-container {
    padding: 15px;
    margin: 10px;
  }
  
  .mongo-connection-title {
    font-size: 1.25rem;
  }
  
  .form-input {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
  
  .connect-button,
  .disconnect-button {
    padding: 10px 16px;
    font-size: 0.95rem;
    height: 42px;
  }
  
  .auth-prompt {
    padding: 30px 15px;
  }
  
  .auth-title {
    font-size: 16px;
  }
  
  .auth-message {
    font-size: 13px;
  }
}

/* For very small screens */
@media (max-width: 375px) {
  .mongo-connection-container {
    padding: 12px;
  }
  
  .connect-button,
  .disconnect-button {
    padding: 8px 12px;
    font-size: 0.9rem;
    height: 40px;
  }
  
  .form-label {
    font-size: 0.9rem;
  }
}

/* For large screens */
@media (min-width: 1200px) {
  .mongo-connection-container {
    max-width: 1200px;
    margin: 0 auto 30px;
  }
  
  .connect-button {
    min-width: 220px;
  }
  
  .disconnect-button {
    min-width: 180px;
  }
}

/* Print styles */
@media print {
  .mongo-connection-container {
    border: 1px solid #000;
    box-shadow: none;
  }
  
  .connect-button,
  .disconnect-button,
  .auth-button {
    display: none;
  }
}
/* Base styles */
.couchbase-connection-container {
  border: 1px solid #e1e8ed;
  padding: 25px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 1400px;
  margin: 20px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.couchbase-connection-title {
  margin-top: 0;
  margin-bottom: 20px;
  color: #2c3e50;
  font-weight: 600;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.couchbase-form-group {
  margin-bottom: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.couchbase-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #34495e;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.couchbase-form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dce1e6;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  background-color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.couchbase-form-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.couchbase-form-input:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.couchbase-form-input::placeholder {
  color: #a0a0a0;
  font-size: 13px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.couchbase-button-container {
  text-align: center;
  margin: 25px 0 20px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.couchbase-connect-button {
  background-color: #3498db;
  color: white;
  width: auto;
  min-width: 200px;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.couchbase-connect-button:hover:not(:disabled) {
  background-color: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.couchbase-connect-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none !important;
  box-shadow: none !important;
}

/* Light grey color while connecting */
.couchbase-connect-button.connecting:disabled {
  background-color: #a0a0a0;
  color: #f8f9fa;
}

/* Light grey color after connected */
.couchbase-connect-button.connected:disabled {
  background-color: #a0a0a0;
  color: #f8f9fa;
  cursor: not-allowed;
}

.couchbase-connect-button.connecting::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.couchbase-error-message {
  color: #e74c3c;
  margin-top: 15px;
  padding: 12px 15px;
  background-color: #fdeded;
  border-radius: 6px;
  font-size: 14px;
  border-left: 4px solid #e74c3c;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.couchbase-success-message {
  color: #27ae60;
  margin-top: 15px;
  padding: 12px 15px;
  background-color: #f0f9f0;
  border-radius: 6px;
  font-size: 14px;
  border-left: 4px solid #27ae60;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Auth0 Authentication Styles */
.couchbase-auth-prompt {
  text-align: center;
  padding: 40px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
  margin-bottom: 20px;
}

.couchbase-auth-title {
  color: #495057;
  margin-bottom: 10px;
  font-size: 18px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.couchbase-auth-message {
  color: #6c757d;
  margin-bottom: 20px;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.couchbase-auth-button {
  background-color: #eb5424;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.couchbase-auth-button:hover {
  background-color: #d1431c;
}

/* Auth Status Indicator */
.couchbase-auth-status {
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 6px;
  background-color: #e7f5ff;
  border-left: 4px solid #4dabf7;
}

.couchbase-auth-indicator {
  font-size: 14px;
  font-weight: 600;
  color: #1864ab;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.couchbase-auth-indicator.authenticated::before {
  content: "✓ ";
  color: #2b8a3e;
}

/* Loading State */
.couchbase-loading {
  text-align: center;
  padding: 40px;
  color: #495057;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Disconnect Button */
.couchbase-disconnect-button {
  background-color: #e03131;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-left: 12px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.couchbase-disconnect-button:hover {
  background-color: #c92a2a;
}

/* Disabled State for Non-Authenticated Users */
.couchbase-connect-button.disabled {
  background-color: #e9ecef;
  color: #adb5bd;
  cursor: not-allowed;
  border: 1px solid #dee2e6;
}

.couchbase-connect-button.disabled:hover {
  background-color: #e9ecef;
}

/* Loading animation for connecting state */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.couchbase-connect-button.connecting {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Media Queries */
/* Tablet devices (768px and below) */
@media (max-width: 768px) {
  .couchbase-connection-container {
    padding: 20px;
    margin: 15px;
    max-width: 95%;
  }
  
  .couchbase-connection-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .couchbase-form-group {
    margin-bottom: 15px;
  }
  
  .couchbase-form-input {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .couchbase-button-container {
    margin: 20px 0 15px 0;
  }
  
  .couchbase-connect-button,
  .couchbase-disconnect-button {
    padding: 10px 20px;
    font-size: 15px;
    min-width: 180px;
  }
}

/* Mobile devices (600px and below) */
@media (max-width: 600px) {
  .couchbase-connection-container {
    padding: 15px;
    margin: 10px;
    border-radius: 8px;
  }
  
  .couchbase-connection-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .couchbase-form-group {
    margin-bottom: 12px;
  }
  
  .couchbase-form-label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .couchbase-form-input {
    padding: 9px 10px;
    font-size: 12px;
  }
  
  .couchbase-button-container {
    margin: 15px 0 12px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .couchbase-connect-button,
  .couchbase-connect-button.connected {
    width: 100%;
    min-width: auto;
    margin: 0 !important;
  }
  
  .couchbase-disconnect-button {
    width: 100%;
    margin-left: 0;
    margin-top: 5px;
  }
  
  .couchbase-auth-prompt {
    padding: 30px 15px;
  }
  
  .couchbase-auth-title {
    font-size: 16px;
  }
  
  .couchbase-auth-message {
    font-size: 13px;
  }
  
  .couchbase-error-message,
  .couchbase-success-message {
    font-size: 13px;
    padding: 10px 12px;
    margin-top: 12px;
  }
}

/* Small mobile devices (400px and below) */
@media (max-width: 400px) {
  .couchbase-connection-container {
    padding: 12px;
    margin: 8px;
  }
  
  .couchbase-connection-title {
    font-size: 16px;
  }
  
  .couchbase-form-input {
    padding: 8px 9px;
  }
  
  .couchbase-connect-button,
  .couchbase-disconnect-button {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .couchbase-auth-prompt {
    padding: 25px 12px;
  }
}

/* Print styles */
@media print {
  .couchbase-connection-container {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  
  .couchbase-auth-button,
  .couchbase-connect-button,
  .couchbase-disconnect-button {
    display: none;
  }
  
  .couchbase-form-input:disabled {
    background-color: transparent;
    border: 1px solid #ddd;
  }
}
.analysis-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header - Centered with maroon color */
.analysis-heading {
  text-align: center;
  color: #790022; /* Maroon color */
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Summary Section - Horizontal Row */
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1.5rem;
}

/* Cards with black outline */
.summary-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  flex: 1 1;
  min-width: 200px;
  border: 2px solid #000000; /* Black outline */
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Black shadow on hover */
}

/* Card headings with black color and maroon underline */
.summary-card h3 {
  color: #000000; /* Black color */
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: underline;
  -webkit-text-decoration-color: #800000;
          text-decoration-color: #800000; /* Maroon underline */
  text-underline-offset: 4px;
}

.summary-card p {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 300;
  margin: 0;
}

/* Data Size Section */
.data-size-container {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
  border: 2px solid #000000; /* Black outline */
}

.data-size-heading {
  color: #000000; /* Black color */
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  -webkit-text-decoration-color: #800000;
          text-decoration-color: #800000; /* Maroon underline */
  text-underline-offset: 4px;
}

/* Buttons */
.navigation-buttons {
  text-align: center;
  margin-top: 2rem;
}

.proceed-button {
  background: #800000; /* Maroon color */
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.proceed-button:hover {
  background: #600000; /* Darker maroon */
}

/* Loading and Error States */
.loading-container,
.error-container {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: #7f8c8d;
}

.error-container {
  color: #e74c3c;
}

/* Auth0 Authentication Styles */
.auth-prompt {
  text-align: center;
  padding: 40px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
  margin-bottom: 20px;
}

.auth-title {
  color: #495057;
  margin-bottom: 10px;
  font-size: 18px;
}

.auth-message {
  color: #6c757d;
  margin-bottom: 20px;
  font-size: 14px;
}

.auth-button {
  background-color: #eb5424;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-button:hover {
  background-color: #d1431c;
}

/* Auth Status Indicator */
.auth-status {
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 6px;
  background-color: #e7f5ff;
  border-left: 4px solid #4dabf7;
  text-align: center;
}

.auth-indicator {
  font-size: 14px;
  font-weight: 600;
  color: #1864ab;
}

.auth-indicator.authenticated::before {
  content: " ";
  color: #2b8a3e;
}

/* Refreshing indicator */
.refreshing-indicator {
  text-align: center;
  padding: 10px;
  color: #3498db;
  font-style: italic;
  margin-bottom: 20px;
}

/* Clickable card effect */
.clickable-card {
  cursor: pointer;
}

.clickable-card:hover {
  background-color: #f8f9fa;
}

.click-hint {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 10px;
  font-style: italic;
}

/* Responsive adjustments - Media Queries */
@media (max-width: 992px) {
  .analysis-container {
    padding: 1.5rem;
  }
  
  .summary-card p {
    font-size: 2rem;
  }
  
  .data-size-heading {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .summary-row {
    flex-direction: column;
  }
  
  .analysis-heading {
    font-size: 2rem;
  }
  
  .summary-card {
    min-width: auto;
    margin-bottom: 1rem;
  }
  
  .summary-card p {
    font-size: 2.2rem;
  }
  
  .auth-prompt {
    padding: 30px 15px;
  }
}

@media (max-width: 576px) {
  .analysis-container {
    padding: 1rem;
  }
  
  .analysis-heading {
    font-size: 1.75rem;
  }
  
  .summary-card {
    padding: 1.5rem;
  }
  
  .summary-card h3 {
    font-size: 1.1rem;
  }
  
  .summary-card p {
    font-size: 1.8rem;
  }
  
  .data-size-container {
    padding: 1.5rem;
  }
  
  .auth-title {
    font-size: 16px;
  }
  
  .auth-button {
    padding: 8px 20px;
    font-size: 13px;
  }
  
  .refreshing-indicator {
    font-size: 0.9rem;
    padding: 8px;
  }
}

/* For very small screens */
@media (max-width: 375px) {
  .analysis-heading {
    font-size: 1.5rem;
  }
  
  .summary-card {
    padding: 1rem;
  }
  
  .summary-card h3 {
    font-size: 1rem;
  }
  
  .summary-card p {
    font-size: 1.5rem;
  }
  
  .data-size-heading {
    font-size: 1.3rem;
  }
}

/* For landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .analysis-container {
    padding: 1rem;
  }
  
  .summary-row {
    margin-bottom: 1.5rem;
  }
  
  .summary-card {
    padding: 1rem;
  }
}
/* ============================================
   BASE STYLES & LAYOUT
   ============================================ */

.migration-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

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

.migration-header h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.migration-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}

.refresh-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.auth-status {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Auth0 Authentication Styles */
.auth-prompt {
  text-align: center;
  padding: 40px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
  margin-bottom: 20px;
}

.auth-title {
  color: #495057;
  margin-bottom: 10px;
  font-size: 18px;
}

.auth-message {
  color: #6c757d;
  margin-bottom: 20px;
  font-size: 14px;
}

.auth-button {
  background-color: #eb5424;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-button:hover {
  background-color: #d1431c;
}

.auth-indicator {
  font-size: 14px;
  font-weight: 600;
  color: #1864ab;
  background-color: #e7f5ff;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 4px solid #4dabf7;
  margin-bottom: 10px;
}

.auth-indicator.authenticated::before {
  content: "✓ ";
  color: #2b8a3e;
}

/* Loading State */
.loading-container {
  text-align: center;
  padding: 40px;
  color: #495057;
}

/* ============================================
   DATABASE PANELS
   ============================================ */

.database-panels {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.database-panel {
  flex: 1 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.database-panel:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.mongo-panel {
  border-top: 4px solid #3498db;
}

.couchbase-panel {
  border-top: 4px solid #2ecc71;
}

.panel-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #eee;
}

.panel-header h2 {
  font-size: 1.5rem;
  margin: 0;
  color: #2c3e50;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
  font-size: 0.95rem;
}

select,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

select:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

select:disabled,
input:disabled {
  background-color: #ecf0f1;
  cursor: not-allowed;
  color: #95a5a6;
}

/* Search Box Styles */
.search-box {
  margin-bottom: 0.75rem;
}

.search-box input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

.search-box input:focus {
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.search-box input:disabled {
  background-color: #ecf0f1;
  cursor: not-allowed;
}

/* Collections List */
.collections-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 0.5rem;
  background-color: #fafafa;
}

.collections-list::-webkit-scrollbar {
  width: 6px;
}

.collections-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.collections-list::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}

.collections-list::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.collection-item {
  padding: 0.5rem;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s;
}

.collection-item:hover {
  background-color: #f0f0f0;
}

.collection-item:last-child {
  border-bottom: none;
}

.collection-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}

.collection-item input[type="checkbox"] {
  margin-right: 0.75rem;
  cursor: pointer;
  width: auto;
}

.collection-item span {
  color: #333;
  font-size: 0.95rem;
}

.selection-hint {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 0.5rem;
  font-style: italic;
}

.selected-count {
  font-size: 0.85rem;
  color: #7f8c8d;
  font-weight: normal;
  margin-left: 8px;
}

/* ============================================
   MIGRATION MODE SELECTOR
   ============================================ */

.migration-mode-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.mode-button {
  flex: 0 1 auto;
  padding: 12px 20px;
  border: 2px solid #ddd;
  background-color: #f5f5f5;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.mode-button:hover:not(:disabled) {
  border-color: #3498db;
  background-color: #e3f2fd;
  transform: translateY(-2px);
}

.mode-button.active {
  border-color: #3498db;
  background-color: #3498db;
  color: white;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.mode-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mode-button.active:disabled {
  background-color: #95a5a6;
  border-color: #95a5a6;
}

/* ============================================
   AUTO-PROVISIONING CONFIGURATION
   ============================================ */

.auto-provision-config {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
  border-radius: 6px;
  margin-top: 1rem;
  animation: slideDown 0.3s ease;
}

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

.auto-provision-config .form-group {
  margin-bottom: 1rem;
}

.auto-provision-config .form-group label {
  color: #2c3e50;
  font-weight: 600;
}

.auto-provision-config input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.auto-provision-config input:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
  color: #95a5a6;
}

.auto-provision-config small {
  display: block;
  margin-top: 0.35rem;
  color: #666;
  font-size: 0.8rem;
  font-style: italic;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* Auto-Provision Information Box */
.auto-provision-info {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background-color: #e8f4f8;
  border-radius: 6px;
  border: 1px solid #b6d4fe;
}

.auto-provision-info p {
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  color: #004085;
  font-size: 0.95rem;
}

.auto-provision-info ul {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.85rem;
  color: #004085;
  line-height: 1.6;
}

.auto-provision-info li {
  margin-bottom: 0.5rem;
}

.mapping-preview {
  background-color: white;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  border: 1px solid #dee2e6;
}

/* ============================================
   MIGRATION CONTROLS
   ============================================ */

.migration-controls {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.error-message {
  color: #e74c3c;
  background-color: #fdecea;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: left;
  border-left: 4px solid #e74c3c;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.success-message {
  color: #27ae60;
  background-color: #e8f8f5;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: left;
  border-left: 4px solid #27ae60;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.warning-message {
  color: #f39c12;
  background-color: #fef5e7;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: left;
  border-left: 4px solid #f39c12;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-message {
  color: #3498db;
  background-color: #ebf5fb;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: left;
  border-left: 4px solid #3498db;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.error-icon,
.success-icon,
.warning-icon,
.info-icon {
  font-size: 1.2rem;
}

.close-btn {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close-btn:hover {
  opacity: 1;
}

/* Progress Bar */
.migration-progress {
  margin: 1.5rem 0;
}

.migration-progress .progress-bar {
  height: 8px;
  background-color: #ecf0f1;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  transition: width 0.3s ease;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.progress-text .message {
  color: #2c3e50;
  font-style: italic;
}

/* ============================================
   BUTTONS
   ============================================ */

.button-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.migrate-button,
.function-button,
.function-button1 {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 200px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Migrate Button Styles */
.migrate-button {
  background-color: #3498db;
  color: white;
}

.migrate-button:hover:not(:disabled) {
  background-color: #2980b9;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
  transform: translateY(-2px);
}

.migrate-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.migrate-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
  opacity: 0.7;
}

.migrate-button.migration-active {
  background-color: #ff9800;
  animation: pulse 2s infinite;
}

.migrate-button.disabled {
  background-color: #e9ecef;
  color: #adb5bd;
  border: 1px solid #dee2e6;
}

/* Function Button Styles */
.function-button,
.function-button1 {
  background-color: #3498db;
  color: white;
}

.function-button:hover:not(:disabled),
.function-button1:hover:not(:disabled) {
  background-color: #2980b9;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
  transform: translateY(-2px);
}

.function-button:active:not(:disabled),
.function-button1:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.function-button:disabled,
.function-button1:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Ensure buttons in button-row have proper styling */
.button-row .migrate-button,
.button-row .function-button,
.button-row .function-button1 {
  margin: 0;
  flex-shrink: 0;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ============================================
   FUNCTION MIGRATION SECTION
   ============================================ */

.function-migration-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f0f0 0%, #f5f5f5 100%);
  border-radius: 8px;
  border-left: 4px solid #9b59b6;
  animation: slideDown 0.3s ease;
}

.function-migration-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.function-migration-header h3 {
  margin: 0;
  color: #2c3e50;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.in-progress {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-badge.completed {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.function-migration-description {
  margin: 0 0 1rem 0;
  color: #6c757d;
  font-size: 0.95rem;
}

.function-config-required {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  text-align: center;
}

/* Migration Logs */
.migration-log {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #eee;
}

.log-header h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.2rem;
}

.clear-logs-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color 0.2s;
}

.clear-logs-btn:hover {
  background-color: #c0392b;
}

.log-content {
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  line-height: 1.6;
}

.log-content::-webkit-scrollbar {
  width: 6px;
}

.log-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.log-content::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}

.log-content::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.log-entry {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

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

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

@media (max-width: 1024px) {
  .migration-container {
    padding: 1.5rem;
  }

  .database-panels {
    gap: 1.5rem;
  }

  .database-panel {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .migration-container {
    padding: 1rem;
  }

  .database-panels {
    flex-direction: column;
    gap: 1.5rem;
  }

  .migration-header h1 {
    font-size: 1.5rem;
  }

  .panel-header h2 {
    font-size: 1.2rem;
  }

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

  .migrate-button,
  .function-button,
  .function-button1 {
    min-width: 180px;
    width: 100%;
    max-width: 250px;
  }

  .button-row {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .button-row .migrate-button,
  .button-row .function-button,
  .button-row .function-button1 {
    width: 100%;
    max-width: none;
  }

  .migration-mode-selector {
    flex-direction: column;
    align-items: stretch;
  }

  .mode-button {
    width: 100%;
    justify-content: center;
  }

  .collections-list {
    max-height: 150px;
  }

  .migration-log {
    padding: 1.25rem;
  }

  .log-content {
    max-height: 250px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .migration-container {
    padding: 0.75rem;
  }

  .database-panels {
    gap: 1rem;
  }

  .database-panel {
    padding: 1rem;
    border-radius: 6px;
  }

  .migration-header h1 {
    font-size: 1.25rem;
  }

  .panel-header h2 {
    font-size: 1rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  select,
  input {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .search-box input {
    padding: 0.4rem;
    font-size: 0.85rem;
  }

  .collections-list {
    max-height: 120px;
    padding: 0.35rem;
  }

  .collection-item {
    padding: 0.35rem;
  }

  .collection-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }

  .migration-mode-selector {
    flex-direction: column;
    gap: 8px;
  }

  .mode-button {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .auto-provision-config {
    padding: 1rem;
    border-radius: 4px;
  }

  .auto-provision-config .form-group {
    margin-bottom: 0.75rem;
  }

  .auto-provision-info {
    padding: 1rem;
  }

  .auto-provision-info ul {
    font-size: 0.75rem;
    padding-left: 1rem;
  }

  .migrate-button,
  .function-button,
  .function-button1 {
    min-width: 160px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .button-row {
    gap: 10px;
    margin: 1rem 0;
  }

  .migration-log {
    padding: 1rem;
  }

  .migration-log h3 {
    font-size: 1rem;
  }

  .log-content {
    max-height: 200px;
    padding: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .error-message,
  .success-message,
  .warning-message,
  .info-message {
    padding: 0.75rem;
    font-size: 0.85rem;
    border-left-width: 3px;
  }

  .function-migration-section {
    padding: 1rem;
    border-left-width: 3px;
    margin-top: 1rem;
  }

  .function-migration-section p {
    font-size: 0.9rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus visible for keyboard navigation */
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  .migrate-button,
  .function-button,
  .function-button1 {
    border: 2px solid currentColor;
  }

  .database-panel {
    border: 2px solid #2c3e50;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .migration-container {
    box-shadow: none;
    padding: 0;
  }

  .database-panel,
  .migration-log,
  .function-migration-section {
    box-shadow: none;
    page-break-inside: avoid;
  }

  .button-row,
  .migrate-button,
  .function-button,
  .function-button1 {
    display: none;
  }

  .migration-header {
    margin-bottom: 1rem;
  }

  .log-content {
    max-height: none;
    overflow: visible;
  }
}


.function-transfer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.database-panels-container {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.database-panel {
  flex: 1 1;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.panel-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}

.panel-header h3 {
  margin: 0;
  color: #495057;
}

.mongo-panel .panel-header {
  color: #4CAF50;
}

.couchbase-panel .panel-header {
  color: #2196F3;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #495057;
}

.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: white;
}

.functions-section {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.functions-list-container {
  flex: 1 1;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.functions-list-container h3 {
  margin-top: 0;
  color: #495057;
}

.functions-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 10px;
  background: white;
}

.no-functions {
  padding: 10px;
  color: #6c757d;
  text-align: center;
}

.select-all-functions {
  padding: 8px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}

.select-all-functions label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}

.function-item {
  padding: 8px 0;
}

.function-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.transfer-actions {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.single-transfer {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.single-transfer label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #495057;
}

.single-transfer select {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 15px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.transfer-button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-weight: 500;
}

.transfer-button.primary {
  background-color:  #2196F3;
  padding-left: 20px;
}

.transfer-button.primary:hover {
  background-color:  #2196F3;
}

.transfer-button.secondary {
  background-color: #2196F3;
}

.transfer-button.secondary:hover {
  background-color: #0b7dda;
}

.transfer-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.status-messages {
  margin-top: 20px;
}

.status-message {
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

label {
  font-weight: 500; /* or 600 if you want it bolder */
  display: block;
  margin-bottom: 5px;
  white-space: nowrap; /* prevent label break */
}
 
 
/* MigrationDashboard.css */
.migration-dashboard-full {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.dashboard-main {
  padding: 25px;
  height: 100%;
  overflow-y: auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 25px;
  gap: 25px;
  margin-bottom: 25px;
}

.auto-scroll-btn {
  padding: 6px 15px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 5px;
}

.auto-scroll-btn:hover {
  background: #f5f5f5;
}

.auto-scroll-btn.active {
  background: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

/* Ensure log list container scrolls properly */
.log-list-container {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 20px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  background: #f8f9fa;
}

/* Add smooth scrolling for better UX */
.log-list-container {
  scroll-behavior: smooth;
}

/* Remove any top margin or padding that might push content down */
.log-list {
  padding: 15px;
  display: flex;
  flex-direction: column;
}

/* Ensure log items display in chronological order - NEWEST at TOP */
.log-item {
  margin-bottom: 10px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

/* Optional: Add a visual indicator for new logs */
.log-item:first-child {
  background: rgba(76, 175, 80, 0.05);
  animation: highlightNew 0.5s ease;
}

@keyframes highlightNew {
  from { background: rgba(76, 175, 80, 0.2); }
  to { background: rgba(76, 175, 80, 0.05); }
}

/* Make sure scrollbar is always visible */
.log-list-container::-webkit-scrollbar {
  width: 8px;
}

.log-list-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.log-list-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.log-list-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.info-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid; 
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.mongo-card {
  border-top-color: #4CAF50; 
}

.couchbase-card {
  border-top-color: #FF9800; 
}

/* CDC Stats Card - Removed border color */
.cdc-stats-card {
  border-top: none !important;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  font-size: 18px;
  font-weight: 600;
}

.card-header span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-body {
  color: #555;
}

.info-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}

.info-line .label {
  font-weight: 500;
  color: #666;
}

.info-line .value {
  font-weight: 600;
  color: #333;
}

.collection-list-scrollable {
  max-height: 120px;
  overflow-y: auto;
  margin-top: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.collection-tag-vertical {
  color: black;
  padding: 6px 12px;
  border-radius: 6px;
  margin: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.live-doc-count {
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
  color: black;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.count-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.count-status {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 10px;
}

.count-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin: 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.count-unit {
  font-size: 14px;
  opacity: 0.9;
}

.cdc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 15px;
  gap: 15px;
  margin-bottom: 20px;
}

.cdc-stat-item {
  background: white;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 4px solid;
}

.cdc-stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.insert-stat { border-top-color: #4CAF50; }
.update-stat { border-top-color: #2196F3; }
.delete-stat { border-top-color: #F44336; }
.total-stat { border-top-color: #9C27B0; }

.cdc-stat-icon {
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
}

.cdc-stat-content {
  flex: 1 1;
}

.cdc-stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #333;
  margin-bottom: 4px;
}

.cdc-stat-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cdc-active-indicator {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.cdc-active-indicator.active {
  background: #4CAF50;
  color: white;
}

.cdc-active-indicator.inactive {
  background: #F44336;
  color: white;
}

.cdc-controls {
  display: flex;
  gap: 10px;
}

.cdc-control-btn {
  padding: 6px 15px;
  border-radius: 20px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.cdc-control-btn.start {
  background: #4CAF50;
  color: white;
}

.cdc-control-btn.stop {
  background: #F44336;
  color: white;
}

.cdc-control-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.progress-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
}

.progress-content {
  margin-top: 20px;
}

.progress-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.progress-bar-container {
  flex: 1 1;
}

.progress-bar1 {
  height: 20px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 10px;
  transition: width 0.5s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-percentage-outside {
  font-size: 28px;
  font-weight: 700;
  color: #2196F3;
  min-width: 70px;
  text-align: center;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  gap: 20px;
}

.progress-stat {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.progress-stat:hover {
  background: #e9ecef;
  transform: translateY(-3px);
}

.stat-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.stat-value.completed {
  color: #4CAF50;
}

.stat-value.running {
  color: #2196F3;
}

.stat-value.error {
  color: #F44336;
}

.stat-value.pending {
  color: #FF9800;
}

.cdc-continues-progress {
  background: #9C27B0;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-left: 10px;
}

.stats-section {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 20px;
  gap: 20px;
}

.stat-card-item {
  background: white;
  border-radius: 10px;
  padding: 20px;
  border-top: 4px solid;
  transition: all 0.3s ease;
}

.stat-card-item:hover {
  transform: translateY(-5px);
}

.stat-content {
  text-align: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #333;
  margin-bottom: 8px;
}

.stat-lbl {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.log-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
}

.log-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.log-filter-btn {
  padding: 6px 15px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.log-filter-btn:hover {
  background: #f5f5f5;
}

.log-filter-btn.active {
  background: #2196F3;
  color: white;
  border-color: #2196F3;
}

.log-clear-btn {
  padding: 6px 15px;
  border-radius: 20px;
  border: 1px solid #F44336;
  background: white;
  color: #F44336;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.log-clear-btn:hover {
  background: #F44336;
  color: white;
}

.log-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: white;
  border-left: 4px solid;
  transition: all 0.3s ease;
}

/* Log item border colors based on type */
.log-item.log-cdc-update {
  border-left-color: #4CAF50; /* Green for CDC Update */
}

.log-item.log-success {
  border-left-color: #2196F3; /* Blue for Connection, Collection Transfer Completed */
}

.log-item.log-info {
  border-left-color: #2196F3; /* Blue for info messages */
}

.log-item.log-error {
  border-left-color: #F44336; /* Red for errors */
}

.log-item.log-warning {
  border-left-color: #FF9800; /* Orange for warnings */
}

.log-time {
  font-size: 12px;
  min-width: 80px;
  font-family: 'Courier New', monospace;
}

.log-source {
  font-size: 12px;
  color: #999;
  min-width: 30px;
  text-align: center;
}

.log-body {
  flex: 1 1;
}

.log-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}

.log-msg {
  font-size: 13px;
  line-height: 1.4;
}

.log-cdc-badge {
  background: #9C27B0;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.log-error-badge {
  background: #F44336;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.collection-list-scrollable::-webkit-scrollbar {
  width: 6px;
}

.collection-list-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.collection-list-scrollable::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.collection-list-scrollable::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Media Query for Large Screens (1200px and above) */
@media screen and (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .cdc-stats-grid,
  .stats-grid,
  .progress-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Media Query for Medium Screens (768px to 1199px) */
@media screen and (max-width: 1199px) and (min-width: 769px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .cdc-stats-grid,
  .stats-grid,
  .progress-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .dashboard-main {
    padding: 20px;
  }
}

/* Media Query for Tablets (768px and below) */
@media screen and (max-width: 768px) {
  .dashboard-main {
    padding: 15px;
  }
  
  .cdc-stats-grid,
  .stats-grid,
  .progress-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .progress-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  
  .log-filters {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .log-clear-btn {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .cdc-controls {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Media Query for Mobile Devices (480px and below) */
@media screen and (max-width: 480px) {
  .cdc-stats-grid,
  .stats-grid,
  .progress-stats {
    grid-template-columns: 1fr;
  }
  
  .log-item {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .log-time,
  .log-source {
    min-width: auto;
    text-align: left;
    font-size: 11px;
  }
  
  .log-body {
    width: 100%;
  }
  
  .log-title {
    font-size: 13px;
  }
  
  .log-msg {
    font-size: 12px;
  }
  
  .info-card {
    padding: 15px;
  }
  
  .stat-num {
    font-size: 28px;
  }
  
  .count-value {
    font-size: 32px;
  }
  
  .cdc-stat-value {
    font-size: 24px;
  }
  
  .progress-percentage-outside {
    font-size: 24px;
  }
}

/* Media Query for Extra Small Devices (320px and below) */
@media screen and (max-width: 320px) {
  .cards-grid {
    gap: 15px;
  }
  
  .info-card {
    padding: 12px;
  }
  
  .card-header {
    font-size: 16px;
  }
  
  .collection-tag-vertical {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  .log-filter-btn {
    padding: 4px 10px;
    font-size: 11px;
  }
  
  .cdc-control-btn {
    padding: 4px 10px;
    font-size: 11px;
  }
}
/* CDC Section Styles */
.cdc-section {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.section-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.cdc-active-indicator {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.cdc-active-indicator.active {
  background: #ff4444;
  color: white;
}

.cdc-active-indicator:not(.active) {
  background: #666;
  color: white;
}

.cdc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 15px;
  gap: 15px;
}
/* CDC Card Styles */
.cdc-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  height: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid transparent; /* Changed from border-left to border-top */
}

.cdc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cdc-card-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: white;
}

.cdc-card-content {
  flex: 1 1;
}

.cdc-card-value {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.cdc-card-label {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

/* Individual card colors - Updated to border-top */
.insert-card {
  border-top-color: #28a745 !important; /* Added !important to override */
}

.insert-card .cdc-card-icon {
  color: #28a745;
}

.update-card {
  border-top-color: #007bff !important; /* Added !important to override */
}

.update-card .cdc-card-icon {
  color: #007bff;
}

.delete-card {
  border-top-color: #dc3545 !important; /* Added !important to override */
}

.delete-card .cdc-card-icon {
  color: #dc3545;
}

.total-card {
  border-top-color: #6f42c1 !important; /* Added !important to override */
}

.total-card .cdc-card-icon {
  color: #6f42c1;
}
/* Increase height of existing cards */
.info-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.info-card .card-body {
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.collection-list-scrollable {
  flex: 1 1;
  overflow-y: auto;
  max-height: 120px;
  margin: 10px 0;
  padding-right: 5px;
}

.collection-list-scrollable::-webkit-scrollbar {
  width: 4px;
}

.collection-list-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.collection-list-scrollable::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 2px;
}

.collection-list-scrollable::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.collection-tag-vertical {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mongo-card .collection-tag-vertical {
  background: rgba(33, 150, 243, 0.1);
  border-color: rgba(33, 150, 243, 0.3);
  color: #1976d2;
}

.couchbase-card .collection-tag-vertical {
  background: rgba(76, 175, 80, 0.1);
  border-color: rgba(76, 175, 80, 0.3);
  color: #388e3c;
}

.live-doc-count {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Log filter buttons */
.log-header-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.log-filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.log-filter-btn {
  padding: 4px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f5f5f5;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.log-filter-btn:hover {
  background: #e9e9e9;
}

.log-filter-btn.active {
  background: #1976d2;
  color: white;
  border-color: #1976d2;
}

.auto-scroll-btn {
  padding: 4px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f5f5f5;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.auto-scroll-btn:hover {
  background: #e9e9e9;
}

.no-logs-message {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
  .cdc-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cdc-card {
    height: 90px;
    padding: 15px;
  }
  
  .cdc-card-value {
    font-size: 24px;
  }
  
  .log-header-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .log-filter-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cdc-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .info-card {
    min-height: 200px;
  }
}

/* CDC Real-Time Monitor Styles */
.cdc-realtime-monitor {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  border-radius: 16px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

/* Monitor Header */
.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(0, 123, 255, 0.1);
}

.monitor-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.monitor-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.task-info {
  background: rgba(0, 123, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.task-info .label {
  color: #666;
  margin-right: 5px;
}

.task-info .value {
  color: #007bff;
  font-weight: 600;
}

/* Monitor Controls */
.monitor-controls {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}

.control-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.control-btn.start {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.control-btn.stop {
  background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
  color: white;
}

.control-btn.refresh {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
  color: white;
}

.control-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.control-btn:disabled {
  background: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.auto-refresh-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.auto-refresh-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #007bff;
  cursor: pointer;
}

.interval-select {
  padding: 10px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  min-width: 140px;
  transition: all 0.3s ease;
}

.interval-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Monitor Status */
.monitor-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
}

.status-dot.active {
  background: #28a745;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
}

.status-dot.inactive {
  background: #6c757d;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

.last-update {
  font-size: 13px;
  color: #6c757d;
  font-style: italic;
}

/* Stats Dashboard */
.stats-dashboard {
  margin-bottom: 40px;
}

.stats-dashboard h3 {
  color: #343a40;
  margin-bottom: 25px;
  font-size: 20px;
  font-weight: 700;
  position: relative;
  padding-left: 15px;
}

.stats-dashboard h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
  border-radius: 2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.stats-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-color) 0%, transparent 100%);
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.stats-card.inserts { --card-color: #28a745; }
.stats-card.updates { --card-color: #17a2b8; }
.stats-card.deletes { --card-color: #dc3545; }
.stats-card.errors { --card-color: #ffc107; }
.stats-card.conflicts { --card-color: #6f42c1; }
.stats-card.skipped { --card-color: #6c757d; }
.stats-card.performance { --card-color: #20c997; }
.stats-card.status { --card-color: #007bff; }

.stats-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.stats-card-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #343a40;
}

.stats-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-badge.new {
  background: var(--card-color);
  color: white;
  opacity: 0.9;
}

.stats-card-content {
  text-align: center;
}

.stats-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--card-color);
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-rate {
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.performance-metrics,
.status-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.metric:last-child {
  border-bottom: none;
}

.metric-label {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.metric-value {
  font-weight: 700;
  font-size: 14px;
  color: #343a40;
}

.metric-value.running { color: #28a745; }
.metric-value.stopped { color: #dc3545; }
.metric-value.complete { color: #28a745; }
.metric-value.in-progress { color: #ffc107; }

/* Panels */
.recent-changes-panel,
.logs-panel {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f8f9fa;
}

.panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #343a40;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-header h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
  border-radius: 50%;
  display: inline-block;
}

.clear-btn {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #e9ecef;
  padding: 6px 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-btn:hover:not(:disabled) {
  background: #e9ecef;
  border-color: #dee2e6;
}

.clear-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Changes List */
.changes-list,
.logs-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Scrollbar Styling */
.changes-list::-webkit-scrollbar,
.logs-list::-webkit-scrollbar {
  width: 6px;
}

.changes-list::-webkit-scrollbar-track,
.logs-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.changes-list::-webkit-scrollbar-thumb,
.logs-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.changes-list::-webkit-scrollbar-thumb:hover,
.logs-list::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.no-changes,
.no-logs {
  text-align: center;
  color: #6c757d;
  padding: 40px 20px;
  font-style: italic;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #e9ecef;
}

.change-item {
  background: #f8f9fa;
  border-left: 4px solid #007bff;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 8px;
  animation: slideIn 0.3s ease;
  border: 1px solid #e9ecef;
}

.change-item.insert { border-left-color: #28a745; }
.change-item.update { border-left-color: #17a2b8; }
.change-item.delete { border-left-color: #dc3545; }
.change-item.unknown { border-left-color: #6c757d; }

.change-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.change-type {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.change-type.insert { background: #d4edda; color: #155724; }
.change-type.update { background: #d1ecf1; color: #0c5460; }
.change-type.delete { background: #f8d7da; color: #721c24; }
.change-type.unknown { background: #e2e3e5; color: #383d41; }

.change-time {
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
}

.change-details {
  font-size: 14px;
}

.change-docid {
  margin-bottom: 8px;
  font-weight: 500;
}

.change-docid strong {
  color: #343a40;
  font-weight: 600;
  background: rgba(0, 123, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.change-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #6c757d;
}

.change-source,
.change-target {
  display: flex;
  align-items: center;
  gap: 5px;
}

.change-source::before {
  content: '↗';
  font-size: 10px;
}

.change-target::before {
  content: '↘';
  font-size: 10px;
}

/* Logs */
.log-item {
  background: #f8f9fa;
  border-left: 4px solid #6c757d;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.log-item.info { border-left-color: #17a2b8; }
.log-item.warn { border-left-color: #ffc107; }
.log-item.error { border-left-color: #dc3545; }

.log-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.log-time {
  color: #6c757d;
  font-weight: 500;
}

.log-level {
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.log-level.info { background: #d1ecf1; color: #0c5460; }
.log-level.warn { background: #fff3cd; color: #856404; }
.log-level.error { background: #f8d7da; color: #721c24; }

.log-type {
  background: #e9ecef;
  padding: 3px 10px;
  border-radius: 12px;
  color: #495057;
  font-weight: 600;
  font-size: 11px;
}

.log-message {
  font-size: 14px;
  color: #343a40;
  line-height: 1.5;
  word-break: break-word;
}

/* Error States */
.monitor-error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 1px solid #f5c6cb;
  text-align: center;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.cdc-monitor-error {
  background: #fff3cd;
  color: #856404;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #ffeaa7;
  font-size: 16px;
  font-weight: 500;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Card Hover Effects */
.stats-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--card-color) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  border-radius: 12px;
}

.stats-card:hover::after {
  opacity: 0.05;
}

.stats-card-header,
.stats-card-content {
  position: relative;
  z-index: 1;
}

/* Custom Scrollbar for Chrome */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0056b3 0%, #520dc2 100%);
}

/* Print Styles */
@media print {
  .monitor-controls,
  .control-btn,
  .auto-refresh-toggle,
  .interval-select,
  .clear-btn {
    display: none !important;
  }
  
  .cdc-realtime-monitor {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .stats-card {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 16px;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

/* Error Content */
.error-content {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
}

.error-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.error-message {
  flex: 1 1;
  font-size: 14px;
  line-height: 1.4;
}

.error-dismiss {
  background: none;
  border: none;
  font-size: 24px;
  color: #721c24;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.error-dismiss:hover {
  background: rgba(114, 28, 36, 0.1);
}

/* Stats Card Enhancements */
.stats-trend {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

.trend-up {
  color: #28a745;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-error {
  color: #dc3545;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-warning {
  color: #ffc107;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rate-value {
  font-weight: 700;
  font-size: 16px;
}

.rate-unit {
  font-size: 12px;
  color: #6c757d;
}

.rate-success {
  color: #28a745;
}

.rate-error {
  color: #dc3545;
}

.rate-warning {
  color: #ffc107;
}

/* Panel Enhancements */
.panel-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.panel-info {
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
}

.panel-icon {
  margin-right: 8px;
  font-size: 18px;
}

/* Change Item Enhancements */
.change-type-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.change-index {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.docid-label {
  color: #6c757d;
  margin-right: 5px;
  font-size: 12px;
}

.docid-value {
  background: rgba(0, 123, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  word-break: break-all;
}

.meta-label {
  color: #6c757d;
  margin-right: 5px;
  font-size: 11px;
}

.meta-value {
  font-size: 12px;
  font-weight: 500;
  word-break: break-all;
}

/* Log Item Enhancements */
.log-index {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.log-error {
  margin-top: 8px;
  padding: 8px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 6px;
  font-size: 12px;
  color: #721c24;
}

/* Performance Charts */
.performance-charts {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.charts-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 20px;
  gap: 20px;
}

.chart-placeholder {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  color: #6c757d;
}

.chart-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.chart-placeholder p {
  margin: 10px 0;
  font-weight: 500;
}

.chart-placeholder small {
  font-size: 12px;
  color: #adb5bd;
}

/* Monitor Footer */
.monitor-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-stats {
  display: flex;
  gap: 20px;
}

.footer-stat {
  font-size: 13px;
  color: #495057;
}

.footer-stat strong {
  color: #343a40;
  margin-right: 5px;
}

.footer-info {
  font-size: 12px;
  color: #6c757d;
}

/* Update Dot Animation */
.update-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #28a745;
  border-radius: 50%;
  margin-left: 8px;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Empty States */
.empty-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
  opacity: 0.5;
}

/* Connection Status */
.status-text {
  font-weight: 600;
  font-size: 14px;
}

.status-text[data-status="connected"] { color: #28a745; }
.status-text[data-status="connecting"] { color: #ffc107; }
.status-text[data-status="disconnected"] { color: #dc3545; }

/* Button Icons */
.btn-icon {
  font-size: 16px;
}

/* Responsive Design - Media Queries */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .monitor-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .monitor-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .control-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .control-btn,
  .interval-select {
    width: 100%;
    justify-content: center;
  }
  
  .auto-refresh-toggle {
    justify-content: center;
  }
  
  .monitor-status {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .footer-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .change-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .panel-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .cdc-realtime-monitor {
    padding: 20px;
  }
  
  .stats-card {
    padding: 15px;
  }
  
  .stats-value {
    font-size: 28px;
  }
  
  .recent-changes-panel,
  .logs-panel {
    padding: 20px;
  }
  
  .monitor-footer {
    padding-top: 15px;
  }
  
  .footer-stats {
    flex-wrap: wrap;
  }
}
/* GLOBAL IMPORT */

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

a { text-decoration: none; color: inherit; }

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(96px, 12vh, 112px);
  padding: clamp(10px, 1.5vh, 12px) clamp(20px, 4vw, 50px);
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #f1f5f9;
  width: 100%;
}

.navbar-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: #1e293b;
  -webkit-user-select: none;
          user-select: none;
  white-space: nowrap;
  font-family: 'Sora', sans-serif;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1001;
  height: 100%;
  min-width: 0;
  flex-shrink: 1;
}

.navbar-logo {
  width: clamp(200px, 24vw, 320px);
  max-width: 100%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.navbar-logo:hover { opacity: 0.8; }
.navbar-menu { display: flex; align-items: center; gap: clamp(4px, 1vw, 8px); font-weight: 500; z-index: 1001; height: 100%; }
.nav-link { cursor: pointer; white-space: nowrap; font-weight: 600; color: #475569; padding: clamp(6px, 0.8vh, 8px) clamp(12px, 1.2vw, 16px); border-radius: 9999px; font-family: 'Outfit', sans-serif; font-size: clamp(0.8rem, 1vw, 0.95rem); transition: all 0.2s ease; }
.nav-link:hover { background-color: #f8fafc; color: #2563eb; }
.mobile-menu-icon { display: none; flex-direction: column; cursor: pointer; gap: 5px; z-index: 1002; }
.bar { width: 25px; height: 3px; background-color: #475569; transition: 0.4s; border-radius: 2px; }
.change:nth-child(1) { transform: rotate(-45deg) translate(-6px, 6px); }
.change:nth-child(2) { opacity: 0; }
.change:nth-child(3) { transform: rotate(45deg) translate(-6px, -6px); }

/* MODAL */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes gradientFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.3);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: clamp(10px, 2vw, 20px);
}

.modal-content {
  background: #ffffff;
  border-radius: clamp(12px, 1.5vw, 20px);
  width: 100%;
  max-width: min(900px, 90vw);
  max-height: min(520px, 85vh);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(12px, 1.5vw, 18px) clamp(16px, 2vw, 24px);
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.modal-title {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  margin: 0;
  font-family: 'Sora', sans-serif;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #0891b2);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 8s ease infinite;
}

.modal-close-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: clamp(26px, 3vw, 34px);
  height: clamp(26px, 3vw, 34px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: clamp(0.8rem, 1vw, 1rem);
  transition: all 0.3s;
}
.modal-close-btn:hover { background: #f1f5f9; color: #1e293b; transform: rotate(90deg); }

.modal-body { flex: 1 1; display: flex; flex-direction: column; overflow: hidden; background: #fafbfc; }
.databases-section { flex: 1 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.modal-search { padding: clamp(8px, 1vw, 14px) clamp(16px, 2vw, 24px); background: #ffffff; border-bottom: 1px solid #f1f5f9; }
.search-input-wrapper { position: relative; width: 100%; }
.modal-search-input { width: 100%; padding: clamp(8px, 1vw, 12px) clamp(12px, 1.5vw, 18px); border-radius: clamp(6px, 0.8vw, 10px); border: 1px solid #e2e8f0; background: #f8fafc; color: #1e293b; font-size: clamp(0.75rem, 1vw, 0.9rem); font-family: 'Outfit', sans-serif; }
.modal-search-input:focus { outline: none; border-color: #3b82f6; background: #ffffff; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1); }
.migration-tabs { padding: clamp(6px, 0.8vw, 12px) clamp(16px, 2vw, 24px); background: #ffffff; border-bottom: 1px solid #f1f5f9; }
.tabs-container { display: flex; gap: clamp(2px, 0.4vw, 6px); background: #f1f5f9; border-radius: clamp(6px, 0.8vw, 10px); padding: clamp(2px, 0.3vw, 4px); }
.tab { flex: 1 1; padding: clamp(6px, 0.8vw, 10px) clamp(8px, 1vw, 14px); text-align: center; cursor: pointer; background: transparent; display: flex; align-items: center; justify-content: center; gap: clamp(4px, 0.5vw, 8px); border-radius: clamp(4px, 0.6vw, 8px); color: #64748b; font-weight: 600; font-size: clamp(0.7rem, 0.9vw, 0.85rem); transition: all 0.3s; }
.tab.active { background: #ffffff; color: #1e293b; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.tab:hover:not(.active) { color: #475569; }
.tab-count { padding: clamp(2px, 0.3vw, 4px) clamp(6px, 0.7vw, 10px); border-radius: 12px; font-size: clamp(0.6rem, 0.75vw, 0.75rem); font-weight: 700; }
.available-count { background: linear-gradient(135deg, #2563eb, #7c3aed); color: white; }
.in-progress-count { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }

/* GRID & CARDS UNIFORMITY */
.migrations-grid { flex: 1 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: clamp(8px, 1vw, 14px); gap: clamp(8px, 1vw, 14px); padding: clamp(12px, 1.5vw, 20px) clamp(16px, 2vw, 24px); overflow-y: auto; background: #fafbfc; }

.migration-card {
  background: #ffffff;
  border-radius: clamp(8px, 1vw, 14px);
  /* UNIFORM LAYOUT */
  padding: clamp(10px, 1.2vw, 16px) clamp(8px, 1vw, 14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Forces top alignment */
  gap: 12px;
  height: clamp(160px, 18vw, 200px); /* Fixed height */
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.migration-card.available-card:hover { border-color: #3b82f6; transform: translateY(-3px); box-shadow: 0 8px 16px rgba(59, 130, 246, 0.12); }
.migration-card.in-progress-card { border-color: #e2e8f0; background: #ffffff; cursor: not-allowed; opacity: 0.7; box-shadow: none; }

.card-logo-container {
  width: clamp(45px, 5vw, 65px);
  height: clamp(45px, 5vw, 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: clamp(6px, 0.8vw, 10px);
  padding: clamp(4px, 0.5vw, 8px);
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.card-logo { width: 100%; height: 100%; object-fit: contain; }

.card-title {
  color: #1e293b;
  font-size: clamp(0.7rem, 0.95vw, 0.85rem);
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  min-height: 40px; /* Forces uniform alignment for 1 or 2 lines */
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-cta {
  color: #3b82f6;
  font-size: clamp(0.6rem, 0.8vw, 0.75rem);
  font-weight: 600;
  padding: clamp(4px, 0.5vw, 7px) clamp(8px, 1vw, 14px);
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border: none;
  transition: all 0.3s;
  font-family: 'Outfit', sans-serif;
  margin-top: auto; /* Pushes button to bottom */
}
.migration-card.available-card:hover .card-cta { background: linear-gradient(135deg, #2563eb, #7c3aed); color: white; }

.highlighted-text { background: linear-gradient(90deg, #fbbf24, #f59e0b); color: #000000; padding: 2px 4px; border-radius: 3px; font-weight: 600; }
.no-results-state { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: #64748b; }
.clear-search-btn { background: #f1f5f9; border: 1px solid #e2e8f0; color: #475569; padding: 8px 16px; border-radius: 9999px; cursor: pointer; font-weight: 600; }
.modal-footer { padding: clamp(10px, 1.2vw, 16px) clamp(16px, 2vw, 24px); border-top: 1px solid #f1f5f9; background: #ffffff; display: flex; justify-content: flex-end; }
.close-modal-btn { background: linear-gradient(135deg, #2563eb, #7c3aed); border: none; color: white; padding: clamp(6px, 0.8vw, 10px) clamp(16px, 2vw, 24px); border-radius: 9999px; cursor: pointer; font-weight: 600; font-size: clamp(0.7rem, 0.9vw, 0.85rem); transition: all 0.3s; }
.close-modal-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3); }

/* SCROLLBAR */
.migrations-grid::-webkit-scrollbar { width: 12px; }
.migrations-grid::-webkit-scrollbar-track { background: #f1f5f9; border-left: 1px solid #e2e8f0; }
.migrations-grid::-webkit-scrollbar-thumb { background: #cbd5e1; border: 3px solid #f1f5f9; border-radius: 6px; }
.migrations-grid::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .navbar-title { display: none; }
  .navbar {
    height: clamp(84px, 11vh, 96px);
    padding: 10px 16px;
  }
  .navbar-logo {
    width: clamp(170px, 44vw, 240px);
    max-height: 58px;
  }
  .navbar-menu { position: fixed; top: clamp(50px, 8vh, 65px); right: 0; height: calc(100vh - clamp(50px, 8vh, 65px)); background: rgba(255, 255, 255, 0.98); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); flex-direction: column; width: 100%; max-width: 300px; padding: 20px; transform: translateX(100%); transition: transform 0.3s ease-in-out; align-items: flex-start; box-shadow: -2px 0 15px rgba(0,0,0,0.1); border-left: 1px solid #f1f5f9; }
  .navbar-menu.active { transform: translateX(0); }
  .nav-link { width: 100%; padding: 12px 16px; border-radius: 8px; }
  .mobile-menu-icon { display: flex; }
}
@media (max-width: 868px) { .migrations-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .migrations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .migrations-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 360px) { .migrations-grid { grid-template-columns: 1fr; } }

.postgresql-connection-page .postgresql-connection-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 32px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  min-height: 2vh;
  box-sizing: border-box;
  color: #23344d;
  line-height: 1.5;
}

.postgresql-connection-page .connection-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6edf5;
  width: 100%;
}

.postgresql-connection-page .connection-header h2 {
  margin: 0 0 12px 0;
  color: #23344d;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.postgresql-connection-page .connection-header .subtitle {
  margin: 0;
  color: #6a7a8d;
  font-size: 17px;
  font-weight: 400;
}

.postgresql-connection-page .postgresql-connection-form {
  margin-bottom: 32px;
  width: 100%;
}

.postgresql-connection-page .postgresql-form-group {
  margin-bottom: 24px;
  width: 100%;
  border: none;
  border-bottom: none;
  box-shadow: none;
}

.postgresql-connection-page .postgresql-form-label {
  display: block;
  margin-bottom: 10px;
  color: #23344d;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.postgresql-connection-page .postgresql-form-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background-color: #f8f9fa;
  color: #23344d;
  transition: all 0.2s ease;
  box-sizing: border-box;
  display: block;
}

.postgresql-connection-page .postgresql-form-input:focus {
  outline: none;
  border-color: #4dabf7;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
}

.postgresql-connection-page .postgresql-form-input.error {
  border-color: #fa5252;
  background-color: #fff5f5;
}

.postgresql-connection-page .postgresql-form-input:disabled {
  background-color: #f1f3f5;
  color: #868e96;
  cursor: not-allowed;
}

.postgresql-connection-page .postgresql-error-message {
  margin-top: 8px;
  color: #fa5252;
  font-size: 13px;
  font-weight: 500;
}

.postgresql-connection-page .postgresql-button-container {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
}

.postgresql-connection-page .connect-button {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(51, 154, 240, 0.3);
  min-height: 48px;
  white-space: nowrap;
  text-align: center;
}

.postgresql-connection-page .connect-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #339af0 0%, #228be6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 154, 240, 0.4);
}

.postgresql-connection-page .connect-button:active:not(:disabled) {
  transform: translateY(0);
}

.postgresql-connection-page .connect-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.postgresql-connection-page .connect-button.connecting {
  background: linear-gradient(135deg, #ff922b 0%, #fd7e14 100%);
}

.postgresql-connection-page .connect-button.connected {
  background: linear-gradient(135deg, #40c057 0%, #2b8a3e 100%);
}

.postgresql-connection-page .reset-button {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
  min-height: 48px;
  white-space: nowrap;
  text-align: center;
}

.postgresql-connection-page .reset-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.28);
}


.postgresql-connection-page .spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

.postgresql-connection-page .checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  position: relative;
}

.postgresql-connection-page .checkmark::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid #2b8a3e;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

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

.postgresql-connection-page .status-display {
  margin: 24px 0;
  padding: 20px;
  border-radius: 10px;
  background-color: #f8f9fa;
  border-left: 5px solid #4dabf7;
  width: 100%;
}

.postgresql-connection-page .status-display.success {
  background-color: #ebfbee;
  border-left-color: #40c057;
}

.postgresql-connection-page .status-display.error {
  background-color: #fff5f5;
  border-left-color: #fa5252;
}

.postgresql-connection-page .status-display.info {
  background-color: #e7f5ff;
  border-left-color: #4dabf7;
}

.postgresql-connection-page .status-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.postgresql-connection-page .status-icon {
  font-size: 20px;
  font-weight: bold;
}

.postgresql-connection-page .status-text {
  font-size: 17px;
  font-weight: 700;
  color: #23344d;
}

.postgresql-connection-page .alert {
  margin: 24px 0;
  padding: 20px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
  width: 100%;
}

.postgresql-connection-page .alert-success {
  background-color: #ebfbee;
  border: 2px solid #40c057;
  color: #2b8a3e;
}

.postgresql-connection-page .alert-error {
  background-color: #fff5f5;
  border: 2px solid #fa5252;
  color: #c92a2a;
}

.postgresql-connection-page .connection-inline-message {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.postgresql-connection-page .connection-inline-message.success {
  color: #15803d;
  font-weight: 600;
}

.postgresql-connection-page .connection-inline-message.error {
  color: #dc2626;
  font-weight: 600;
}

.postgresql-connection-page .connection-details {
  margin-top: 40px;
  padding: 32px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  width: 100%;
}

.postgresql-connection-page .connection-details h3 {
  margin: 0 0 24px 0;
  color: #2c3e50;
  font-size: 24px;
  font-weight: 600;
}

.postgresql-connection-page .details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 24px;
  gap: 24px;
}

.postgresql-connection-page .detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.postgresql-connection-page .detail-item.full-width {
  grid-column: 1 / -1;
}

.postgresql-connection-page .detail-label {
  font-size: 14px;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.postgresql-connection-page .detail-value {
  font-size: 16px;
  color: #495057;
  font-weight: 500;
  word-break: break-all;
}

.postgresql-connection-page .detail-value.success {
  color: #40c057;
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .postgresql-connection-page .postgresql-connection-container {
    padding: 24px;
  }

  .postgresql-connection-page .connection-header {
    margin-bottom: 28px;
  }

  .postgresql-connection-page .connection-header h2 {
    font-size: 28px;
  }

  .postgresql-connection-page .postgresql-connection-form {
    margin-bottom: 20px;
  }

  .postgresql-connection-page .postgresql-button-container {
    margin-top: 28px;
  }
}

@media (max-width: 768px) {
  .postgresql-connection-page .postgresql-connection-container {
    padding: 20px;
  }
  
  .postgresql-connection-page .postgresql-button-container {
    flex-direction: column;
    margin-top: 30px;
    align-items: stretch;
  }

  .postgresql-connection-page .connect-button,
  .postgresql-connection-page .reset-button {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  
  .postgresql-connection-page .details-grid {
    grid-template-columns: 1fr;
  }
  
  .postgresql-connection-page .connection-header h2 {
    font-size: 28px;
  }
  
  .postgresql-connection-page .connection-header .subtitle {
    font-size: 16px;
  }

  .postgresql-connection-page .alert,
  .postgresql-connection-page .status-display {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .postgresql-connection-page .postgresql-connection-container {
    padding: 16px;
  }
  
  .postgresql-connection-page .connection-header h2 {
    font-size: 24px;
  }
  
  .postgresql-connection-page .connection-header .subtitle {
    font-size: 15px;
  }
  
  .postgresql-connection-page .postgresql-form-input {
    padding: 12px 16px;
    font-size: 15px;
  }
  
  .postgresql-connection-page .connect-button, .postgresql-connection-page .reset-button {
    padding: 14px 20px;
    font-size: 16px;
    min-height: 50px;
  }
  
  .postgresql-connection-page .connection-details {
    padding: 20px;
  }
  
  .postgresql-connection-page .details-grid {
    gap: 16px;
  }
}

@media (max-width: 360px) {
  .postgresql-connection-page .postgresql-connection-container {
    padding: 12px;
  }

  .postgresql-connection-page .connection-header h2 {
    font-size: 20px;
  }

  .postgresql-connection-page .postgresql-form-label {
    font-size: 14px;
  }

  .postgresql-connection-page .postgresql-form-input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .postgresql-connection-page .connect-button,
  .postgresql-connection-page .reset-button {
    min-height: 44px;
    font-size: 14px;
  }
}

.postgres-couchbase-connection-page .postgres-couchbase-connection-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 32px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #23344d;
  line-height: 1.5;
}

.postgres-couchbase-connection-page .connection-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6edf5;
  width: 100%;
}

.postgres-couchbase-connection-page .connection-header h2 {
  margin: 0 0 12px 0;
  color: #23344d;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.postgres-couchbase-connection-page .connection-header .subtitle {
  margin: 0;
  color: #6a7a8d;
  font-size: 17px;
  font-weight: 400;
}

.postgres-couchbase-connection-page .postgres-couchbase-connection-form {
  width: 100%;
  margin: 0 0 2rem 0;
}

.postgres-couchbase-connection-page .postgres-couchbase-form-group {
  width: 100%;
  margin-bottom: 24px;
  border: none;
  border-bottom: none;
  box-shadow: none;
}

.postgres-couchbase-connection-page .postgres-couchbase-form-label {
  display: block;
  margin-bottom: 10px;
  color: #23344d;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.postgres-couchbase-connection-page .postgres-couchbase-form-input {
  width: 100%;
  min-height: 46px;
  padding: 14px 18px;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background-color: #f8f9fa;
  color: #23344d;
  font-size: 15px;
  box-sizing: border-box;
  display: block;
  transition: all 0.2s ease;
}

.postgres-couchbase-connection-page .postgres-couchbase-form-input:focus {
  outline: none;
  border-color: #4dabf7;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
}

.postgres-couchbase-connection-page .postgres-couchbase-form-input.error {
  border-color: #fa5252;
  background-color: #fff5f5;
}

.postgres-couchbase-connection-page .postgres-couchbase-form-input:disabled {
  background-color: #f1f3f5;
  color: #868e96;
  cursor: not-allowed;
}

.postgres-couchbase-connection-page .postgres-couchbase-error-message {
  margin-top: 8px;
  color: #fa5252;
  font-size: 13px;
  font-weight: 500;
}

.postgres-couchbase-connection-page .postgres-couchbase-button-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  width: 100%;
}

.postgres-couchbase-connection-page .connect-button {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(51, 154, 240, 0.3);
  min-height: 48px;
  white-space: nowrap;
  text-align: center;
}

.postgres-couchbase-connection-page .connect-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #339af0 0%, #228be6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 154, 240, 0.4);
}

.postgres-couchbase-connection-page .connect-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.postgres-couchbase-connection-page .connect-button.connecting {
  background: linear-gradient(135deg, #ff922b 0%, #fd7e14 100%);
}

.postgres-couchbase-connection-page .connect-button.connected {
  background: linear-gradient(135deg, #40c057 0%, #2b8a3e 100%);
}

.postgres-couchbase-connection-page .postgres-couchbase-reset-button {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
  min-height: 48px;
  white-space: nowrap;
  text-align: center;
}

.postgres-couchbase-connection-page .postgres-couchbase-reset-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.28);
}


.postgres-couchbase-connection-page .postgres-couchbase-reset-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.postgres-couchbase-connection-page .spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: postgres-couchbase-spin 1s ease-in-out infinite;
}

.postgres-couchbase-connection-page .checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  position: relative;
}

.postgres-couchbase-connection-page .checkmark::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid #2b8a3e;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

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

.postgres-couchbase-connection-page .connection-success {
  margin-top: 2rem;
}

.postgres-couchbase-connection-page .alert {
  margin: 24px 0;
  padding: 20px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
  width: 100%;
}

.postgres-couchbase-connection-page .alert-success {
  background-color: #ebfbee;
  border: 2px solid #40c057;
  color: #2b8a3e;
}

.postgres-couchbase-connection-page .alert-error {
  background-color: #fff5f5;
  border: 2px solid #fa5252;
  color: #c92a2a;
}

.postgres-couchbase-connection-page .connection-inline-message {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.postgres-couchbase-connection-page .connection-inline-message.success {
  color: #15803d;
  font-weight: 600;
}

.postgres-couchbase-connection-page .connection-inline-message.error {
  color: #dc2626;
  font-weight: 600;
}

.postgres-couchbase-connection-page .success-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.postgres-couchbase-connection-page .success-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.postgres-couchbase-connection-page .success-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.postgres-couchbase-connection-page .success-details {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.postgres-couchbase-connection-page .success-details p {
  margin: 0.5rem 0;
}

.postgres-couchbase-connection-page .success-message {
  font-style: italic;
  color: #d1c4e9;
}

.postgres-couchbase-connection-page .proceed-button {
  background: white;
  color: #667eea;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}

.postgres-couchbase-connection-page .proceed-button:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.postgres-couchbase-connection-page .connection-error {
  margin-top: 2rem;
}

.postgres-couchbase-connection-page .error-card {
  background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(245, 101, 101, 0.3);
}

.postgres-couchbase-connection-page .error-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.postgres-couchbase-connection-page .error-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.postgres-couchbase-connection-page .error-details {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
}

.postgres-couchbase-connection-page .error-details p {
  margin: 0.5rem 0;
}

.postgres-couchbase-connection-page .info-note {
  background: #f0f9ff;
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  margin: 1rem 0;
}

.postgres-couchbase-connection-page .connection-status-summary {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.postgres-couchbase-connection-page .status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.postgres-couchbase-connection-page .status-badge.connected {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.postgres-couchbase-connection-page .status-badge.disconnected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.postgres-couchbase-connection-page .connection-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1.5rem;
}

.postgres-couchbase-connection-page .summary-item {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.postgres-couchbase-connection-page .step-intro {
  margin-bottom: 2rem;
}

.postgres-couchbase-connection-page .step-intro p {
  margin-bottom: 0.5rem;
}

/* Navigation connection status */
.postgres-couchbase-connection-page .connection-status {
  background: #10b981;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 1rem;
}

/* Make sure the Couchbase connection component fits */
.postgres-couchbase-connection-page .couchbase-connection-step .postgres-couchbase-connection-container {
  max-width: 100%;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.postgres-couchbase-connection-page .postgres-couchbase-connection-container .buckets-container,
.postgres-couchbase-connection-page .postgres-couchbase-connection-container .scopes-container,
.postgres-couchbase-connection-page .postgres-couchbase-connection-container .collections-container {
  margin-top: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}

.postgres-couchbase-connection-page .postgres-couchbase-connection-container .buckets-container h3,
.postgres-couchbase-connection-page .postgres-couchbase-connection-container .scopes-container h3,
.postgres-couchbase-connection-page .postgres-couchbase-connection-container .collections-container h3 {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #1f2e53;
}

.postgres-couchbase-connection-page .postgres-couchbase-connection-container .buckets-list,
.postgres-couchbase-connection-page .postgres-couchbase-connection-container .scopes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.postgres-couchbase-connection-page .postgres-couchbase-connection-container .bucket-item,
.postgres-couchbase-connection-page .postgres-couchbase-connection-container .scope-item {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #1e293b;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.postgres-couchbase-connection-page .postgres-couchbase-connection-container .bucket-item.active,
.postgres-couchbase-connection-page .postgres-couchbase-connection-container .scope-item.active {
  border-color: #1d4ed8;
  background: #dbeafe;
  color: #1e40af;
}

.postgres-couchbase-connection-page .postgres-couchbase-connection-container .collections-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.postgres-couchbase-connection-page .postgres-couchbase-connection-container .collection-item {
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  padding: 8px 10px;
}

.postgres-couchbase-connection-page .postgres-couchbase-connection-container .loading-indicator {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.postgres-couchbase-connection-page .postgres-couchbase-connection-container .spinner.small {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .postgres-couchbase-connection-page .couchbase-connection-step .postgres-couchbase-connection-container {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .postgres-couchbase-connection-page .postgres-couchbase-button-container {
    flex-direction: column;
    align-items: stretch;
    margin-top: 30px;
  }

  .postgres-couchbase-connection-page .connect-button,
  .postgres-couchbase-connection-page .postgres-couchbase-reset-button {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .postgres-couchbase-connection-page .connection-summary {
    grid-template-columns: 1fr;
  }
  
  .postgres-couchbase-connection-page .connection-status-summary {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .postgres-couchbase-connection-page .success-card,
  .postgres-couchbase-connection-page .error-card {
    padding: 1rem;
  }

  .postgres-couchbase-connection-page .couchbase-connection-step .postgres-couchbase-connection-container {
    padding: 1rem;
    border-radius: 10px;
  }

  .postgres-couchbase-connection-page .postgres-couchbase-connection-container .buckets-list,
  .postgres-couchbase-connection-page .postgres-couchbase-connection-container .scopes-list {
    gap: 6px;
  }

  .postgres-couchbase-connection-page .postgres-couchbase-connection-container .bucket-item,
  .postgres-couchbase-connection-page .postgres-couchbase-connection-container .scope-item {
    font-size: 11px;
    padding: 6px 10px;
  }

  .postgres-couchbase-connection-page .postgres-couchbase-connection-container .collections-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .postgres-couchbase-connection-page .postgres-couchbase-form-input {
    padding: 12px 16px;
    font-size: 15px;
  }

  .postgres-couchbase-connection-page .couchbase-connection-step .postgres-couchbase-connection-container {
    padding: 0.75rem;
  }

  .postgres-couchbase-connection-page .postgres-couchbase-connection-container .buckets-container h3,
  .postgres-couchbase-connection-page .postgres-couchbase-connection-container .scopes-container h3,
  .postgres-couchbase-connection-page .postgres-couchbase-connection-container .collections-container h3 {
    font-size: 14px;
  }
}

/* PostgreSQLMetadata.css */

.postgresql-metadata-page .postgresql-metadata-container {
  --postgres-metadata-accent: #16a34a;
  --postgres-metadata-accent-soft: #15803d;
  --postgres-metadata-surface: #ffffff;
  --postgres-metadata-soft: #f8fafc;
  --postgres-metadata-border: #e5e7eb;
  --postgres-metadata-text: #111827;
  --postgres-metadata-muted: #6b7280;
  background-color: #ffffff;
  padding: 8px 0;
  margin: 0;
}

.postgresql-metadata-page .metadata-section-header {
  padding-bottom: 0;
  margin-bottom: 22px;
  border-bottom: none;
}

.postgresql-metadata-page .metadata-section-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--postgres-metadata-text);
  letter-spacing: 0.01em;
}

.postgresql-metadata-page .metadata-section-card {
  background: #ffffff;
  border: 1px solid var(--postgres-metadata-border);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: none;
}

.postgresql-metadata-page .metadata-summary-section {
  margin-top: 0;
}

.postgresql-metadata-page .metadata-box-down {
  opacity: 0.88;
}

.postgresql-metadata-page .metadata-inline-status {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e6edf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--postgres-metadata-muted);
  font-size: 14px;
  flex-wrap: wrap;
}

.postgresql-metadata-page .metadata-connection-health-section {
  margin-bottom: 24px;
}

.postgresql-metadata-page .metadata-connection-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.postgresql-metadata-page .metadata-connection-health-card {
  padding: 16px 18px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid var(--postgres-metadata-border);
  box-shadow: none;
}

.postgresql-metadata-page .metadata-connection-health-card.up {
  border-top: 4px solid #10b981;
}

.postgresql-metadata-page .metadata-connection-health-card.down {
  border-top: 4px solid #ef4444;
}

.postgresql-metadata-page .metadata-connection-health-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.postgresql-metadata-page .metadata-connection-health-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--postgres-metadata-text);
}

.postgresql-metadata-page .metadata-connection-health-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.postgresql-metadata-page .metadata-connection-health-pill.up {
  background: #dcfce7;
  color: #166534;
}

.postgresql-metadata-page .metadata-connection-health-pill.down {
  background: #fee2e2;
  color: #b91c1c;
}

.postgresql-metadata-page .metadata-connection-health-meta {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  color: var(--postgres-metadata-muted);
  font-size: 13px;
}

.postgresql-metadata-page .demo-banner {
  background-color: #4a6fa5;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.postgresql-metadata-page .connection-info-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.postgresql-metadata-page .connection-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.postgresql-metadata-page .connection-label {
  font-weight: 600;
  font-size: 14px;
  opacity: 0.9;
}

.postgresql-metadata-page .connection-details {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.postgresql-metadata-page .metadata-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 28px;
  gap: 28px;
  margin-bottom: 0;
}

.postgresql-metadata-page .metadata-box,
.postgresql-metadata-page .metadata-box.database-box,
.postgresql-metadata-page .metadata-box.schema-box,
.postgresql-metadata-page .metadata-box.table-box {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: none;
  transition: border-color 0.2s ease;
  border: 1px solid #e5e7eb;
  border-top: 4px solid #16a34a;
  position: relative;
}

/* Cancel the unscoped AerospikeMetadata.css ::before purple gradient bleed */
.postgresql-metadata-page .metadata-box::before {
  display: none !important;
}

.postgresql-metadata-page .metadata-box:hover {
  border-color: #16a34a;
}

.postgresql-metadata-page .box-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.postgresql-metadata-page .box-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 8px;
  background: #f6f8fb;
  border: 1px solid #eef2f7;
  font-size: 13px;
  color: var(--postgres-metadata-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  text-decoration: none;
}

.postgresql-metadata-page .box-value {
  font-size: 40px;
  font-weight: 700;
  color: #2f3640;
  margin-bottom: 4px;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1;
}

.postgresql-metadata-page .box-subtitle {
  font-size: 12px;
  color: #868e96;
  font-style: italic;
}

.postgresql-metadata-page .metadata-summary {
  background: white;
  border-radius: 8px;
  padding: 16px 24px;
  border: 1px solid #e9ecef;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.postgresql-metadata-page .summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.postgresql-metadata-page .stat-label {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 4px;
  text-align: center;
}

.postgresql-metadata-page .stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #36a2eb;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Loading, Error, and Auth States */
.postgresql-metadata-page .postgresql-metadata-loading,
.postgresql-metadata-page .postgresql-metadata-error,
.postgresql-metadata-page .auth-required-message {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  box-shadow: none;
  border: 1px solid var(--postgres-metadata-border);
}

.postgresql-metadata-page .loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e9ecef;
  border-top: 4px solid #36a2eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.postgresql-metadata-page .postgresql-metadata-loading p {
  color: #6c757d;
  font-size: 16px;
  margin-top: 10px;
}

.postgresql-metadata-page .error-icon,
.postgresql-metadata-page .auth-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background-color: #ffeaea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.postgresql-metadata-page .error-icon:before {
  content: "⚠️";
  font-size: 28px;
}

.postgresql-metadata-page .auth-icon:before {
  content: "🔒";
  font-size: 28px;
}

.postgresql-metadata-page .postgresql-metadata-error h3,
.postgresql-metadata-page .auth-required-message h3 {
  color: #dc3545;
  margin-bottom: 10px;
  font-size: 20px;
}

.postgresql-metadata-page .auth-required-message h3 {
  color: #6c757d;
}

.postgresql-metadata-page .error-message {
  color: #6c757d;
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.postgresql-metadata-page .retry-button {
  background-color: #36a2eb;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.postgresql-metadata-page .retry-button:hover {
  background-color: #2c8fd6;
}

.postgresql-metadata-page .session-help {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #dee2e6;
}

.postgresql-metadata-page .session-help p {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .postgresql-metadata-page .postgresql-metadata-container {
    padding: 18px;
  }

  .postgresql-metadata-page .metadata-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .postgresql-metadata-page .box-value {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .postgresql-metadata-page .postgresql-metadata-container {
    padding: 16px;
  }

  .postgresql-metadata-page .metadata-section-card {
    padding: 18px;
  }
  
  .postgresql-metadata-page .metadata-boxes {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .postgresql-metadata-page .metadata-inline-status {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .postgresql-metadata-page .metadata-box {
    padding: 20px;
  }
  
  .postgresql-metadata-page .metadata-summary {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .postgresql-metadata-page .connection-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .postgresql-metadata-page .connection-details {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .postgresql-metadata-page .postgresql-metadata-container {
    padding: 12px;
    margin: 12px 0;
  }

  .postgresql-metadata-page .connection-info-banner {
    padding: 10px 12px;
  }

  .postgresql-metadata-page .connection-details {
    font-size: 12px;
    padding: 4px 8px;
  }

  .postgresql-metadata-page .metadata-box {
    padding: 16px;
  }

  .postgresql-metadata-page .box-value {
    font-size: 24px;
  }

  .postgresql-metadata-page .postgresql-metadata-loading,
  .postgresql-metadata-page .postgresql-metadata-error,
  .postgresql-metadata-page .auth-required-message {
    padding: 20px 14px;
  }
}

.postgresql-migration-page .migration-container {
  --map-surface: #ffffff;
  --map-surface-soft: #f5f7fb;
  --map-border: #d6dce5;
  --map-border-soft: #e8edf3;
  --map-text: #000000;
  --map-text-muted: #1f1f1f;
  --map-blue: #1f5eff;
  --map-green: #148f4b;
  --map-purple: #24426a;
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px 20px 24px;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--map-text);
  line-height: 1.45;
}

.postgresql-migration-page .mapping-page-hero {
  margin-bottom: 20px;
  padding: 20px 24px;
  border: 1px solid #d6dce5;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 68%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.postgresql-migration-page .mapping-page-hero-title {
  margin: 0 0 8px;
  color: #12213f;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.postgresql-migration-page .mapping-page-hero-text {
  margin: 0;
  color: #485672;
  font-size: 14px;
  line-height: 1.6;
}

.postgresql-migration-page .pg-map-health-section {
  margin-bottom: 32px;
  padding-bottom: 0;
  border-bottom: none;
}

.postgresql-migration-page .pg-map-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.postgresql-migration-page .pg-map-health-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #d9e2ec;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.postgresql-migration-page .pg-map-health-card.is-up {
  border-top: 4px solid #10b981;
}

.postgresql-migration-page .pg-map-health-card.is-down {
  border-top: 4px solid #ef4444;
}

.postgresql-migration-page .pg-map-health-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.postgresql-migration-page .pg-map-health-name {
  font-size: 18px;
  font-weight: 800;
  color: #20304f;
}

.postgresql-migration-page .pg-map-health-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.postgresql-migration-page .pg-map-health-pill.is-up {
  background: #dcfce7;
  color: #166534;
}

.postgresql-migration-page .pg-map-health-pill.is-down {
  background: #fee2e2;
  color: #b91c1c;
}

.postgresql-migration-page .pg-map-health-meta {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  color: #5b6980;
  font-size: 13px;
}

/* Messages */
.postgresql-migration-page .error-message {
  background-color: #fee;
  color: #c33;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid #c33;
  margin-bottom: 20px;
  cursor: pointer;
  animation: slideIn 0.3s ease;
}

.postgresql-migration-page .success-message {
  background-color: #eff;
  color: #2a7;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid #2a7;
  margin-bottom: 20px;
  cursor: pointer;
  animation: slideIn 0.3s ease;
}

/* Connection Panels */
.postgresql-migration-page .connection-panels,
.postgresql-migration-page .migration-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 26px;
}

.postgresql-migration-page .pg-map-workspace {
  display: grid;
  grid-template-columns: clamp(240px, 22vw, 320px) minmax(0, 1fr);
  grid-gap: 24px;
  gap: 24px;
  align-items: stretch;
  min-height: 600px;
}

.postgresql-migration-page .pg-map-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 16px;
  width: 100%;
  background: var(--map-surface);
  border-radius: 16px;
  border: 1px solid var(--map-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  padding: 20px 16px;
  min-height: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  align-self: stretch;
}

.postgresql-migration-page .pg-map-content-panel .architecture-plan-panel,
.postgresql-migration-page .pg-map-content-panel .production-preflight-panel,
.postgresql-migration-page .pg-map-content-panel .pg-map-performance-section,
.postgresql-migration-page .pg-map-content-panel .pg-map-launch-controls {
  border: 1px solid var(--map-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  padding: 18px;
}

.postgresql-migration-page .pg-map-chart-panel {
  border: 1px solid var(--map-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  padding: 18px;
}

.postgresql-migration-page .pg-map-chart-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid #d6e0ee;
  background: #ffffff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.postgresql-migration-page .pg-map-chart-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.postgresql-migration-page .pg-map-chart-legend-swatch.parent {
  background: #3b82f6;
}

.postgresql-migration-page .pg-map-chart-legend-swatch.embedded {
  background: #f97316;
}

.postgresql-migration-page .pg-map-chart-legend-swatch.same-collection {
  background: #d97706;
}

.postgresql-migration-page .pg-map-chart-legend-swatch.direct-child {
  background: #22c55e;
}

.postgresql-migration-page .pg-map-chart-legend-swatch.reference {
  background: #0f766e;
}

.postgresql-migration-page .pg-map-chart-legend-swatch.level2-child {
  background: #9333ea;
}

.postgresql-migration-page .pg-map-chart-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.postgresql-migration-page .pg-map-chart-view-modes,
.postgresql-migration-page .pg-map-chart-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.postgresql-migration-page .pg-map-chart-btn,
.postgresql-migration-page .pg-map-chart-select {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
}

.postgresql-migration-page .pg-map-chart-btn {
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.postgresql-migration-page .pg-map-chart-btn:hover:not(:disabled) {
  border-color: #93c5fd;
  background: #eff6ff;
  transform: translateY(-1px);
}

.postgresql-migration-page .pg-map-chart-btn.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.postgresql-migration-page .pg-map-chart-btn:disabled,
.postgresql-migration-page .pg-map-chart-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.postgresql-migration-page .pg-map-chart-zoom-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  min-width: 52px;
  text-align: center;
}

.postgresql-migration-page .pg-map-chart-viewport {
  position: relative;
  overflow: auto;
  min-height: 560px;
  max-height: 72vh;
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  background:
    linear-gradient(0deg, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.96)),
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 35%);
}

.postgresql-migration-page .pg-map-chart-legend-overlay {
  position: -webkit-sticky;
  position: sticky;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: -webkit-fit-content;
  width: fit-content;
  max-width: calc(100% - 20px);
  margin: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

.postgresql-migration-page .pg-map-chart-canvas {
  position: relative;
  min-width: 100%;
  min-height: 100%;
}

.postgresql-migration-page .pg-map-chart-image {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  max-width: none;
}

.postgresql-migration-page .pg-map-chart-empty {
  min-height: 320px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: #475569;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.postgresql-migration-page .pg-map-sidebar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--map-text);
  margin-bottom: 8px;
}

.postgresql-migration-page .pg-map-sidebar-subtitle {
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 16px;
}

.postgresql-migration-page .pg-map-sidebar-menu {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.postgresql-migration-page .pg-map-menu-item {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  border: 1px solid #dde7f2;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.postgresql-migration-page .pg-map-menu-item:hover {
  border-color: #bfd0eb;
  background: #f5f8fc;
  transform: translateY(-1px);
}

.postgresql-migration-page .pg-map-menu-item.is-active {
  border-color: #9db7e7;
  background: #eef3f8;
}

.postgresql-migration-page .pg-map-menu-step {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
}

.postgresql-migration-page .pg-map-menu-item.is-active .pg-map-menu-step {
  background: var(--map-blue);
  color: white;
}

.postgresql-migration-page .pg-map-menu-copy {
  min-width: 0;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.postgresql-migration-page .pg-map-menu-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.postgresql-migration-page .pg-map-menu-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  color: #111827;
}

.postgresql-migration-page .pg-map-menu-meta {
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
}

.postgresql-migration-page .pg-map-content-area {
  min-width: 0;
  display: grid;
}

.postgresql-migration-page .pg-map-content-panel {
  min-width: 0;
}

.postgresql-migration-page .pg-map-content-panel .form-group {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

.postgresql-migration-page .pg-map-content-panel .panel,
.postgresql-migration-page .pg-map-content-panel .architecture-plan-panel,
.postgresql-migration-page .pg-map-content-panel .production-preflight-panel,
.postgresql-migration-page .pg-map-content-panel .pg-map-performance-section,
.postgresql-migration-page .pg-map-content-panel .pg-map-launch-controls {
  margin-top: 0;
}

.postgresql-migration-page .connection-panel,
.postgresql-migration-page .panel {
  background: var(--map-surface);
  border-radius: 14px;
  border: 1px solid var(--map-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  min-width: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.postgresql-migration-page .panel-header {
  color: var(--map-text);
  margin: 12px 26px 0;
  padding: 6px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: none;
}

.postgresql-migration-page .source-panel {
  border-top: 4px solid var(--map-blue);
}

.postgresql-migration-page .target-panel .panel-header,
.postgresql-migration-page .couchbase-panel .panel-header {
  background: var(--map-surface-soft);
}

.postgresql-migration-page .target-panel,
.postgresql-migration-page .couchbase-panel {
  border-top: 4px solid var(--map-green);
}

.postgresql-migration-page .panel-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #12213f;
}

.postgresql-migration-page .panel-header h3::before {
  content: none;
}

.postgresql-migration-page .panel-header-copy {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.postgresql-migration-page .panel-header-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.postgresql-migration-page .connection-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.postgresql-migration-page .connection-status.connected {
  background: rgba(255, 255, 255, 0.2);
  color: #4caf50;
}

.postgresql-migration-page .connection-status.disconnected {
  background: rgba(255, 255, 255, 0.2);
  color: #ff9800;
}

/* Connection Forms */
.postgresql-migration-page .connection-form {
  padding: 20px;
}

.postgresql-migration-page .connected-panel {
  padding: 20px;
}

.postgresql-migration-page .connection-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.postgresql-migration-page .connection-info p {
  margin: 0;
  color: #666;
}

/* Form Elements */
.postgresql-migration-page .form-group {
  margin-bottom: 8px;
}

.postgresql-migration-page .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #000000;
  font-size: 14px;
}

.postgresql-migration-page .form-group input:not([type="checkbox"]),
.postgresql-migration-page .form-group select {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  font-size: 14px;
  color: #000000;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
}

.postgresql-migration-page .form-group input:not([type="checkbox"]):focus,
.postgresql-migration-page .form-group select:focus {
  outline: none;
  border-color: var(--map-blue);
  box-shadow: 0 0 0 3px rgba(77, 111, 255, 0.12);
}

.postgresql-migration-page .form-group input:not([type="checkbox"]):disabled,
.postgresql-migration-page .form-group select:disabled {
  background-color: #f8fafc;
  cursor: not-allowed;
}

.postgresql-migration-page .mapping-form-group {
  margin-bottom: 12px;
  border: none;
  border-bottom: none;
  box-shadow: none;
}

.postgresql-migration-page .mapping-form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #000000;
  font-size: 14px;
}

.postgresql-migration-page .mapping-form-input,
.postgresql-migration-page .mapping-form-select {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  font-size: 14px;
  color: #000000;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
  box-sizing: border-box;
}

.postgresql-migration-page .mapping-form-input:focus,
.postgresql-migration-page .mapping-form-select:focus {
  outline: none;
  border-color: var(--map-blue);
  box-shadow: 0 0 0 3px rgba(77, 111, 255, 0.12);
}

.postgresql-migration-page .mapping-form-input:disabled,
.postgresql-migration-page .mapping-form-select:disabled {
  background-color: #f8fafc;
  cursor: not-allowed;
}

/* Buttons */
.postgresql-migration-page .connect-button,
.postgresql-migration-page .disconnect-button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.postgresql-migration-page .connect-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.postgresql-migration-page .connect-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: none;
}

.postgresql-migration-page .connect-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.postgresql-migration-page .disconnect-button {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

.postgresql-migration-page .disconnect-button:hover:not(:disabled) {
  background: #eee;
}

/* Data Selection */
.postgresql-migration-page .data-selection {
  margin-top: 20px;
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.postgresql-migration-page .source-section-card {
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.postgresql-migration-page .source-section-card-compact {
  padding-bottom: 12px;
}

.postgresql-migration-page .source-section-card-inner {
  margin-top: 16px;
  background: #f8fbff;
  box-shadow: none;
}

.postgresql-migration-page .source-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.postgresql-migration-page .source-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #12213f;
}

.postgresql-migration-page .source-section-note {
  max-width: 420px;
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
  text-align: right;
}

.postgresql-migration-page .source-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.postgresql-migration-page .checkpoint-storage-section {
  margin: 16px 0 12px;
  padding: 16px;
  border: 1px solid #d9e3f1;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fd 100%);
}

.postgresql-migration-page .checkpoint-storage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.postgresql-migration-page .checkpoint-storage-title {
  font-size: 16px;
  font-weight: 800;
  color: #12213f;
}

.postgresql-migration-page .checkpoint-storage-note {
  font-size: 12px;
  line-height: 1.5;
  color: #586783;
  max-width: 420px;
  text-align: right;
}

.postgresql-migration-page .checkpoint-storage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.postgresql-migration-page .checkpoint-storage-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 16px;
}

.postgresql-migration-page .checkpoint-storage-card {
  padding: 12px 14px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.postgresql-migration-page .checkpoint-storage-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a7a8d;
}

.postgresql-migration-page .table-select-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.postgresql-migration-page .parent-table-checkbox-list {
  width: 100%;
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #d7deee;
  border-radius: 10px;
  padding: 8px;
  background: #ffffff;
}

.postgresql-migration-page .parent-table-checkbox-list.disabled {
  background: #f6f8fc;
}

.postgresql-migration-page .parent-table-checkbox-list.disabled .parent-table-checkbox-item {
  cursor: not-allowed;
  opacity: 0.8;
}

.postgresql-migration-page .parent-table-checkbox-item {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.postgresql-migration-page .form-group .parent-table-checkbox-item {
  display: flex;
  margin-bottom: 0;
}

.postgresql-migration-page .parent-table-checkbox-item:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.postgresql-migration-page .parent-table-checkbox-item.is-selected {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.postgresql-migration-page .parent-table-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

.postgresql-migration-page .parent-table-checkbox-list.disabled .parent-table-checkbox-item input[type="checkbox"] {
  cursor: not-allowed;
}

.postgresql-migration-page .parent-table-checkbox-item .table-name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  color: #1f2e53;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.postgresql-migration-page .checkbox-list-empty {
  padding: 8px 10px;
  font-size: 13px;
  color: #64748b;
}

.postgresql-migration-page .partition-preview-section {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid #dbe4f3;
  border-radius: 10px;
  background: #f8fbff;
}

.postgresql-migration-page .partition-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.postgresql-migration-page .partition-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2e53;
}

.postgresql-migration-page .partition-preview-loading {
  font-size: 11px;
  color: #64748b;
}

.postgresql-migration-page .partition-preview-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.postgresql-migration-page .partition-preview-card {
  padding: 9px 10px;
  border-radius: 7px;
  border: 1px solid #d9e3f5;
  background: #ffffff;
}

.postgresql-migration-page .partition-preview-card.is-partitioned {
  border-color: #c7d8ff;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.postgresql-migration-page .child-partition-preview-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.postgresql-migration-page .child-partition-preview-item {
  padding: 8px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.postgresql-migration-page .child-partition-preview-item.is-partitioned {
  border-color: #c7d8ff;
  background: #f6f9ff;
}

.postgresql-migration-page .child-partition-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.postgresql-migration-page .child-partition-preview-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2e53;
  word-break: break-word;
}

.postgresql-migration-page .partition-collection-mapping-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 10px;
}

.postgresql-migration-page .partition-collection-mapping-list::-webkit-scrollbar {
  width: 10px;
}

.postgresql-migration-page .partition-collection-mapping-list::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.postgresql-migration-page .partition-collection-mapping-list::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
}

.postgresql-migration-page .partition-collection-mapping-list::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.postgresql-migration-page .partition-target-section {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbe4f3;
  border-radius: 10px;
  background: #f8fbff;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 10px;
}

.postgresql-migration-page .partition-target-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.postgresql-migration-page .partition-target-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2e53;
}

.postgresql-migration-page .partition-target-note {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.postgresql-migration-page .partition-target-section::-webkit-scrollbar {
  width: 10px;
}

.postgresql-migration-page .partition-target-section::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.postgresql-migration-page .partition-target-section::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
}

.postgresql-migration-page .partition-target-section::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.postgresql-migration-page .partition-target-options {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.postgresql-migration-page .partition-collection-picker {
  margin-top: 12px;
}

.postgresql-migration-page .partition-preview-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.postgresql-migration-page .partition-preview-table {
  font-size: 13px;
  font-weight: 700;
  color: #1f2e53;
  word-break: break-word;
}

.postgresql-migration-page .partition-preview-badge {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.postgresql-migration-page .partition-preview-badge.partitioned {
  background: #e0ecff;
  color: #2557c7;
}

.postgresql-migration-page .partition-preview-badge.standard {
  background: #edf2f7;
  color: #475569;
}

.postgresql-migration-page .partition-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 11px;
  color: #42526b;
}

.postgresql-migration-page .partition-preview-key {
  font-size: 11px;
  line-height: 1.35;
  color: #5b6b84;
}

.postgresql-migration-page .partition-preview-note {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #49617f;
}

.postgresql-migration-page .partition-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.postgresql-migration-page .partition-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2d4f9d;
  font-size: 10px;
  font-weight: 600;
}

.postgresql-migration-page .partition-chip.more {
  background: #eef2f7;
  color: #526071;
}

.postgresql-migration-page .partition-preview-list::-webkit-scrollbar {
  width: 7px;
}

.postgresql-migration-page .partition-preview-list::-webkit-scrollbar-track {
  background: #edf3fc;
  border-radius: 999px;
}

.postgresql-migration-page .partition-preview-list::-webkit-scrollbar-thumb {
  background: #a8b8d6;
  border-radius: 999px;
}

.postgresql-migration-page .partition-preview-list::-webkit-scrollbar-thumb:hover {
  background: #8095bb;
}

.postgresql-migration-page .parent-table-checkbox-list::-webkit-scrollbar {
  width: 8px;
}

.postgresql-migration-page .parent-table-checkbox-list::-webkit-scrollbar-track {
  background: #eef2ff;
  border-radius: 10px;
}

.postgresql-migration-page .parent-table-checkbox-list::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
}

.postgresql-migration-page .parent-table-checkbox-list::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.postgresql-migration-page .parent-table-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7deee;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: #1f2e53;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.postgresql-migration-page .parent-table-select:focus {
  outline: none;
  border-color: #4f6ec9;
  box-shadow: 0 0 0 3px rgba(79, 110, 201, 0.14);
}

.postgresql-migration-page .parent-table-select:disabled {
  background: #f6f8fc;
  color: #7f8aa8;
}

.postgresql-migration-page .parent-table-select-multi {
  min-height: 180px;
  max-height: 280px;
  overflow-y: auto;
}

.postgresql-migration-page .table-select-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.postgresql-migration-page .table-select-header > label {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.postgresql-migration-page .table-select-actions {
  display: flex;
  gap: 8px;
  margin-top: 0;
  flex: 0 0 auto;
}

.postgresql-migration-page .table-select-action-btn {
  border: 1px solid #d3dbeb;
  border-radius: 8px;
  background: #ffffff;
  color: var(--map-text);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
}

.postgresql-migration-page .table-select-action-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #b9c6da;
}

.postgresql-migration-page .table-select-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.postgresql-migration-page .selection-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}

.postgresql-migration-page .selection-summary {
  margin-top: 10px;
  padding: 12px 14px;
  background: #f8fbff;
  border: 1px solid #d9e6ff;
  border-radius: 10px;
  font-size: 13px;
  color: #1f3b73;
  font-weight: 700;
}

.postgresql-migration-page .selection-summary.empty {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
  font-weight: 500;
}

.postgresql-migration-page .child-tables-preview {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e4e8f2;
  border-radius: 8px;
  background: #f8fafc;
}

.postgresql-migration-page .child-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: #243b53;
  margin-bottom: 10px;
}

.postgresql-migration-page .child-preview-groups-scroll {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 6px;
}

.postgresql-migration-page .child-preview-groups-scroll::-webkit-scrollbar {
  width: 8px;
}

.postgresql-migration-page .child-preview-groups-scroll::-webkit-scrollbar-track {
  background: #eef2ff;
  border-radius: 10px;
}

.postgresql-migration-page .child-preview-groups-scroll::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
}

.postgresql-migration-page .child-preview-groups-scroll::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.postgresql-migration-page .child-preview-group + .child-preview-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e4e8f2;
}

.postgresql-migration-page .child-preview-parent {
  font-size: 12px;
  font-weight: 600;
  color: #334e68;
  margin-bottom: 8px;
}

.postgresql-migration-page .child-preview-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #52606d;
  margin: 8px 0 6px;
}

.postgresql-migration-page .child-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.postgresql-migration-page .child-preview-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1f2937;
  font-size: 12px;
}

.postgresql-migration-page .child-preview-tag.ref-tag {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.postgresql-migration-page .child-preview-tag.self-tag {
  border-color: #d8b4fe;
  background: #f3e8ff;
  color: #6d28d9;
  font-weight: 600;
}

.postgresql-migration-page .child-preview-empty {
  font-size: 12px;
  color: #64748b;
}

.postgresql-migration-page .relationship-decision-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}

.postgresql-migration-page .relationship-decision-list::-webkit-scrollbar {
  width: 8px;
}

.postgresql-migration-page .relationship-decision-list::-webkit-scrollbar-track {
  background: #eef2ff;
  border-radius: 10px;
}

.postgresql-migration-page .relationship-decision-list::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
}

.postgresql-migration-page .relationship-decision-list::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.postgresql-migration-page .relationship-decision-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid #dbe4f0;
  border-radius: 6px;
  background: #ffffff;
}

.postgresql-migration-page .decision-path {
  font-size: 12px;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.postgresql-migration-page .decision-chip {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}

.postgresql-migration-page .decision-chip.reference {
  color: #1e3a8a;
  background: #dbeafe;
  border-color: #93c5fd;
}

.postgresql-migration-page .decision-chip.embed_array {
  color: #065f46;
  background: #d1fae5;
  border-color: #6ee7b7;
}

.postgresql-migration-page .decision-chip.embed_object {
  color: #92400e;
  background: #ffedd5;
  border-color: #fdba74;
}

.postgresql-migration-page .decision-rule {
  font-size: 11px;
  color: #475569;
  font-weight: 600;
}

.postgresql-migration-page .index-migration-option {
  margin-top: 12px;
  margin-bottom: 0;
  padding: 10px 12px;
  border: 1px solid #e6e9f2;
  border-radius: 6px;
  background: #fff;
}

.postgresql-migration-page .index-migration-option .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 500;
  color: #333;
  cursor: pointer;
}

.postgresql-migration-page .index-migration-option .checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.postgresql-migration-page .index-migration-option .checkbox-label span {
  display: inline-block;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.4;
}

/* Migration Mode */
.postgresql-migration-page .migration-mode-select {
  background: #f8f9fa;
  border: 1px solid #ddd;
}

.postgresql-migration-page .manual-selection,
.postgresql-migration-page .same-as-source-config {
  margin-top: 0;
  padding: 14px 26px 18px;
  background: transparent;
  border-radius: 0;
}

.postgresql-migration-page .data-selection {
  margin-top: 0;
  padding: 10px 26px 14px;
  display: flex;
  flex-direction: column;
}

.postgresql-migration-page .connection-not-available {
  margin: 22px 26px 26px;
  padding: 24px;
  background: var(--map-surface-soft);
  border: 1px dashed #cfd7e3;
  border-radius: 12px;
}

.postgresql-migration-page .connection-not-available h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--map-text);
}

.postgresql-migration-page .connection-not-available p {
  margin: 0;
  color: var(--map-text-muted);
  line-height: 1.6;
}

.postgresql-migration-page .mapping-guidance-section {
  margin: 6px 0 18px;
}

.postgresql-migration-page .mapping-guidance-title {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.postgresql-migration-page .mapping-guidance-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.postgresql-migration-page .mapping-guidance-list li {
  font-size: 14px;
  line-height: 1.65;
  color: #111111;
}

.postgresql-migration-page .mapping-guidance-list strong {
  color: #111111;
}

.postgresql-migration-page .memory-input {
  max-width: 170px;
}

.postgresql-migration-page .input-hint {
  font-size: 12px;
  color: #222222;
  margin-top: 8px;
  font-style: normal;
  line-height: 1.5;
}

.postgresql-migration-page .migration-summary {
  margin-top: 20px;
  padding: 15px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.postgresql-migration-page .migration-summary h4 {
  margin: 0 0 10px 0;
  color: #333;
}

/* Migration Progress */
.postgresql-migration-page .migration-progress-panel {
  background: white;
  border-radius: 10px;
  box-shadow: none;
  padding: 20px;
  margin-bottom: 20px;
  animation: slideIn 0.3s ease;
}

.postgresql-migration-page .progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.postgresql-migration-page .progress-header h3 {
  margin: 0;
  color: #333;
}

.postgresql-migration-page .progress-percentage {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
}

.postgresql-migration-page .progress-bar-container {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 15px 0;
}

.postgresql-migration-page .progress-bar-container .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.postgresql-migration-page .progress-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 15px;
  gap: 15px;
  font-size: 14px;
  color: #666;
}

/* Migration Controls */
.postgresql-migration-page .pg-map-performance-section {
  background: var(--map-surface);
  border-radius: 14px;
  border: 1px solid var(--map-border-soft);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  padding: 22px 28px 24px;
  margin-bottom: 18px;
}

.postgresql-migration-page .performance-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.postgresql-migration-page .performance-header {
  font-size: 22px;
  font-weight: 800;
  color: var(--map-text);
  margin-bottom: 6px;
}

.postgresql-migration-page .performance-subtitle {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  max-width: 760px;
}

.postgresql-migration-page .performance-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 20px;
}

.postgresql-migration-page .performance-summary-card {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.postgresql-migration-page .performance-summary-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.postgresql-migration-page .performance-summary-card strong {
  font-size: 20px;
  font-weight: 800;
  color: #12213f;
}

.postgresql-migration-page .performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 28px;
  gap: 28px;
}

.postgresql-migration-page .performance-field {
  margin-bottom: 0;
}

.postgresql-migration-page .performance-card {
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #ffffff;
}

.postgresql-migration-page .performance-card-wide {
  grid-column: span 2;
}

.postgresql-migration-page .performance-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
}

.postgresql-migration-page .pg-map-launch-controls {
  background: var(--map-surface);
  border-radius: 14px;
  border: 1px solid var(--map-border-soft);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  padding: 28px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.postgresql-migration-page .tablewise-counts-panel {
  margin-top: 14px;
  background: white;
  border-radius: 10px;
  box-shadow: none;
  padding: 16px 20px;
  overflow-x: auto;
}

.postgresql-migration-page .tablewise-counts-title {
  font-size: 14px;
  font-weight: 700;
  color: #243b53;
  margin-bottom: 10px;
}

.postgresql-migration-page .tablewise-counts-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 0.8fr 0.8fr;
  min-width: 520px;
  grid-gap: 8px 12px;
  gap: 8px 12px;
  align-items: center;
}

.postgresql-migration-page .tablewise-counts-head {
  font-size: 12px;
  font-weight: 700;
  color: #52606d;
  text-transform: uppercase;
}

.postgresql-migration-page .tablewise-counts-cell {
  font-size: 13px;
  color: #102a43;
}

.postgresql-migration-page .migration-button {
  background: linear-gradient(135deg, #4568f7 0%, #6f47ff 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  min-width: 340px;
  box-shadow: 0 12px 28px rgba(91, 33, 255, 0.18);
}

.postgresql-migration-page .migration-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(91, 33, 255, 0.22);
}

.postgresql-migration-page .migration-button:disabled {
  background: #c7ccd7;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

.postgresql-migration-page .start-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.postgresql-migration-page .start-confirm-dialog {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #d7deee;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  padding: 18px 20px;
}

.postgresql-migration-page .start-confirm-title {
  font-size: 18px;
  font-weight: 700;
  color: #102a43;
  margin-bottom: 10px;
}

.postgresql-migration-page .start-confirm-message {
  font-size: 14px;
  line-height: 1.55;
  color: #334e68;
}

.postgresql-migration-page .start-confirm-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.postgresql-migration-page .start-confirm-btn {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2e53;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
}

.postgresql-migration-page .start-confirm-btn.cancel {
  background: #f8fafc;
}

.postgresql-migration-page .start-confirm-btn.confirm {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.postgresql-migration-page .start-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.postgresql-migration-page .migration-button.migrating {
  background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
}

.postgresql-migration-page .migration-summary-info {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 15px;
  gap: 15px;
  text-align: left;
}

.postgresql-migration-page .migration-summary-info p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.postgresql-migration-page .migration-summary-info strong {
  color: #333;
}

.postgresql-migration-page .architecture-plan-panel {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid #d7e3f4;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.postgresql-migration-page .production-preflight-panel {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid #d7e3f4;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.postgresql-migration-page .architecture-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.postgresql-migration-page .architecture-plan-header h3 {
  margin: 0;
  font-size: 18px;
  color: #17324d;
}

.postgresql-migration-page .architecture-plan-status,
.postgresql-migration-page .architecture-plan-empty,
.postgresql-migration-page .architecture-plan-error {
  font-size: 13px;
  color: #4b647e;
}

.postgresql-migration-page .architecture-plan-error {
  color: #b42318;
  margin-bottom: 12px;
}

.postgresql-migration-page .architecture-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
}

.postgresql-migration-page .architecture-summary-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.postgresql-migration-page .architecture-summary-card {
  border-radius: 12px;
  border: 1px solid #dbe7f3;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  padding: 14px;
}

.postgresql-migration-page .architecture-summary-card .label {
  display: block;
  font-size: 12px;
  color: #5a7189;
  margin-bottom: 6px;
}

.postgresql-migration-page .architecture-summary-card strong {
  font-size: 22px;
  color: #102a43;
}

.postgresql-migration-page .preflight-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  align-items: start;
}

.postgresql-migration-page .preflight-check-card {
  border-radius: 12px;
  border: 1px solid #dbe7f3;
  background: #fbfdff;
  padding: 0;
  overflow: hidden;
  align-self: start;
}

.postgresql-migration-page .preflight-check-card.pass {
  background: #f3fbf6;
  border-color: #cfe8d8;
}

.postgresql-migration-page .preflight-check-card.check_required {
  background: #fff5f5;
  border-color: #f0c8c8;
}

.postgresql-migration-page .preflight-check-card.advisory {
  background: #fffaf0;
  border-color: #f2ddb0;
}

.postgresql-migration-page .preflight-check-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.postgresql-migration-page .preflight-check-title {
  font-size: 14px;
  font-weight: 700;
  color: #17324d;
}

.postgresql-migration-page .preflight-check-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.postgresql-migration-page .preflight-check-state {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 9px;
  background: #dbeafe;
  color: #1d4ed8;
}

.postgresql-migration-page .preflight-check-state.pass {
  background: #dcfce7;
  color: #15803d;
}

.postgresql-migration-page .preflight-check-state.check_required {
  background: #fee2e2;
  color: #b91c1c;
}

.postgresql-migration-page .preflight-check-state.advisory {
  background: #fef3c7;
  color: #b45309;
}

.postgresql-migration-page .preflight-check-detail {
  font-size: 13px;
  color: #4b647e;
  line-height: 1.55;
}

.postgresql-migration-page .preflight-check-toggle {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex: 0 0 auto;
}

.postgresql-migration-page .preflight-check-body {
  border-top: 1px solid #e6edf7;
  padding: 12px 14px 14px;
}

.postgresql-migration-page .preflight-check-items {
  margin-top: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0eb #edf4ff;
}

.postgresql-migration-page .preflight-check-items::-webkit-scrollbar {
  width: 8px;
}

.postgresql-migration-page .preflight-check-items::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.postgresql-migration-page .preflight-check-items::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
}

.postgresql-migration-page .preflight-check-items::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.postgresql-migration-page .preflight-check-item {
  font-size: 12px;
  color: #4b647e;
  line-height: 1.5;
  border: 1px solid #e3ebf5;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
}

.postgresql-migration-page .migration-blocker-note {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid #f0c8c8;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}

.postgresql-migration-page .pg-launch-summary-panel {
  margin-bottom: 0;
  text-align: left;
  width: 100%;
  max-width: none;
  min-width: 0;
  align-self: stretch;
}

.postgresql-migration-page .pg-launch-summary-title {
  font-size: 16px;
  font-weight: 800;
  color: #17324d;
  margin-bottom: 12px;
}

.postgresql-migration-page .pg-launch-summary-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 14px;
  width: 100%;
  min-width: 0;
}

.postgresql-migration-page .pg-launch-summary-secondary-sections {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
  gap: 16px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.postgresql-migration-page .pg-launch-summary-metric-card {
  border-radius: 12px;
  border: 1px solid #dbe7f3;
  background: #ffffff;
  padding: 14px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.postgresql-migration-page .pg-launch-summary-metric-label {
  display: block;
  font-size: 12px;
  color: #111111;
  margin-bottom: 6px;
  line-height: 1.45;
}

.postgresql-migration-page .pg-launch-summary-metric-card strong {
  font-size: 20px;
  color: #000000;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.postgresql-migration-page .pg-launch-summary-target-list {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0eb #edf4ff;
}

.postgresql-migration-page .pg-launch-summary-section-card {
  min-width: 0;
  min-height: 100%;
  padding: 14px;
  border: 1px solid #dde7f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.postgresql-migration-page .pg-launch-summary-section-card-embedded {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.04);
}

.postgresql-migration-page .pg-launch-summary-section-card-reference {
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.05);
}

.postgresql-migration-page .pg-launch-summary-section-card-targets {
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.05);
}

.postgresql-migration-page .pg-map-launch-controls-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.postgresql-migration-page .pg-launch-summary-target-list::-webkit-scrollbar {
  width: 10px;
}

.postgresql-migration-page .pg-launch-summary-target-list::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.postgresql-migration-page .pg-launch-summary-target-list::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.postgresql-migration-page .pg-launch-summary-target-list::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.postgresql-migration-page .pg-launch-summary-target-item {
  border: 1px solid #dde7f2;
  border-radius: 12px;
  padding: 12px;
  background: #fbfdff;
}

.postgresql-migration-page .pg-launch-summary-target-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 4px;
}

.postgresql-migration-page .pg-launch-summary-target-item-meta {
  font-size: 12px;
  color: #111111;
  line-height: 1.6;
}

.postgresql-migration-page .architecture-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.postgresql-migration-page .architecture-plan-note {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f8ff;
  border: 1px solid #d9e6fb;
  color: #111111;
  font-size: 13px;
  line-height: 1.6;
}

.postgresql-migration-page .architecture-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 16px;
}

.postgresql-migration-page .architecture-guidance-card,
.postgresql-migration-page .parent-wise-plan-card {
  border: 1px solid #dde7f2;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.postgresql-migration-page .parent-wise-plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0eb #edf4ff;
}

.postgresql-migration-page .parent-wise-plan-list::-webkit-scrollbar {
  width: 10px;
}

.postgresql-migration-page .parent-wise-plan-list::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.postgresql-migration-page .parent-wise-plan-list::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.postgresql-migration-page .parent-wise-plan-list::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.postgresql-migration-page .parent-wise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-top: 12px;
}

.postgresql-migration-page .parent-wise-section {
  border: 1px solid #e6eef8;
  border-radius: 10px;
  background: #f9fbfe;
  padding: 12px;
}

.postgresql-migration-page .parent-wise-section strong {
  display: block;
  margin-bottom: 8px;
  color: #17324d;
  font-size: 13px;
}

.postgresql-migration-page .architecture-plan-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.postgresql-migration-page .architecture-plan-chip-row.compact {
  margin-top: 8px;
}

.postgresql-migration-page .architecture-plan-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4fb;
  color: #36516b;
  font-size: 11px;
  font-weight: 700;
}

.postgresql-migration-page .architecture-plan-chip.root {
  background: #dbeafe;
  color: #1d4ed8;
}

.postgresql-migration-page .architecture-plan-chip.embedded {
  background: #dcfce7;
  color: #15803d;
}

.postgresql-migration-page .architecture-plan-chip.separate {
  background: #fef3c7;
  color: #b45309;
}

.postgresql-migration-page .architecture-column {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.postgresql-migration-page .architecture-column-title {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
}

.postgresql-migration-page .architecture-analysis-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-gap: 18px;
  gap: 18px;
  align-items: start;
}

.postgresql-migration-page .architecture-analysis-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: -webkit-sticky;
  position: sticky;
  top: 16px;
}

.postgresql-migration-page .architecture-analysis-content {
  min-width: 0;
}

.postgresql-migration-page .architecture-section-shell {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.postgresql-migration-page .architecture-section-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px 16px;
  min-width: 0;
  overflow: hidden;
}

.postgresql-migration-page .architecture-section-hero-main {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.postgresql-migration-page .architecture-section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 0;
  line-height: 1.2;
}

.postgresql-migration-page .architecture-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #17324d;
  margin-bottom: 6px;
}

.postgresql-migration-page .architecture-section-description {
  font-size: 13px;
  line-height: 1.55;
  color: #4b647e;
  max-width: 680px;
}

.postgresql-migration-page .architecture-section-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef2f6;
  color: #000000;
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
  max-width: 100%;
  line-height: 1.4;
}

.postgresql-migration-page .architecture-analysis-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.postgresql-migration-page .architecture-analysis-tab {
  border: 1px solid #d7e3f4;
  background: #ffffff;
  color: #000000;
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.postgresql-migration-page .architecture-analysis-tab.active {
  background: #eef3f8;
  color: #000000;
  border-color: #bfd0eb;
}

.postgresql-migration-page .architecture-analysis-sidebar .architecture-analysis-tab {
  width: 100%;
}

.postgresql-migration-page .architecture-analysis-tab-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: inherit;
  margin-bottom: 4px;
}

.postgresql-migration-page .architecture-analysis-tab-meta {
  display: block;
  font-size: 11px;
  color: #222222;
}

.postgresql-migration-page .architecture-chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: #9cb6df #edf4ff;
}

.postgresql-migration-page .architecture-chart-scroll-root {
  overflow-x: scroll;
  overflow-y: auto;
  padding-bottom: 6px;
  width: 100%;
  max-height: 420px;
  padding-right: 8px;
}

.postgresql-migration-page .architecture-chart-scroll-root::-webkit-scrollbar {
  width: 10px;
  height: 12px;
}

.postgresql-migration-page .architecture-chart-scroll-root::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.postgresql-migration-page .architecture-chart-scroll-root::-webkit-scrollbar-thumb {
  background: #9cb6df;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.postgresql-migration-page .architecture-chart-scroll-root::-webkit-scrollbar-thumb:hover {
  background: #7899ce;
}

.postgresql-migration-page .architecture-chart-scroll-relationship {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 420px;
  padding-right: 8px;
}

.postgresql-migration-page .architecture-chart-scroll-relationship::-webkit-scrollbar {
  width: 10px;
  height: 12px;
}

.postgresql-migration-page .architecture-chart-scroll-relationship::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.postgresql-migration-page .architecture-chart-scroll-relationship::-webkit-scrollbar-thumb {
  background: #9cb6df;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.postgresql-migration-page .architecture-chart-scroll-relationship::-webkit-scrollbar-thumb:hover {
  background: #7899ce;
}

.postgresql-migration-page .architecture-chart-scroll::-webkit-scrollbar {
  height: 12px;
}

.postgresql-migration-page .architecture-chart-scroll::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.postgresql-migration-page .architecture-chart-scroll::-webkit-scrollbar-thumb {
  background: #9cb6df;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.postgresql-migration-page .architecture-chart-scroll::-webkit-scrollbar-thumb:hover {
  background: #7899ce;
}

.postgresql-migration-page .architecture-chart-table {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.8fr 0.8fr 0.8fr 0.9fr 1.35fr;
  grid-gap: 0;
  gap: 0;
  border: 1px solid #dde7f2;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  min-width: 920px;
}

.postgresql-migration-page .architecture-chart-table.overview {
  min-width: 920px;
}

.postgresql-migration-page .architecture-chart-table-root {
  width: -webkit-max-content;
  width: max-content;
}

.postgresql-migration-page .architecture-chart-table.relationship {
  grid-template-columns: 1.15fr 1.1fr 0.7fr 0.95fr 0.75fr 0.75fr 1fr 1fr 1.4fr;
  min-width: 1420px;
}

.postgresql-migration-page .architecture-chart-table.relationship.improved {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

@media (max-width: 1600px) {
  .postgresql-migration-page .architecture-analysis-layout {
    grid-template-columns: 1fr;
  }

  .postgresql-migration-page .architecture-analysis-sidebar {
    position: static;
  }

  .postgresql-migration-page .architecture-analysis-tabs {
    flex-direction: row;
  }

  .postgresql-migration-page .architecture-analysis-sidebar .architecture-analysis-tab {
    width: auto;
    min-width: 180px;
    flex: 1 1 180px;
  }

  .postgresql-migration-page .architecture-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .postgresql-migration-page .architecture-summary-grid-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .postgresql-migration-page .architecture-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .postgresql-migration-page .architecture-summary-grid-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .postgresql-migration-page .architecture-section-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .postgresql-migration-page .architecture-section-summary-grid-storage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .postgresql-migration-page .architecture-section-summary-card-wide {
    grid-column: span 2;
  }

  .postgresql-migration-page .architecture-section-hero {
    flex-direction: column;
  }

  .postgresql-migration-page .architecture-section-badge {
    align-self: flex-start;
  }

  .postgresql-migration-page .architecture-chart-table {
    min-width: 780px;
  }

  .postgresql-migration-page .architecture-chart-table.overview {
    min-width: 780px;
  }

  .postgresql-migration-page .architecture-chart-table.relationship {
    min-width: 1200px;
  }
}

@media (max-width: 960px) {
  .postgresql-migration-page .architecture-analysis-layout {
    grid-template-columns: 1fr;
  }

  .postgresql-migration-page .architecture-analysis-sidebar {
    position: static;
  }

  .postgresql-migration-page .architecture-analysis-tabs {
    flex-direction: row;
  }

  .postgresql-migration-page .architecture-analysis-sidebar .architecture-analysis-tab {
    width: auto;
  }

  .postgresql-migration-page .architecture-section-hero {
    flex-direction: column;
  }

  .postgresql-migration-page .architecture-section-badge {
    align-self: flex-start;
  }

  .postgresql-migration-page .architecture-section-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .postgresql-migration-page .architecture-section-summary-grid-storage {
    grid-template-columns: 1fr;
  }

  .postgresql-migration-page .architecture-summary-grid,
  .postgresql-migration-page .architecture-summary-grid-five {
    grid-template-columns: 1fr;
  }

  .postgresql-migration-page .architecture-section-summary-card-wide {
    grid-column: span 2;
  }
}

.postgresql-migration-page .architecture-chart-head {
  padding: 12px 10px;
  background: #f4f7fa;
  border-bottom: 1px solid #dde7f2;
  font-size: 12px;
  font-weight: 800;
  color: #000000;
}

.postgresql-migration-page .architecture-chart-cell {
  padding: 10px;
  border-bottom: 1px solid #edf2f7;
  font-size: 12px;
  color: #111111;
  background: #ffffff;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.postgresql-migration-page .architecture-chart-cell.strong {
  font-weight: 700;
  color: #000000;
}

.postgresql-migration-page .architecture-inline-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  background: #eef4fb;
  color: #36516b;
}

.postgresql-migration-page .architecture-inline-badge.embedded {
  background: #dcfce7;
  color: #15803d;
}

.postgresql-migration-page .architecture-inline-badge.separate {
  background: #fef3c7;
  color: #b45309;
}

.postgresql-migration-page .architecture-reference-list {
  width: max(100%, 1200px);
  min-width: 1200px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 8px;
}

.postgresql-migration-page .architecture-reference-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #9cb6df #edf4ff;
}

.postgresql-migration-page .architecture-reference-list::-webkit-scrollbar {
  width: 10px;
}

.postgresql-migration-page .architecture-reference-list::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.postgresql-migration-page .architecture-reference-list::-webkit-scrollbar-thumb {
  background: #9cb6df;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.postgresql-migration-page .architecture-reference-list::-webkit-scrollbar-thumb:hover {
  background: #7899ce;
}

.postgresql-migration-page .architecture-reference-scroll::-webkit-scrollbar {
  height: 12px;
}

.postgresql-migration-page .architecture-reference-scroll::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.postgresql-migration-page .architecture-reference-scroll::-webkit-scrollbar-thumb {
  background: #9cb6df;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.postgresql-migration-page .architecture-reference-scroll::-webkit-scrollbar-thumb:hover {
  background: #7899ce;
}

.postgresql-migration-page .architecture-card,
.postgresql-migration-page .architecture-detail-card,
.postgresql-migration-page .architecture-table-row {
  border: 1px solid #dde7f2;
  border-radius: 12px;
  padding: 12px;
  background: #fbfdff;
  margin-bottom: 10px;
  min-width: 0;
}

.postgresql-migration-page .architecture-table-row.embedded,
.postgresql-migration-page .architecture-detail-card.embedded,
.postgresql-migration-page .architecture-card.embedded-relationship {
  background: #f5fbf3;
  border-color: #cfe9d6;
}

.postgresql-migration-page .architecture-card.root {
  background: #f2f8ff;
}

.postgresql-migration-page .architecture-card.embedded {
  background: #f5fbf3;
}

.postgresql-migration-page .architecture-card.standalone {
  background: #fffaf2;
}

.postgresql-migration-page .architecture-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 6px;
}

.postgresql-migration-page .architecture-card-line,
.postgresql-migration-page .architecture-reason,
.postgresql-migration-page .architecture-table-main span,
.postgresql-migration-page .architecture-table-meta span {
  font-size: 12px;
  color: #111111;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.postgresql-migration-page .architecture-card-empty {
  font-size: 13px;
  color: #333333;
  padding: 8px 0;
}

.postgresql-migration-page .architecture-badge {
  display: inline-block;
  margin: 6px 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.postgresql-migration-page .architecture-badge.embedded {
  background: #16a34a;
}

.postgresql-migration-page .architecture-badge.separate {
  background: #d97706;
}

.postgresql-migration-page .architecture-details-section {
  margin-top: 18px;
  min-width: 0;
}

.postgresql-migration-page .architecture-section-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 14px;
  align-items: stretch;
}

.postgresql-migration-page .architecture-section-summary-grid-inline {
  margin-top: 2px;
  margin-bottom: 0;
}

.postgresql-migration-page .architecture-section-summary-grid-storage {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  align-items: stretch;
}

.postgresql-migration-page .architecture-section-summary-grid-inline .architecture-section-summary-card {
  padding: 10px 12px;
}

.postgresql-migration-page .architecture-section-summary-grid-inline .architecture-section-summary-card .label {
  margin-bottom: 4px;
}

.postgresql-migration-page .architecture-section-summary-grid-inline .architecture-section-summary-card strong {
  font-size: 16px;
}

.postgresql-migration-page .architecture-section-summary-grid-storage .architecture-section-summary-card {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.postgresql-migration-page .architecture-section-summary-grid-storage .architecture-section-summary-card .label {
  min-height: 34px;
}

.postgresql-migration-page .architecture-section-summary-card {
  border-radius: 12px;
  border: 1px solid #dbe7f3;
  background: #ffffff;
  padding: 12px 14px;
  min-height: 88px;
}

.postgresql-migration-page .architecture-section-summary-card .label {
  display: block;
  font-size: 12px;
  color: #111111;
  margin-bottom: 6px;
  line-height: 1.45;
}

.postgresql-migration-page .architecture-section-summary-card strong {
  font-size: 18px;
  color: #000000;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.postgresql-migration-page .pg-launch-summary-table-names-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
  max-height: 112px;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: flex-start;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0eb #edf4ff;
}

.postgresql-migration-page .pg-launch-summary-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
}

.postgresql-migration-page .pg-launch-summary-table-names-panel::-webkit-scrollbar {
  width: 10px;
}

.postgresql-migration-page .pg-launch-summary-table-names-panel::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.postgresql-migration-page .pg-launch-summary-table-names-panel::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.postgresql-migration-page .pg-launch-summary-table-names-panel::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.postgresql-migration-page .pg-launch-summary-table-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7f8ee;
  border: 1px solid #b9e5c7;
  color: #17603a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.postgresql-migration-page .pg-launch-summary-table-empty {
  font-size: 12px;
  color: #333333;
}

.postgresql-migration-page .pg-launch-summary-section-card .pg-launch-summary-table-names-panel,
.postgresql-migration-page .pg-launch-summary-section-card .pg-launch-summary-target-list {
  flex: 1 1 auto;
}

.postgresql-migration-page .architecture-section-summary-card-wide {
  grid-column: span 2;
}

.postgresql-migration-page .multi-parent-strategy-list {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0eb #edf4ff;
}

.postgresql-migration-page .multi-parent-strategy-list::-webkit-scrollbar {
  width: 10px;
}

.postgresql-migration-page .multi-parent-strategy-list::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.postgresql-migration-page .multi-parent-strategy-list::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.postgresql-migration-page .multi-parent-strategy-list::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.postgresql-migration-page .architecture-table-list {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.postgresql-migration-page .architecture-table-list.grouped {
  max-height: 260px;
}

.postgresql-migration-page .architecture-storage-sections {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.postgresql-migration-page .architecture-storage-group {
  border: 1px solid #dde7f2;
  border-radius: 14px;
  background: #f9fbfe;
  padding: 14px;
}

.postgresql-migration-page .architecture-table-main,
.postgresql-migration-page .architecture-table-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.postgresql-migration-page .architecture-table-main {
  margin-bottom: 6px;
}

.postgresql-migration-page .parent-table-checkbox-list,
.postgresql-migration-page .partition-preview-list,
.postgresql-migration-page .child-partition-preview-list,
.postgresql-migration-page .partition-collection-mapping-list,
.postgresql-migration-page .partition-target-section,
.postgresql-migration-page .child-preview-groups-scroll,
.postgresql-migration-page .relationship-decision-list,
.postgresql-migration-page .architecture-column,
.postgresql-migration-page .architecture-table-list,
.postgresql-migration-page .preflight-check-list {
  scrollbar-width: thin;
  scrollbar-color: #bfd0eb #edf4ff;
}

.postgresql-migration-page .child-partition-preview-list::-webkit-scrollbar,
.postgresql-migration-page .architecture-column::-webkit-scrollbar,
.postgresql-migration-page .architecture-table-list::-webkit-scrollbar,
.postgresql-migration-page .preflight-check-list::-webkit-scrollbar {
  width: 10px;
}

.postgresql-migration-page .child-partition-preview-list::-webkit-scrollbar-track,
.postgresql-migration-page .architecture-column::-webkit-scrollbar-track,
.postgresql-migration-page .architecture-table-list::-webkit-scrollbar-track,
.postgresql-migration-page .preflight-check-list::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.postgresql-migration-page .child-partition-preview-list::-webkit-scrollbar-thumb,
.postgresql-migration-page .architecture-column::-webkit-scrollbar-thumb,
.postgresql-migration-page .architecture-table-list::-webkit-scrollbar-thumb,
.postgresql-migration-page .preflight-check-list::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.postgresql-migration-page .child-partition-preview-list::-webkit-scrollbar-thumb:hover,
.postgresql-migration-page .architecture-column::-webkit-scrollbar-thumb:hover,
.postgresql-migration-page .architecture-table-list::-webkit-scrollbar-thumb:hover,
.postgresql-migration-page .preflight-check-list::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

/* Loading States */
.postgresql-migration-page .loading-container {
  text-align: center;
  padding: 50px;
}

.postgresql-migration-page .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.postgresql-migration-page .auth-required-message {
  text-align: center;
  padding: 50px;
  background: white;
  border-radius: 10px;
  box-shadow: none;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .postgresql-migration-page .pg-map-workspace {
    grid-template-columns: 1fr;
  }

  .postgresql-migration-page .pg-map-sidebar {
    position: static;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .postgresql-migration-page .pg-map-sidebar-menu {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .postgresql-migration-page .connection-panels,
  .postgresql-migration-page .migration-panels {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .postgresql-migration-page .performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .postgresql-migration-page .migration-summary-info {
    grid-template-columns: 1fr;
  }

  .postgresql-migration-page .architecture-summary-grid,
  .postgresql-migration-page .architecture-guidance-grid,
  .postgresql-migration-page .parent-wise-grid,
  .postgresql-migration-page .architecture-columns {
    grid-template-columns: 1fr;
  }

  .postgresql-migration-page .progress-details {
    grid-template-columns: 1fr;
  }

  .postgresql-migration-page .pg-map-chart-viewport {
    min-height: 460px;
  }

}

@media (max-width: 768px) {
  .postgresql-migration-page .pg-map-sidebar {
    padding: 14px 12px;
  }

  .postgresql-migration-page .pg-map-chart-legend-pill {
    font-size: 11px;
    padding: 6px 9px;
  }

  .postgresql-migration-page .pg-map-sidebar-menu {
    grid-template-columns: 1fr;
  }

  .postgresql-migration-page .architecture-chart-table,
  .postgresql-migration-page .architecture-chart-table.overview,
  .postgresql-migration-page .architecture-chart-table.relationship {
    min-width: 720px;
  }

  .postgresql-migration-page .architecture-section-summary-grid {
    grid-template-columns: 1fr;
  }

  .postgresql-migration-page .architecture-section-summary-card-wide {
    grid-column: span 1;
  }

  .postgresql-migration-page .pg-map-menu-item {
    padding: 10px;
  }

  .postgresql-migration-page .pg-map-menu-title {
    font-size: 13px;
  }

  .postgresql-migration-page .pg-map-menu-meta {
    font-size: 11px;
  }

  .postgresql-migration-page .performance-grid {
    grid-template-columns: 1fr;
  }

  .postgresql-migration-page .migration-container {
    padding: 10px;
  }
  
  .postgresql-migration-page .migration-button {
    min-width: auto;
    width: 100%;
  }
  
  .postgresql-migration-page .connection-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .postgresql-migration-page .panel-header {
    padding: 12px 14px;
  }

  .postgresql-migration-page .panel-header h3 {
    font-size: 16px;
  }

  .postgresql-migration-page .manual-selection,
  .postgresql-migration-page .same-as-source-config,
  .postgresql-migration-page .connection-form {
    padding: 14px;
  }

  .postgresql-migration-page .child-preview-list {
    gap: 4px;
  }

  .postgresql-migration-page .parent-table-select {
    min-height: 40px;
    font-size: 13px;
    padding: 9px 10px;
  }

  .postgresql-migration-page .parent-table-checkbox-list {
    min-height: 160px;
  }

  .postgresql-migration-page .parent-table-checkbox-item .table-name {
    font-size: 13px;
  }

  .postgresql-migration-page .pg-map-launch-controls {
    padding: 16px;
  }

  .postgresql-migration-page .pg-launch-summary-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .postgresql-migration-page .pg-launch-summary-secondary-sections {
    grid-template-columns: 1fr;
  }

  .postgresql-migration-page .pg-map-chart-controls {
    align-items: stretch;
  }

  .postgresql-migration-page .pg-map-chart-view-modes,
  .postgresql-migration-page .pg-map-chart-toolbar {
    width: 100%;
  }

  .postgresql-migration-page .pg-map-chart-toolbar {
    justify-content: flex-start;
  }

  .postgresql-migration-page .pg-map-chart-select {
    width: 100%;
  }

}

@media (max-width: 480px) {
  .postgresql-migration-page .pg-launch-summary-metrics-grid {
    grid-template-columns: 1fr;
  }

  .postgresql-migration-page .migration-container {
    padding: 8px;
  }

  .postgresql-migration-page .panel-header h3 {
    font-size: 14px;
  }

  .postgresql-migration-page .form-group label {
    font-size: 13px;
  }

  .postgresql-migration-page .form-group input:not([type="checkbox"]),
  .postgresql-migration-page .form-group select {
    font-size: 13px;
    padding: 9px 10px;
  }

  .postgresql-migration-page .selection-summary {
    font-size: 12px;
    padding: 8px;
  }

  .postgresql-migration-page .connect-button,
  .postgresql-migration-page .disconnect-button,
  .postgresql-migration-page .migration-button {
    font-size: 13px;
    padding: 10px 12px;
  }

  .postgresql-migration-page .pg-map-performance-section {
    padding: 14px;
  }
}

/* PostgreSQLMigrationDashboard.css */

.postgresql-dashboard-page {
  --pg-bg: #edf2f7;
  --pg-surface: #ffffff;
  --pg-border: #dce4f0;
  --pg-text: #23344d;
  --pg-muted: #6a7a8d;
  --pg-primary: #1d4ed8;
  --pg-success: #047857;
  --pg-warning: #b45309;
  --pg-danger: #b91c1c;
  --pg-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.postgresql-dashboard-page .migration-dashboard {
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow: visible;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--pg-text);
  line-height: 1.45;
}

.postgresql-dashboard-page .migration-dashboard h1,
.postgresql-dashboard-page .migration-dashboard h2,
.postgresql-dashboard-page .migration-dashboard h3,
.postgresql-dashboard-page .migration-dashboard h4,
.postgresql-dashboard-page .migration-dashboard h5,
.postgresql-dashboard-page .migration-dashboard h6 {
  color: var(--pg-text);
  letter-spacing: 0.01em;
}

.postgresql-dashboard-page .migration-dashboard button,
.postgresql-dashboard-page .migration-dashboard input,
.postgresql-dashboard-page .migration-dashboard select,
.postgresql-dashboard-page .migration-dashboard textarea {
  font: inherit;
}

.postgresql-dashboard-page .dashboard-container {
  min-height: 100%;
  height: auto;
  overflow: visible;
  padding: 24px;
  background: transparent;
}

.postgresql-dashboard-page .connection-health-section {
  margin-bottom: 24px;
}

.postgresql-dashboard-page .connection-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.postgresql-dashboard-page .connection-health-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--pg-border);
  box-shadow: var(--pg-shadow);
}

.postgresql-dashboard-page .connection-health-card.up {
  border-top: 4px solid #10b981;
}

.postgresql-dashboard-page .connection-health-card.down {
  border-top: 4px solid #ef4444;
}

.postgresql-dashboard-page .connection-health-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.postgresql-dashboard-page .connection-health-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--pg-text);
}

.postgresql-dashboard-page .connection-health-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.postgresql-dashboard-page .connection-health-pill.up {
  background: #dcfce7;
  color: #166534;
}

.postgresql-dashboard-page .connection-health-pill.down {
  background: #fee2e2;
  color: #b91c1c;
}

.postgresql-dashboard-page .connection-health-meta {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  color: #5b6b82;
  font-size: 13px;
}

/* Connection Banner */
.postgresql-dashboard-page .connection-banner {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.postgresql-dashboard-page .banner-icon {
  font-size: 18px;
}

.postgresql-dashboard-page .connection-banner.info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

/* Header */
.postgresql-dashboard-page .dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--pg-shadow);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #3b82f6;
}

.postgresql-dashboard-page .header-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--pg-text);
  margin: 0 0 4px 0;
}

.postgresql-dashboard-page .migration-id {
  font-size: 14px;
  color: #6b7280;
  font-family: monospace;
}

.postgresql-dashboard-page .header-status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.postgresql-dashboard-page .status-badge {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.postgresql-dashboard-page .status-badge.pending {
  background: #fef3c7;
  color: #d97706;
}

.postgresql-dashboard-page .status-badge.connected {
  background: #dbeafe;
  color: #2563eb;
}

.postgresql-dashboard-page .status-badge.running {
  background: #dcfce7;
  color: #16a34a;
}

.postgresql-dashboard-page .status-badge.completed {
  background: #dcfce7;
  color: #16a34a;
}

.postgresql-dashboard-page .status-badge.error {
  background: #fee2e2;
  color: #dc2626;
}

.postgresql-dashboard-page .connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
}

.postgresql-dashboard-page .connection-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.postgresql-dashboard-page .connection-dot.connected {
  background: #10b981;
}

.postgresql-dashboard-page .connection-dot.disconnected {
  background: #ef4444;
}

.postgresql-dashboard-page .dashboard-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 24px;
}

.postgresql-dashboard-page .dashboard-summary-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.postgresql-dashboard-page .dashboard-summary-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.postgresql-dashboard-page .dashboard-summary-value {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

/* ============================================
   Info Cards - UPDATED FOR 2 COLUMN LAYOUT
   ============================================ */
.postgresql-dashboard-page .info-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 24px;
  align-items: stretch;
}

.postgresql-dashboard-page .info-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--pg-shadow);
  border: 1px solid var(--pg-border);
  border-top: 4px solid;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.postgresql-dashboard-page .info-card.source-card {
  border-top-color: #1d4ed8;
}

.postgresql-dashboard-page .info-card.target-card {
  border-top-color: #0f766e;
}

.postgresql-dashboard-page .info-card.checkpoint-card {
  border-top-color: #7c3aed;
}

.postgresql-dashboard-page .info-card.storage-layout-card {
  grid-column: 1 / -1;
}

.postgresql-dashboard-page .info-card.storage-layout-card .card-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none !important;
  box-shadow: none;
}

.postgresql-dashboard-page .info-card.storage-layout-card .card-body {
  border-top: none !important;
  padding-top: 0;
  box-shadow: none;
}

.postgresql-dashboard-page .info-card.storage-layout-card .stats-cards-grid,
.postgresql-dashboard-page .info-card.storage-layout-card .storage-layout-stats-grid {
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none;
}

.postgresql-dashboard-page .card-header {
  font-weight: 700;
  color: var(--pg-text);
  margin-bottom: 16px;
  font-size: 18px;
  letter-spacing: 0.01em;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8eef6;
}

.postgresql-dashboard-page .card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

/* ============================================
   Info Chip List - UPDATED WITH SCROLLBAR FIX
   ============================================ */
.postgresql-dashboard-page .info-chip-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 12px 8px 0;
  margin-top: 4px;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}

.postgresql-dashboard-page .info-chip-list::-webkit-scrollbar {
  width: 8px;
}

.postgresql-dashboard-page .info-chip-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.postgresql-dashboard-page .info-chip-list::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
  border: 2px solid #f1f5f9;
}

.postgresql-dashboard-page .info-chip-list::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.postgresql-dashboard-page .info-chip {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  color: #111111;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  flex-shrink: 0;
}

.postgresql-dashboard-page .info-chip.info-chip-target {
  color: #111111;
}

.postgresql-dashboard-page .info-chip:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.postgresql-dashboard-page .info-empty {
  color: var(--pg-muted);
  font-size: 13px;
}

.postgresql-dashboard-page .section-subtitle {
  color: #64748b;
  font-size: 13px;
  margin: 4px 0 14px;
  line-height: 1.5;
}

.postgresql-dashboard-page .storage-layout-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 14px;
}

.postgresql-dashboard-page .storage-layout-metric {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.postgresql-dashboard-page .storage-layout-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.postgresql-dashboard-page .storage-layout-value {
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
}

.postgresql-dashboard-page .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.postgresql-dashboard-page .info-row .label {
  color: var(--pg-muted);
  font-size: 13px;
  font-weight: 600;
}

.postgresql-dashboard-page .info-row .value {
  color: var(--pg-text);
  font-weight: 600;
  font-size: 14px;
}

.postgresql-dashboard-page .storage-layout-card-body {
  gap: 16px;
}

.postgresql-dashboard-page .storage-layout-stats-grid .stat-card {
  min-height: 108px;
}

.postgresql-dashboard-page .stat-card.storage-layout-embedded {
  border-top-color: #10b981;
}

.postgresql-dashboard-page .stat-card.storage-layout-same-collection {
  border-top-color: #d97706;
}

.postgresql-dashboard-page .stat-card.storage-layout-parent-embedded {
  border-top-color: #3b82f6;
}

.postgresql-dashboard-page .stat-card.storage-layout-parent-reference {
  border-top-color: #8b5cf6;
}

.postgresql-dashboard-page .storage-layout-parent-block {
  border-top: none;
  padding-top: 8px;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
}

.postgresql-dashboard-page .storage-layout-parent-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.postgresql-dashboard-page .storage-layout-parent-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--pg-text);
}

.postgresql-dashboard-page .storage-layout-parent-note {
  font-size: 12px;
  color: var(--pg-muted);
  line-height: 1.4;
  text-align: right;
}

.postgresql-dashboard-page .storage-layout-parent-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.postgresql-dashboard-page .storage-layout-parent-scroll::-webkit-scrollbar {
  height: 10px;
}

.postgresql-dashboard-page .storage-layout-parent-scroll::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 999px;
}

.postgresql-dashboard-page .storage-layout-parent-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid #f8fafc;
}

.postgresql-dashboard-page .storage-layout-parent-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.postgresql-dashboard-page .storage-layout-parent-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.postgresql-dashboard-page .storage-layout-parent-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 280px;
  flex: 0 0 280px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dbe4f0;
}

.postgresql-dashboard-page .storage-layout-parent-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--pg-text);
  word-break: break-word;
}

.postgresql-dashboard-page .storage-layout-parent-counts {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  white-space: nowrap;
}

.postgresql-dashboard-page .target-mapping-section {
  margin-bottom: 24px;
}

.postgresql-dashboard-page .target-mapping-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pg-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--pg-shadow);
}

.postgresql-dashboard-page .target-mapping-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.postgresql-dashboard-page .target-mapping-table th,
.postgresql-dashboard-page .target-mapping-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  font-size: 13px;
}

.postgresql-dashboard-page .target-mapping-table th {
  background: #f8fafc;
  color: #22345f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.postgresql-dashboard-page .execution-plan-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #1e40af;
}

.postgresql-dashboard-page .execution-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0eb #edf4ff;
}

.postgresql-dashboard-page .execution-plan-grid::-webkit-scrollbar {
  width: 10px;
}

.postgresql-dashboard-page .execution-plan-grid::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.postgresql-dashboard-page .execution-plan-grid::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.postgresql-dashboard-page .execution-plan-grid::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.postgresql-dashboard-page .execution-plan-card {
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 14px 16px;
}

.postgresql-dashboard-page .execution-plan-card.embedded {
  background: linear-gradient(180deg, #f7fef9 0%, #ffffff 100%);
  border-color: #cce7d4;
}

.postgresql-dashboard-page .execution-plan-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.postgresql-dashboard-page .execution-plan-title {
  font-weight: 700;
  color: var(--pg-text);
  word-break: break-word;
}

.postgresql-dashboard-page .execution-plan-status {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #e5e7eb;
  color: #374151;
  white-space: nowrap;
}

.postgresql-dashboard-page .execution-plan-status.started,
.postgresql-dashboard-page .execution-plan-status.running {
  background: #dcfce7;
  color: #166534;
}

.postgresql-dashboard-page .execution-plan-status.completed {
  background: #dbeafe;
  color: #1d4ed8;
}

.postgresql-dashboard-page .execution-plan-status.failed,
.postgresql-dashboard-page .execution-plan-status.cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.postgresql-dashboard-page .execution-plan-status.embedded {
  background: #ecfdf5;
  color: #047857;
}

.postgresql-dashboard-page .execution-plan-role {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 6px;
}

.postgresql-dashboard-page .execution-plan-line {
  font-size: 13px;
  color: var(--pg-muted);
  margin-bottom: 4px;
  word-break: break-word;
}

.postgresql-dashboard-page .execution-plan-note {
  margin-top: 8px;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

/* Realtime Count Section */
.postgresql-dashboard-page .realtime-count-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #0f766e;
}

.postgresql-dashboard-page .realtime-count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.postgresql-dashboard-page .realtime-count-card {
  background: #f9fafb;
  border-radius: 6px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  min-width: 0;
}

.postgresql-dashboard-page .realtime-count-label {
  color: var(--pg-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.postgresql-dashboard-page .realtime-count-value {
  color: var(--pg-text);
  font-weight: 700;
  font-size: 18px;
  word-break: break-word;
}

.postgresql-dashboard-page .realtime-count-value.mono {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

.postgresql-dashboard-page .realtime-count-value.status.connected,
.postgresql-dashboard-page .realtime-count-value.status.running,
.postgresql-dashboard-page .realtime-count-value.status.completed {
  color: #047857;
}

.postgresql-dashboard-page .realtime-count-value.status.disconnected,
.postgresql-dashboard-page .realtime-count-value.status.failed,
.postgresql-dashboard-page .realtime-count-value.status.cancelled {
  color: #b91c1c;
}

.postgresql-dashboard-page .table-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  max-height: none;
  overflow: visible;
}

.postgresql-dashboard-page .table-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #f3f4f6;
  border-radius: 4px;
  font-size: 12px;
  color: #4b5563;
}

/* Progress Section */
.postgresql-dashboard-page .progress-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 24px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.08);
  border: 1px solid #a7f3d0;
  border-top: 4px solid #059669;
}

.postgresql-dashboard-page .progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.postgresql-dashboard-page .progress-title {
  font-weight: 700;
  color: var(--pg-text);
  font-size: 16px;
}

.postgresql-dashboard-page .progress-percent {
  font-size: 22px;
  font-weight: 800;
  color: #059669;
}

.postgresql-dashboard-page .progress-bar-container {
  width: 100%;
  height: 20px;
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid #d1fae5;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
}

.postgresql-dashboard-page .progress-fill {
  height: 100%;
  background: #059669;
  border-radius: 999px;
  transition: width 0.5s ease;
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.4);
}

.postgresql-dashboard-page .progress-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 16px;
  gap: 16px;
}

.postgresql-dashboard-page .progress-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.postgresql-dashboard-page .progress-stat .stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.postgresql-dashboard-page .progress-stat .stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

/* Migration Statistics Section */
.postgresql-dashboard-page .migration-stats-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #3b82f6;
}

.postgresql-dashboard-page .section-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
  margin: 0 0 16px 0;
}

.postgresql-dashboard-page .stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.postgresql-dashboard-page .stat-card {
  background: white;
  border-radius: 8px;
  padding: 14px 16px 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  border-top: 4px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 84px;
  gap: 8px;
}

.postgresql-dashboard-page .stat-card.total-documents {
  border-top-color: #3b82f6;
}

.postgresql-dashboard-page .stat-card.migrated,
.postgresql-dashboard-page .stat-card.migrated-documents {
  border-top-color: #10b981;
}

.postgresql-dashboard-page .stat-card.remaining,
.postgresql-dashboard-page .stat-card.missing-documents {
  border-top-color: #f59e0b;
}

.postgresql-dashboard-page .stat-card.duplicate-documents {
  border-top-color: #ef4444;
}

.postgresql-dashboard-page .stat-card.index-documents {
  border-top-color: #0891b2;
}

.postgresql-dashboard-page .stat-card.index-skipped-documents {
  border-top-color: #b45309;
}

.postgresql-dashboard-page .stat-card.index-failed-documents {
  border-top-color: #dc2626;
}

.postgresql-dashboard-page .stat-card.index-pending-documents {
  border-top-color: #6b7280;
}

.postgresql-dashboard-page .stat-card.success-rate {
  border-top-color: #8b5cf6;
}

.postgresql-dashboard-page .stat-card.speed {
  border-top-color: #4b5563;
}

.postgresql-dashboard-page .stat-content {
  text-align: center;
}

.postgresql-dashboard-page .stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
  word-break: break-word;
  width: 100%;
  text-align: center;
}

.postgresql-dashboard-page .stat-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  max-width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.postgresql-dashboard-page .index-matrix-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #0f766e;
}

.postgresql-dashboard-page .index-matrix-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
}

.postgresql-dashboard-page .index-matrix-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.postgresql-dashboard-page .index-matrix-table thead th {
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #dbe4f0;
  white-space: nowrap;
}

.postgresql-dashboard-page .index-matrix-table tbody td {
  font-size: 12px;
  color: #1f2937;
  padding: 9px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.postgresql-dashboard-page .index-matrix-table tbody tr:last-child td {
  border-bottom: none;
}

.postgresql-dashboard-page .index-matrix-schema {
  font-weight: 700;
  color: #0f172a;
}

.postgresql-dashboard-page .index-matrix-count {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.postgresql-dashboard-page .index-matrix-sample {
  color: #334155;
  min-width: 220px;
  line-height: 1.45;
}

.postgresql-dashboard-page .validation-summary-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #0f766e;
}

.postgresql-dashboard-page .validation-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.postgresql-dashboard-page .validation-summary-card {
  background: var(--pg-surface);
  border: 1px solid var(--pg-border);
  border-radius: 8px;
  padding: 14px;
}

.postgresql-dashboard-page .validation-label {
  color: var(--pg-muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.postgresql-dashboard-page .validation-value {
  color: var(--pg-text);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.postgresql-dashboard-page .validation-value.pass {
  color: var(--pg-success);
}

.postgresql-dashboard-page .validation-value.failed {
  color: var(--pg-danger);
}

.postgresql-dashboard-page .validation-sub {
  color: var(--pg-muted);
  font-size: 12px;
}

.postgresql-dashboard-page .production-readiness-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #7c3aed;
}

.postgresql-dashboard-page .readiness-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.postgresql-dashboard-page .readiness-badge.pass {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #86efac;
}

.postgresql-dashboard-page .readiness-badge.pending {
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
}

.postgresql-dashboard-page .readiness-badge.check {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.postgresql-dashboard-page .readiness-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  color: #475569;
  font-size: 13px;
}

.postgresql-dashboard-page .production-readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.postgresql-dashboard-page .production-readiness-card {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 12px;
}

.postgresql-dashboard-page .production-readiness-card.pass {
  border-left: 4px solid #10b981;
}

.postgresql-dashboard-page .production-readiness-card.pending {
  border-left: 4px solid #f59e0b;
}

.postgresql-dashboard-page .production-readiness-card.check {
  border-left: 4px solid #ef4444;
}

.postgresql-dashboard-page .readiness-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.postgresql-dashboard-page .readiness-card-title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}

.postgresql-dashboard-page .readiness-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}

.postgresql-dashboard-page .readiness-state.pass {
  color: #065f46;
  background: #d1fae5;
  border-color: #86efac;
}

.postgresql-dashboard-page .readiness-state.pending {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fdba74;
}

.postgresql-dashboard-page .readiness-state.check {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.postgresql-dashboard-page .readiness-card-detail {
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

/* CDC Section */
.postgresql-dashboard-page .cdc-section,
.postgresql-dashboard-page .cdc-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border-left: 1px solid #d1fae5;
  border-right: 1px solid #d1fae5;
  border-bottom: 1px solid #d1fae5;
  border-top: 4px solid #059669;
}

.postgresql-dashboard-page .cdc-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 14px;
  gap: 14px;
}

.postgresql-dashboard-page .cdc-stat-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border-top: 4px solid #059669;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100px;
  gap: 6px;
}

.postgresql-dashboard-page .cdc-stat-card.inserts   { border-top-color: #10b981; }
.postgresql-dashboard-page .cdc-stat-card.updates   { border-top-color: #f59e0b; }
.postgresql-dashboard-page .cdc-stat-card.deletes   { border-top-color: #ef4444; }
.postgresql-dashboard-page .cdc-stat-card.operations { border-top-color: #6366f1; }
.postgresql-dashboard-page .cdc-stat-card.chunked-docs { border-top-color: #0ea5e9; }
.postgresql-dashboard-page .cdc-stat-card.total-chunks { border-top-color: #8b5cf6; }

.postgresql-dashboard-page .cdc-stat-card-top-bar {
  display: none;
}

.postgresql-dashboard-page .cdc-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.postgresql-dashboard-page .cdc-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.postgresql-dashboard-page .last-operation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 6px;
}

.postgresql-dashboard-page .last-operation .label {
  font-size: 13px;
  color: #6b7280;
}

.postgresql-dashboard-page .operation-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.postgresql-dashboard-page .operation-badge.insert {
  background: #d1fae5;
  color: #059669;
}

.postgresql-dashboard-page .operation-badge.update {
  background: #fed7aa;
  color: #d97706;
}

.postgresql-dashboard-page .operation-badge.delete {
  background: #fee2e2;
  color: #dc2626;
}

.postgresql-dashboard-page .operation-table {
  font-weight: 500;
  color: #374151;
}

.postgresql-dashboard-page .operation-time {
  margin-left: auto;
  font-size: 12px;
  color: #9ca3af;
}

/* Tables Section */
.postgresql-dashboard-page .tables-section,
.postgresql-dashboard-page .tables-overview-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--pg-shadow);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #1d4ed8;
  position: relative;
}

.postgresql-dashboard-page .mapping-overview-section,
.postgresql-dashboard-page .connection-health-section,
.postgresql-dashboard-page .progress-section,
.postgresql-dashboard-page .migration-stats-section,
.postgresql-dashboard-page .index-matrix-section,
.postgresql-dashboard-page .cdc-panel,
.postgresql-dashboard-page .logs-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--pg-shadow);
  border: 1px solid var(--pg-border);
}

.postgresql-dashboard-page .mapping-overview-section {
  border-top: 4px solid #2563eb;
}

.postgresql-dashboard-page .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
  flex-wrap: wrap;
  gap: 12px;
}

.postgresql-dashboard-page .migration-dashboard .section-title,
.postgresql-dashboard-page .migration-dashboard .section-header h3 {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

.postgresql-dashboard-page .section-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.postgresql-dashboard-page .chart-toggle-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #1d4ed8;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
  transition: all 0.2s ease;
  min-width: 0;
  width: auto;
}

.postgresql-dashboard-page .chart-toggle-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  border-color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

.postgresql-dashboard-page .chart-toggle-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.postgresql-dashboard-page .chart-toggle-btn.inline {
  margin-left: 4px;
  padding: 5px 10px;
}

.postgresql-dashboard-page .table-summary,
.postgresql-dashboard-page .overview-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #6b7280;
}

.postgresql-dashboard-page .table-level-scroll {
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.postgresql-dashboard-page .table-level-scroll::-webkit-scrollbar {
  width: 10px;
}

.postgresql-dashboard-page .table-level-scroll::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 999px;
}

.postgresql-dashboard-page .table-level-scroll::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 999px;
}

.postgresql-dashboard-page .table-level-scroll::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

.postgresql-dashboard-page .tables-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.postgresql-dashboard-page .table-category {
  background: #f8fafc;
  border-radius: 6px;
  padding: 14px;
  border: 1px solid #e2e8f0;
}

.postgresql-dashboard-page .category-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pg-text);
  letter-spacing: 0.01em;
  margin: 0 0 16px 0;
}

.postgresql-dashboard-page .table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.postgresql-dashboard-page .table-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  border: 1px solid #dbe4f0;
  border-top: 4px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  min-height: 248px;
  display: flex;
  flex-direction: column;
}

.postgresql-dashboard-page .table-card:hover {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.postgresql-dashboard-page .table-card.parent {
  border-top-color: #1d4ed8;
}

.postgresql-dashboard-page .table-card.schema-card {
  border-top-color: #0f766e;
}

.postgresql-dashboard-page .table-card.child {
  border-top-color: #0f766e;
}

.postgresql-dashboard-page .table-card.embedded {
  border-top-color: #059669;
}

.postgresql-dashboard-page .table-card.same_collection_reference {
  border-top-color: #d97706;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 28%);
}

.postgresql-dashboard-page .table-card.grandchild {
  border-top-color: #0ea5e9;
}

.postgresql-dashboard-page .table-card.reference {
  border-top-color: #7c3aed;
}

.postgresql-dashboard-page .table-card.junction {
  border-top-color: #6b7280;
}

.postgresql-dashboard-page .table-card.selfref,
.postgresql-dashboard-page .table-card.selfRef {
  border-top-color: #8b5cf6;
}

.postgresql-dashboard-page .table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
}

.postgresql-dashboard-page .table-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--pg-text);
  flex-wrap: wrap;
}

.postgresql-dashboard-page .table-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--pg-text);
  letter-spacing: 0.01em;
}

.postgresql-dashboard-page .table-status-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.postgresql-dashboard-page .status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}

.postgresql-dashboard-page .status-chip.pass {
  color: #065f46;
  background: #d1fae5;
 
}

.postgresql-dashboard-page .status-chip.partial {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fb923c;
}

.postgresql-dashboard-page .status-chip.failed {
  color: #991b1b;
  background: #fee2e2;
  border-color: #f87171;
}

.postgresql-dashboard-page .status-chip.not-applicable {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #60a5fa;
}

.postgresql-dashboard-page .expand-icon {
  font-size: 12px;
  color: #6b7280;
}

.postgresql-dashboard-page .table-badge {
  font-size: 11px;
  padding: 3px 9px;
  background: #e0ecff;
  color: #1d4ed8;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.postgresql-dashboard-page .table-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1;
}

.postgresql-dashboard-page .breakdown-subsection + .breakdown-subsection {
  margin-top: 18px;
}

.postgresql-dashboard-page .breakdown-subsection-head {
  margin-bottom: 12px;
}

.postgresql-dashboard-page .breakdown-subsection-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--pg-text);
  letter-spacing: 0.01em;
}

.postgresql-dashboard-page .breakdown-subsection-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--pg-muted);
  line-height: 1.45;
}

.postgresql-dashboard-page .table-flow-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.postgresql-dashboard-page .table-card.embedded .table-flow-chip {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.postgresql-dashboard-page .table-card.same_collection_reference .table-flow-chip {
  background: #fff7ed;
  color: #b45309;
  border-color: #fdba74;
}

.postgresql-dashboard-page .table-card.child .table-flow-chip,
.postgresql-dashboard-page .table-card.grandchild .table-flow-chip {
  background: #f0fdfa;
  color: #0f766e;
  border-color: #99f6e4;
}

.postgresql-dashboard-page .table-card.reference .table-flow-chip,
.postgresql-dashboard-page .table-card.junction .table-flow-chip,
.postgresql-dashboard-page .table-card.selfref .table-flow-chip,
.postgresql-dashboard-page .table-card.selfRef .table-flow-chip {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.postgresql-dashboard-page .table-flow-description {
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--pg-muted);
  line-height: 1.45;
}

.postgresql-dashboard-page .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 2px 0;
}

.postgresql-dashboard-page .stat-row .label {
  color: var(--pg-muted);
  font-size: 12px;
  font-weight: 600;
}

.postgresql-dashboard-page .stat-row .value {
  font-weight: 700;
  color: var(--pg-text);
  font-size: 13px;
  text-align: right;
  max-width: 62%;
  overflow-wrap: anywhere;
}

.postgresql-dashboard-page .table-parent-link {
  color: #1d4ed8;
}

.postgresql-dashboard-page .table-status-text.running {
  color: #0f766e;
}

.postgresql-dashboard-page .table-status-text.completed {
  color: #047857;
}

.postgresql-dashboard-page .table-status-text.waiting {
  color: #9a3412;
}

.postgresql-dashboard-page .table-status-text.queued {
  color: #1d4ed8;
}

.postgresql-dashboard-page .table-status-text.failed {
  color: #b91c1c;
}

.postgresql-dashboard-page .details-btn {
  margin-top: auto;
  padding: 6px 14px;
  background: #1d4ed8;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  align-self: stretch;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.postgresql-dashboard-page .details-btn:hover {
  background: #1e40af;
}

.postgresql-dashboard-page .pg-dash-relation-overlay {
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 16px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #e2e8f0;
}

.postgresql-dashboard-page .pg-dash-relation-popup {
  position: relative;
  inset: auto;
  transform: none;
  width: min(1560px, calc(100vw - 32px));
  max-width: 100%;
  height: min(760px, calc(100vh - 120px));
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.18);
  border: 1px solid #d4d9e0;
  z-index: 3001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.postgresql-dashboard-page .pg-dash-relation-overlay::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.postgresql-dashboard-page .pg-dash-relation-overlay::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 999px;
}

.postgresql-dashboard-page .pg-dash-relation-overlay::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
}

.postgresql-dashboard-page .pg-dash-relation-overlay::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.postgresql-dashboard-page .pg-dash-relation-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  min-height: 60px;
  border-bottom: 1px solid #d4d9e0;
  background: #ffffff;
  color: #111111;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 5;
}

.postgresql-dashboard-page .pg-dash-relation-header-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.postgresql-dashboard-page .pg-dash-relation-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
}

.postgresql-dashboard-page .pg-dash-relation-header .close-btn {
  display: none;
}

.postgresql-dashboard-page .pg-dash-relation-close-btn {
  min-width: 88px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.postgresql-dashboard-page .pg-dash-relation-close-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.postgresql-dashboard-page .pg-dash-relation-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  position: -webkit-sticky;
  position: sticky;
  top: 60px;
  z-index: 4;
}

.postgresql-dashboard-page .pg-dash-relation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.postgresql-dashboard-page .pg-dash-relation-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  font-size: 12px;
}

.postgresql-dashboard-page .pg-dash-relation-summary-pill strong {
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.postgresql-dashboard-page .pg-dash-relation-summary-pill em {
  color: #555555;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.postgresql-dashboard-page .pg-dash-relation-summary-pill-wide {
  max-width: 320px;
}

.postgresql-dashboard-page .pg-dash-relation-summary-pill-wide em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.postgresql-dashboard-page .pg-dash-relation-view-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.postgresql-dashboard-page .pg-dash-relation-view-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.postgresql-dashboard-page .pg-dash-relation-table-select {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  min-width: 160px;
}

.postgresql-dashboard-page .pg-dash-relation-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.postgresql-dashboard-page .pg-dash-relation-control-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.postgresql-dashboard-page .pg-dash-relation-control-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.postgresql-dashboard-page .pg-dash-relation-control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.postgresql-dashboard-page .pg-dash-relation-control-btn.is-active {
  background: #222222;
  border-color: #222222;
  color: #ffffff;
}

.postgresql-dashboard-page .pg-dash-relation-zoom-label {
  min-width: 44px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.postgresql-dashboard-page .pg-dash-relation-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  position: -webkit-sticky;
  position: sticky;
  top: 116px;
  z-index: 3;
}

.postgresql-dashboard-page .pg-dash-relation-legend-title {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-right: 4px;
  text-transform: uppercase;
}

.postgresql-dashboard-page .pg-dash-relation-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  color: #374151;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 600;
}

.postgresql-dashboard-page .pg-dash-relation-legend-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #888888;
}

.postgresql-dashboard-page .pg-dash-relation-legend-chip.root::before { background: #3b82f6; }
.postgresql-dashboard-page .pg-dash-relation-legend-chip.child::before { background: #22c55e; }
.postgresql-dashboard-page .pg-dash-relation-legend-chip.embedded::before { background: #f97316; }
.postgresql-dashboard-page .pg-dash-relation-legend-chip.grandchild::before { background: #a855f7; }
.postgresql-dashboard-page .pg-dash-relation-legend-chip.reference::before { background: #0ea5e9; }

.postgresql-dashboard-page .pg-dash-relation-scroll {
  flex: 1 1;
  overflow: auto;
  padding: 0;
  background: #f9fafb;
  background-image: radial-gradient(circle, #d4d9e0 1px, transparent 1px);
  background-size: 24px 24px;
  cursor: grab;
  -webkit-user-select: none;
          user-select: none;
  position: relative;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}

.postgresql-dashboard-page .pg-dash-relation-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.postgresql-dashboard-page .pg-dash-relation-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.postgresql-dashboard-page .pg-dash-relation-scroll::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

.postgresql-dashboard-page .pg-dash-relation-scroll::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.postgresql-dashboard-page .pg-dash-relation-scroll::-webkit-scrollbar-corner {
  background: #f1f5f9;
}

.postgresql-dashboard-page .pg-dash-relation-scroll.dragging {
  cursor: grabbing;
}

.postgresql-dashboard-page .pg-dash-relation-canvas {
  will-change: transform;
}

.postgresql-dashboard-page .pg-dash-relation-preview-image {
  display: block;
  max-width: none;
  -webkit-user-select: none;
          user-select: none;
  pointer-events: none;
}

.postgresql-dashboard-page .pg-dash-relation-empty-state {
  padding: 18px 20px;
}

.postgresql-dashboard-page .pg-dash-relation-size-proxy {
  position: relative;
  flex-shrink: 0;
}

.postgresql-dashboard-page .relation-chart-lines {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.postgresql-dashboard-page .relation-link {
  fill: none;
  stroke: rgba(0, 0, 0, 0.28);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.postgresql-dashboard-page .relation-level-chip {
  position: absolute;
  display: flex;
  align-items: center;
  min-height: 36px;
  background: #ffffff;
  color: #000000;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.postgresql-dashboard-page .relation-node {
  position: absolute;
  border-radius: 20px;
  border: 1px solid #d7e1ec;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

.postgresql-dashboard-page .relation-node.synthetic {
  border-style: dashed;
  opacity: 0.88;
}

.postgresql-dashboard-page .relation-node.parent {
  background: #ffffff;
}

.postgresql-dashboard-page .relation-node.child,
.postgresql-dashboard-page .relation-node.embedded {
  background: #ffffff;
}

.postgresql-dashboard-page .relation-node.grandchild {
  background: #ffffff;
}

.postgresql-dashboard-page .relation-node.reference,
.postgresql-dashboard-page .relation-node.junction,
.postgresql-dashboard-page .relation-node.selfRef {
  background: #ffffff;
}

.postgresql-dashboard-page .relation-node-badge-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.postgresql-dashboard-page .relation-node-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #000000;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.postgresql-dashboard-page .relation-node-badge-muted {
  color: #000000;
  background: #f8fafc;
}

.postgresql-dashboard-page .relation-node-table-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
}

.postgresql-dashboard-page .relation-node-table-block span {
  color: #000000;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.postgresql-dashboard-page .relation-node-table-block strong {
  color: #000000;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.postgresql-dashboard-page .relation-node-title {
  color: #000000;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.22;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.postgresql-dashboard-page .relation-node-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.postgresql-dashboard-page .relation-node-subtitle strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #000000;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.postgresql-dashboard-page .relation-node-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #000000;
  font-size: 12px;
  font-weight: 800;
}

.postgresql-dashboard-page .relation-node-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.postgresql-dashboard-page .relation-node-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #14b8a6 100%);
}

.postgresql-dashboard-page .relation-node-progress-label {
  text-align: right;
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.postgresql-dashboard-page .metadata-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.35);
  -webkit-backdrop-filter: blur(1px);
          backdrop-filter: blur(1px);
}

.postgresql-dashboard-page .table-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 2px;
}

.postgresql-dashboard-page .table-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
  transition: width 0.25s ease;
}

/* Metadata Popup - Side by Side Layout */
.postgresql-dashboard-page .metadata-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1220px;
  max-width: 96vw;
  max-height: 66vh;
  overflow-y: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.28);
  z-index: 1000;
  border: 1px solid #cbd5e1;
  border-top: 6px solid #1d4ed8;
}

.postgresql-dashboard-page .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}

.postgresql-dashboard-page .popup-header-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.postgresql-dashboard-page .popup-header h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.postgresql-dashboard-page .popup-subtitle {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.postgresql-dashboard-page .close-btn {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #1d4ed8;
  padding: 0;
}

.postgresql-dashboard-page .close-btn:hover {
  background: #dbeafe;
  color: #1e40af;
}

.postgresql-dashboard-page .popup-content {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.postgresql-dashboard-page .popup-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 12px;
  order: -1;
}

.postgresql-dashboard-page .popup-kpi-card {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.postgresql-dashboard-page .popup-kpi-label {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
}

.postgresql-dashboard-page .popup-kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.postgresql-dashboard-page .popup-kpi-value.pass {
  color: #047857;
}

.postgresql-dashboard-page .popup-kpi-value.partial {
  color: #b45309;
}

/* Side by Side Container */
.postgresql-dashboard-page .popup-row-container {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  order: -2;
}

.postgresql-dashboard-page .popup-column {
  flex: 1 1;
  min-width: 0; /* Prevents overflow */
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.postgresql-dashboard-page .popup-column h5 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid;
}

.postgresql-dashboard-page .popup-column h5.source-title {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

.postgresql-dashboard-page .popup-column h5.target-title {
  color: #0f766e;
  border-bottom-color: #0f766e;
}

.postgresql-dashboard-page .popup-row {
  display: flex;
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px dotted #f3f4f6;
}

.postgresql-dashboard-page .popup-row.full-width {
  flex-direction: column;
  gap: 2px;
}

.postgresql-dashboard-page .popup-row .label {
  width: 128px;
  color: var(--pg-muted);
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.postgresql-dashboard-page .popup-row .value {
  flex: 1 1;
  color: var(--pg-text);
  font-weight: 600;
  word-break: break-word;
  font-size: 13px;
}

.postgresql-dashboard-page .popup-row .value.status-text.pass {
  color: #047857;
}

.postgresql-dashboard-page .popup-row .value.status-text.partial {
  color: #b45309;
}

.postgresql-dashboard-page .popup-row .value.status-text.failed {
  color: #b91c1c;
}

.postgresql-dashboard-page .popup-row .value.status-text.not-applicable {
  color: #1d4ed8;
}

.postgresql-dashboard-page .popup-row.full-width .label {
  width: 100%;
  margin-bottom: 2px;
}

/* Migration Details Section */
.postgresql-dashboard-page .migration-details-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  margin-top: 6px;
}

.postgresql-dashboard-page .storage-guide-section {
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #ffffff 100%);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0 4px 0;
}

.postgresql-dashboard-page .storage-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.postgresql-dashboard-page .storage-guide-section h5 {
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
}

.postgresql-dashboard-page .storage-guide-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #34d399;
}

.postgresql-dashboard-page .storage-guide-summary {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
}

.postgresql-dashboard-page .storage-guide-note {
  margin: 0 0 12px 0;
  font-size: 11px;
  color: #475569;
  line-height: 1.45;
}

.postgresql-dashboard-page .storage-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.postgresql-dashboard-page .storage-guide-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px;
  min-height: 72px;
}

.postgresql-dashboard-page .storage-guide-card-title {
  font-size: 11px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.postgresql-dashboard-page .storage-guide-card-value {
  font-size: 12px;
  color: #0f172a;
  line-height: 1.45;
}

.postgresql-dashboard-page .storage-flow-section {
  margin-top: 12px;
}

.postgresql-dashboard-page .storage-flow-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.postgresql-dashboard-page .storage-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.postgresql-dashboard-page .storage-flow-card {
  border: 1px solid #cbd5e1;
  border-left-width: 4px;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

.postgresql-dashboard-page .storage-flow-card.info {
  border-left-color: #3b82f6;
}

.postgresql-dashboard-page .storage-flow-card.pass {
  border-left-color: #10b981;
}

.postgresql-dashboard-page .storage-flow-card.partial {
  border-left-color: #f59e0b;
}

.postgresql-dashboard-page .storage-flow-card.failed {
  border-left-color: #ef4444;
}

.postgresql-dashboard-page .storage-flow-card-title {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.postgresql-dashboard-page .storage-flow-card-value {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.postgresql-dashboard-page .storage-flow-card-detail {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
}

.postgresql-dashboard-page .migration-details-section h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1d4ed8;
  margin: 0 0 12px 0;
}

.postgresql-dashboard-page .migration-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 4px 12px;
  gap: 4px 12px;
}

.postgresql-dashboard-page .migration-details-grid .popup-row {
  border-bottom: none;
  padding: 4px 0;
}

.postgresql-dashboard-page .index-detail-row {
  border: 1px solid #e2e8f0;
  border-left-width: 4px;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  background: #f8fafc;
}

.postgresql-dashboard-page .index-detail-row.pass {
  border-left-color: #10b981;
}

.postgresql-dashboard-page .index-detail-row.partial {
  border-left-color: #f59e0b;
}

.postgresql-dashboard-page .index-detail-row.failed {
  border-left-color: #ef4444;
}

.postgresql-dashboard-page .popup-index-details .value {
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Logs Section */
.postgresql-dashboard-page .logs-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #475569;
}

.postgresql-dashboard-page .log-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.postgresql-dashboard-page .log-filters {
  display: flex;
  gap: 6px;
}

.postgresql-dashboard-page .filter-btn {
  padding: 6px 14px;
  border: 1px solid #d9e2ef;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.postgresql-dashboard-page .filter-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.postgresql-dashboard-page .filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.postgresql-dashboard-page .auto-scroll-btn {
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 12px;
  background: #ffffff;
  color: var(--pg-text);
  font-weight: 600;
  cursor: pointer;
}

.postgresql-dashboard-page .auto-scroll-btn:hover {
  background: #f8fafc;
}

.postgresql-dashboard-page .migration-matrix-download-btn {
  border-color: #bfdbfe;
  color: #1e40af;
  background: #eff6ff;
  font-weight: 600;
}

.postgresql-dashboard-page .migration-matrix-download-btn:hover:not(:disabled) {
  background: #dbeafe;
}

.postgresql-dashboard-page .pg-logs-container {
  height: 360px;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  margin-top: 14px;
}

.postgresql-dashboard-page .pg-log-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: #ffffff;
  color: #1e293b;
  border-left: 3px solid transparent;
  margin: 4px 8px;
  border-radius: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.postgresql-dashboard-page .pg-log-entry:last-child {
  border-bottom: none;
}

.postgresql-dashboard-page .pg-log-entry:hover {
  background: #f8fafc;
}

.postgresql-dashboard-page .pg-log-entry.pg-log-success { border-left-color: #10b981; }
.postgresql-dashboard-page .pg-log-entry.pg-log-error   { border-left-color: #ef4444; }
.postgresql-dashboard-page .pg-log-entry.pg-log-warning  { border-left-color: #f59e0b; }
.postgresql-dashboard-page .pg-log-entry.pg-log-info     { border-left-color: #3b82f6; }

.postgresql-dashboard-page .pg-log-time {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 68px;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.postgresql-dashboard-page .pg-log-content {
  flex: 1 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.postgresql-dashboard-page .pg-log-title {
  color: #1e293b;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.postgresql-dashboard-page .pg-log-message {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.postgresql-dashboard-page .pg-log-source {
  display: none;
}

.postgresql-dashboard-page .pg-no-logs {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--pg-muted);
  font-size: 13px;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .postgresql-dashboard-page .dashboard-container {
    padding: 16px;
  }

  .postgresql-dashboard-page .stats-cards-grid,
  .postgresql-dashboard-page .progress-stats,
  .postgresql-dashboard-page .cdc-stats-grid,
  .postgresql-dashboard-page .realtime-count-grid,
  .postgresql-dashboard-page .validation-summary-grid,
  .postgresql-dashboard-page .production-readiness-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .postgresql-dashboard-page .popup-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Keep 2 columns on medium screens, stack only on smaller */
  .postgresql-dashboard-page .info-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .postgresql-dashboard-page .pg-dash-relation-popup {
    width: 96vw;
  }
}

@media (max-width: 900px) {
  .postgresql-dashboard-page .dashboard-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .postgresql-dashboard-page .info-cards-grid {
    grid-template-columns: 1fr;
  }

  .postgresql-dashboard-page .storage-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .postgresql-dashboard-page .info-chip-list {
    max-height: 200px;
  }
}

@media (max-width: 992px) {
  .postgresql-dashboard-page .dashboard-container {
    padding: 12px;
  }

  .postgresql-dashboard-page .table-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .postgresql-dashboard-page .popup-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .postgresql-dashboard-page .pg-dash-relation-overlay {
    padding: 104px 10px 16px;
  }

  .postgresql-dashboard-page .dashboard-container {
    padding: 10px;
  }

  .postgresql-dashboard-page .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .postgresql-dashboard-page .stats-cards-grid,
  .postgresql-dashboard-page .progress-stats,
  .postgresql-dashboard-page .cdc-stats-grid,
  .postgresql-dashboard-page .realtime-count-grid,
  .postgresql-dashboard-page .validation-summary-grid,
  .postgresql-dashboard-page .production-readiness-grid {
    grid-template-columns: 1fr;
  }

  .postgresql-dashboard-page .dashboard-summary-strip {
    grid-template-columns: 1fr;
  }

  .postgresql-dashboard-page .storage-layout-grid {
    grid-template-columns: 1fr;
  }

  .postgresql-dashboard-page .info-cards-grid {
    grid-template-columns: 1fr;
  }

  .postgresql-dashboard-page .info-chip-list {
    max-height: 180px;
  }

  .postgresql-dashboard-page .overview-summary {
    flex-direction: column;
    gap: 6px;
  }

  .postgresql-dashboard-page .section-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .postgresql-dashboard-page .log-controls {
    flex-direction: column;
  }

  .postgresql-dashboard-page .metadata-popup {
    width: 95%;
  }

  .postgresql-dashboard-page .popup-kpi-strip {
    grid-template-columns: 1fr;
  }
  
  .postgresql-dashboard-page .popup-row-container {
    flex-direction: column;
    gap: 16px;
  }

  .postgresql-dashboard-page .pg-dash-relation-popup {
    width: 96vw;
    height: auto;
    max-height: calc(100vh - 120px);
  }

  .postgresql-dashboard-page .pg-dash-relation-toolbar {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .postgresql-dashboard-page .pg-dash-relation-summary {
    gap: 8px;
    flex-direction: column;
  }

  .postgresql-dashboard-page .pg-dash-relation-summary-pill-wide {
    max-width: 100%;
  }

  .postgresql-dashboard-page .pg-dash-relation-view-switch {
    width: 100%;
    justify-content: flex-start;
  }

  .postgresql-dashboard-page .pg-dash-relation-table-select {
    min-width: 100%;
  }

  .postgresql-dashboard-page .pg-dash-relation-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .postgresql-dashboard-page .pg-dash-relation-close-btn {
    min-width: 76px;
    height: 34px;
    padding: 0 12px;
  }

  .postgresql-dashboard-page .relation-level-chip {
    max-width: calc(100% - 24px);
  }
  
  .postgresql-dashboard-page .migration-details-grid {
    grid-template-columns: 1fr;
  }

  .postgresql-dashboard-page .storage-guide-grid {
    grid-template-columns: 1fr;
  }

  .postgresql-dashboard-page .storage-flow-grid {
    grid-template-columns: 1fr;
  }

  .postgresql-dashboard-page .table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .postgresql-dashboard-page .table-status-badges {
    justify-content: flex-start;
  }

  .postgresql-dashboard-page .table-level-scroll {
    max-height: 420px;
  }

  .postgresql-dashboard-page .pg-logs-container {
    height: 260px;
    max-height: 260px;
  }

  .postgresql-dashboard-page .pg-log-time {
    min-width: auto;
  }
}

@media (max-width: 576px) {
  .postgresql-dashboard-page .section-title {
    font-size: 16px;
  }

  .postgresql-dashboard-page .stat-card {
    padding: 12px;
  }

  .postgresql-dashboard-page .stat-value {
    font-size: 22px;
  }

  .postgresql-dashboard-page .table-grid {
    grid-template-columns: 1fr;
  }

  .postgresql-dashboard-page .table-card {
    min-height: 178px;
    padding: 10px;
  }

  .postgresql-dashboard-page .metadata-popup {
    max-width: 98vw;
    max-height: 78vh;
  }

  .postgresql-dashboard-page .popup-content {
    padding: 10px;
  }

  .postgresql-dashboard-page .popup-header {
    padding: 10px 12px;
  }

  .postgresql-dashboard-page .popup-header h4 {
    font-size: 15px;
  }

  .postgresql-dashboard-page .storage-guide-section {
    padding: 10px;
  }

  .postgresql-dashboard-page .logs-section {
    padding: 12px;
  }

  .postgresql-dashboard-page .log-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .postgresql-dashboard-page .chart-toggle-btn:not(.inline) {
    width: 100%;
    text-align: center;
  }

  .postgresql-dashboard-page .pg-dash-relation-control-btn {
    padding: 6px 8px;
    font-size: 10px;
  }

  .postgresql-dashboard-page .pg-dash-relation-scroll {
    padding: 10px;
  }
}

@media (max-width: 420px) {
  .postgresql-dashboard-page .dashboard-container {
    padding: 8px;
  }

  .postgresql-dashboard-page .progress-percent {
    font-size: 18px;
  }

  .postgresql-dashboard-page .popup-row .label,
  .postgresql-dashboard-page .popup-row .value {
    font-size: 11px;
  }

  .postgresql-dashboard-page .index-detail-row {
    font-size: 11px;
    padding: 7px 8px;
  }
}

.postgres-cdc-control {
  width: 100%;
  min-width: 0;
  color: #20304f;
  line-height: 1.5;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.postgres-cdc-control * {
  box-sizing: border-box;
}

.postgres-cdc-card,
.postgres-cdc-section,
.postgres-cdc-grid {
  min-width: 0;
}

.postgres-cdc-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.postgres-cdc-table-wrap.is-scrollable {
  max-height: 220px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border: 1px solid #dbe2f2;
  border-radius: 8px;
  background: #ffffff;
}

.postgres-cdc-table-wrap.is-scrollable thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f7ff;
}

.postgres-cdc-table-wrap table {
  min-width: 680px;
}

.postgres-cdc-log-wrap {
  width: 100%;
}

.postgres-cdc-migration-selector-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dbe5f8;
  border-radius: 10px;
  background: #f8fbff;
}

.postgres-cdc-migration-selector-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #27426f;
  margin-bottom: 8px;
}

.postgres-cdc-migration-selector-row {
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
}

.postgres-cdc-migration-selector {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #c8d6f0;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2e53;
  font-size: 0.9rem;
  font-weight: 600;
}

.postgres-cdc-migration-selector-help {
  font-size: 0.84rem;
  color: #4d5b7a;
  line-height: 1.5;
}

.postgres-cdc-stat-card {
  border-top: 4px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.postgres-cdc-stat-card.compact {
  padding: 10px 12px;
}

.postgres-cdc-stat-card.neutral {
  border-top-color: #7c8aa0;
  background: #ffffff;
}

.postgres-cdc-stat-card.success {
  border-top-color: #34a853;
  background: #ffffff;
}

.postgres-cdc-stat-card.info {
  border-top-color: #4a90e2;
  background: #ffffff;
}

.postgres-cdc-stat-card.warning {
  border-top-color: #d99a2b;
  background: #ffffff;
}

.postgres-cdc-stat-card.danger {
  border-top-color: #d96b6b;
  background: #ffffff;
}

.postgres-cdc-stat-card.accent {
  border-top-color: #7a6ee6;
  background: #ffffff;
}

.postgres-cdc-subcard {
  border: 1px solid #dbe5f8;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.postgres-cdc-action-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.postgres-cdc-connection-health-section {
  background: #ffffff;
  border: 1px solid #d7dcea;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.postgres-cdc-connection-health-header-row {
  margin-bottom: 12px;
}

.postgres-cdc-connection-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.postgres-cdc-connection-health-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #d7dcea;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.postgres-cdc-connection-health-card.up {
  border-top: 4px solid #10b981;
}

.postgres-cdc-connection-health-card.down {
  border-top: 4px solid #ef4444;
}

.postgres-cdc-connection-health-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.postgres-cdc-connection-health-name {
  font-size: 18px;
  font-weight: 800;
  color: #12213f;
}

.postgres-cdc-connection-health-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.postgres-cdc-connection-health-pill.up {
  background: #dcfce7;
  color: #166534;
}

.postgres-cdc-connection-health-pill.down {
  background: #fee2e2;
  color: #b91c1c;
}

.postgres-cdc-connection-health-meta {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  color: #5b6980;
  font-size: 13px;
}

.postgres-cdc-info-card {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.postgres-cdc-table-card {
  background: #ffffff;
}

.postgres-cdc-card-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.postgres-cdc-page-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.postgres-cdc-section-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.postgres-cdc-status-pill {
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.postgres-cdc-stat-label,
.postgres-cdc-subsection-title,
.postgres-cdc-refresh-text {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.postgres-cdc-stat-value {
  margin-top: 4px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.postgres-cdc-meta-text,
.postgres-cdc-empty-state {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
}

.postgres-cdc-metric-label {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.postgres-cdc-metric-value {
  margin-top: 3px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.postgres-cdc-table {
  font-size: 0.88rem;
  line-height: 1.45;
}

.postgres-cdc-table th {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .postgres-cdc-migration-selector-row {
    grid-template-columns: 1fr;
  }
}

.postgres-cdc-table td {
  font-size: 0.88rem;
}

.postgres-cdc-error-text {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .postgres-cdc-card {
    padding: 14px !important;
  }

  .postgres-cdc-totals-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .postgres-cdc-forward-stats,
  .postgres-cdc-reverse-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .postgres-cdc-page-title {
    font-size: 1.18rem;
  }
}

@media (max-width: 768px) {
  .postgres-cdc-control {
    gap: 12px !important;
  }

  .postgres-cdc-card {
    padding: 12px !important;
  }

  .postgres-cdc-header-row,
  .postgres-cdc-section-header {
    flex-direction: column;
    align-items: stretch !important;
  }

  .postgres-cdc-section button {
    width: 100%;
  }

  .postgres-cdc-totals-grid,
  .postgres-cdc-forward-stats,
  .postgres-cdc-reverse-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .postgres-cdc-table-wrap table {
    min-width: 560px;
  }

  .postgres-cdc-page-title {
    font-size: 1.08rem;
  }

  .postgres-cdc-stat-value {
    font-size: 1.2rem;
  }

  .postgres-cdc-metric-value {
    font-size: 1.05rem;
  }

  .postgres-cdc-meta-text,
  .postgres-cdc-empty-state,
  .postgres-cdc-refresh-text,
  .postgres-cdc-error-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 520px) {
  .postgres-cdc-card {
    padding: 10px !important;
  }

  .postgres-cdc-totals-grid,
  .postgres-cdc-forward-stats,
  .postgres-cdc-reverse-stats {
    grid-template-columns: 1fr !important;
  }

  .postgres-cdc-table-wrap table {
    min-width: 500px;
  }
}

@media (max-width: 420px) {
  .postgres-cdc-table-wrap table {
    min-width: 420px;
  }

  .postgres-cdc-table-wrap th,
  .postgres-cdc-table-wrap td {
    font-size: 11px !important;
    padding: 5px !important;
  }
}

/* ============================================================
   PostgreSQL.css
   Fully scoped to .pg-wizard-* — zero leakage to/from other
   components.  Do NOT import PipelineWizard.css in Postgresql.js.
   ============================================================ */

/* ── Outer card ── */
.pg-wizard-container {
  max-width: 1400px;
  margin: 32px auto;
  padding: 28px 28px 24px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.10);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  box-sizing: border-box;
}

/* ── Top progress bar — hidden ── */
.pg-wizard-container > .pg-wizard-progress-bar {
  display: none;
}

/* ══════════════════════════════════════════════
   STEP INDICATORS
   ══════════════════════════════════════════════ */
.pg-wizard-container > .pg-wizard-step-indicators {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 4px;
  overflow: visible;
}

/* Each step column */
.pg-wizard-container .pg-wizard-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1;
  position: relative;
  min-width: 0;
  overflow: visible;
}

/* ── Connector line ──
   left: calc(50% + 21px)  → starts exactly at the RIGHT edge of this circle
   width: calc(100% - 42px) → ends exactly at the LEFT edge of the NEXT circle
   This keeps the line strictly BETWEEN circles, never crossing through them.  */
.pg-wizard-container .pg-wizard-step-connector {
  position: absolute;
  top: 20px;                      /* (42px - 2px) / 2 — centers 2px line in circle */
  left: calc(50% + 21px);         /* right edge of this circle */
  width: calc(100% - 42px);       /* gap between this circle's right edge and next circle's left edge */
  height: 2px;
  background: #d1d5db;
  z-index: 0;
  transition: background 0.4s ease;
}

.pg-wizard-container .pg-wizard-step-indicator.completed .pg-wizard-step-connector {
  background: #10b981;
}

/* ── Circle ── */
.pg-wizard-container .pg-wizard-step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin: 0;          /* no extra offset — keeps connector perfectly centred */
}

/* Active (current) step */
.pg-wizard-container .pg-wizard-step-circle.active {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-color: #16a34a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.40);
}

/* Completed step */
.pg-wizard-container .pg-wizard-step-circle.completed {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* ── Label below each circle ── */
.pg-wizard-container .pg-wizard-step-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  padding: 0 6px;
  width: 100%;
  min-width: 0;
}

.pg-wizard-container .pg-wizard-step-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #000000;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  transition: color 0.3s ease;
}

/* Active label */
.pg-wizard-container .pg-wizard-step-indicator.current .pg-wizard-step-title {
  color: #15803d;
  font-weight: 700;
}

/* Completed label */
.pg-wizard-container .pg-wizard-step-indicator.completed .pg-wizard-step-title {
  color: #059669;
}

/* Step description (usually empty — kept for structure) */
.pg-wizard-container .pg-wizard-step-description {
  display: none;
}

/* ══════════════════════════════════════════════
   STEP CONTENT PANEL
   ══════════════════════════════════════════════ */
.pg-wizard-container .pg-wizard-step-content {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.05);
}

.pg-wizard-container .pg-wizard-step-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.pg-wizard-container .pg-wizard-step-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #000000;
}

.pg-wizard-container .pg-wizard-step-description-text {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* ── Per-step wrappers ── */
.pg-wizard-container .pg-wizard-connection-step,
.pg-wizard-container .pg-wizard-couchbase-step,
.pg-wizard-container .pg-wizard-db-analysis-step,
.pg-wizard-container .pg-wizard-migration-settings-step,
.pg-wizard-container .pg-wizard-dashboard-step,
.pg-wizard-container .pg-wizard-cdc-step,
.pg-wizard-container .pg-wizard-db-analysis-container,
.pg-wizard-container .pg-wizard-migration-settings-container,
.pg-wizard-container .pg-wizard-dashboard-wrapper {
  width: 100%;
}

/* ── Connection error banner ── */
.pg-wizard-container .pg-wizard-connection-error {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 13px;
}

/* ── Migration summary card ── */
.pg-wizard-container .pg-wizard-migration-summary-card {
  margin-top: 20px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

/* ══════════════════════════════════════════════
   NAVIGATION BUTTONS
   ══════════════════════════════════════════════ */
.pg-wizard-container > .pg-wizard-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}

.pg-wizard-container .pg-wizard-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

/* Back */
.pg-wizard-container .pg-wizard-nav-button.back {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}
.pg-wizard-container .pg-wizard-nav-button.back:hover:not(:disabled) {
  background: #e5e7eb;
}

/* Next */
.pg-wizard-container .pg-wizard-nav-button.next {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}
.pg-wizard-container .pg-wizard-nav-button.next:hover:not(:disabled) {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45);
  transform: translateY(-1px);
}

/* Finish */
.pg-wizard-container .pg-wizard-nav-button.finish {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.pg-wizard-container .pg-wizard-nav-button.finish:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

/* Disabled state for all nav buttons */
.pg-wizard-container .pg-wizard-nav-button:disabled {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
  border-color: #e5e7eb !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .pg-wizard-container {
    margin: 16px;
    padding: 16px;
  }

  .pg-wizard-container .pg-wizard-step-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .pg-wizard-container .pg-wizard-step-connector {
    top: 16px;
  }

  .pg-wizard-container .pg-wizard-step-title {
    font-size: 10px;
  }

  .pg-wizard-container .pg-wizard-step-content {
    padding: 16px;
  }

  .pg-wizard-container > .pg-wizard-navigation {
    gap: 10px;
  }

  .pg-wizard-container .pg-wizard-nav-button {
    padding: 9px 14px;
    font-size: 13px;
  }
}

/* ============================================================
   AlloyDBConnection.css
   Scoped to .alloydb-connection-page only.
   ============================================================ */

.alloydb-connection-page {
  width: 100%;
  box-sizing: border-box;
}

.alloydb-connection-page .alloydb-connection-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 32px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  color: #1a2744;
  line-height: 1.5;
}

.alloydb-connection-page .alloydb-connection-form {
  margin-bottom: 24px;
  width: 100%;
}

.alloydb-connection-page .alloydb-form-group {
  margin-bottom: 20px;
  width: 100%;
}

.alloydb-connection-page .alloydb-form-label {
  display: block;
  margin-bottom: 8px;
  color: #1a2744;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.alloydb-connection-page .alloydb-required {
  color: #d32f2f;
  margin-left: 2px;
}

.alloydb-connection-page .alloydb-form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid #c5cae9;
  border-radius: 8px;
  background-color: #f8f9fe;
  color: #1a2744;
  transition: all 0.2s ease;
  box-sizing: border-box;
  display: block;
  font-family: inherit;
}

.alloydb-connection-page .alloydb-form-input:focus {
  outline: none;
  border-color: #1a73e8;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.alloydb-connection-page .alloydb-form-input.error {
  border-color: #d32f2f;
  background-color: #fff5f5;
}

.alloydb-connection-page .alloydb-form-input:disabled {
  background-color: #f1f3f5;
  color: #868e96;
  cursor: not-allowed;
}

.alloydb-connection-page .alloydb-error-message {
  margin-top: 6px;
  color: #d32f2f;
  font-size: 12px;
  font-weight: 500;
}

.alloydb-connection-page .alloydb-form-hint {
  margin-top: 5px;
  color: #6b7280;
  font-size: 11px;
  font-style: italic;
}

.alloydb-connection-page .alloydb-button-container {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  width: 100%;
  align-items: center;
}

.alloydb-connection-page .alloydb-connect-button {
  flex: 0 0 220px;
  width: 220px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(26, 115, 232, 0.3);
  min-height: 46px;
  white-space: nowrap;
}

.alloydb-connection-page .alloydb-connect-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #1557b0 0%, #0a3576 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

.alloydb-connection-page .alloydb-connect-button.connecting {
  background: linear-gradient(135deg, #ff922b 0%, #fd7e14 100%);
  box-shadow: 0 2px 10px rgba(255, 146, 43, 0.3);
}

.alloydb-connection-page .alloydb-connect-button.connected {
  background: linear-gradient(135deg, #34a853 0%, #1e7e34 100%);
  box-shadow: 0 2px 10px rgba(52, 168, 83, 0.3);
}

.alloydb-connection-page .alloydb-connect-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alloydb-connection-page .alloydb-reset-button {
  flex: 0 0 140px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #d32f2f;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  white-space: nowrap;
}

.alloydb-connection-page .alloydb-reset-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
}

.alloydb-connection-page .alloydb-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: alloydb-conn-spin 1s ease-in-out infinite;
  flex-shrink: 0;
}

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

.alloydb-connection-page .alloydb-connection-inline-message {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.alloydb-connection-page .alloydb-connection-inline-message.success {
  color: #1e7e34;
}

.alloydb-connection-page .alloydb-connection-inline-message.error {
  color: #d32f2f;
}

@media (max-width: 768px) {
  .alloydb-connection-page .alloydb-connection-container {
    padding: 20px;
  }

  .alloydb-connection-page .alloydb-button-container {
    flex-direction: column;
    align-items: stretch;
  }

  .alloydb-connection-page .alloydb-connect-button,
  .alloydb-connection-page .alloydb-reset-button {
    flex: none;
    width: 100%;
  }

}

.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 32px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #23344d;
  line-height: 1.5;
}

.alloydb-couchbase-connection-page .connection-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6edf5;
  width: 100%;
}

.alloydb-couchbase-connection-page .connection-header h2 {
  margin: 0 0 12px 0;
  color: #23344d;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.alloydb-couchbase-connection-page .connection-header .subtitle {
  margin: 0;
  color: #6a7a8d;
  font-size: 17px;
  font-weight: 400;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-connection-form {
  width: 100%;
  margin: 0 0 2rem 0;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-form-group {
  width: 100%;
  margin-bottom: 24px;
  border: none;
  border-bottom: none;
  box-shadow: none;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-form-label {
  display: block;
  margin-bottom: 10px;
  color: #23344d;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-form-input {
  width: 100%;
  min-height: 46px;
  padding: 14px 18px;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background-color: #f8f9fa;
  color: #23344d;
  font-size: 15px;
  box-sizing: border-box;
  display: block;
  transition: all 0.2s ease;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-form-input:focus {
  outline: none;
  border-color: #4dabf7;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
}

.alloydb-couchbase-connection-page .alloydb-couchbase-form-input.error {
  border-color: #fa5252;
  background-color: #fff5f5;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-form-input:disabled {
  background-color: #f1f3f5;
  color: #868e96;
  cursor: not-allowed;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-error-message {
  margin-top: 8px;
  color: #fa5252;
  font-size: 13px;
  font-weight: 500;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-button-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  width: 100%;
}

.alloydb-couchbase-connection-page .connect-button {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(51, 154, 240, 0.3);
  min-height: 48px;
  white-space: nowrap;
  text-align: center;
}

.alloydb-couchbase-connection-page .connect-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #339af0 0%, #228be6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 154, 240, 0.4);
}

.alloydb-couchbase-connection-page .connect-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alloydb-couchbase-connection-page .connect-button.connecting {
  background: linear-gradient(135deg, #ff922b 0%, #fd7e14 100%);
}

.alloydb-couchbase-connection-page .connect-button.connected {
  background: linear-gradient(135deg, #40c057 0%, #2b8a3e 100%);
}

.alloydb-couchbase-connection-page .alloydb-couchbase-reset-button {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
  min-height: 48px;
  white-space: nowrap;
  text-align: center;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-reset-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.28);
}


.alloydb-couchbase-connection-page .alloydb-couchbase-reset-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alloydb-couchbase-connection-page .spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: alloydb-couchbase-spin 1s ease-in-out infinite;
}

.alloydb-couchbase-connection-page .checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  position: relative;
}

.alloydb-couchbase-connection-page .checkmark::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid #2b8a3e;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

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

.alloydb-couchbase-connection-page .connection-success {
  margin-top: 2rem;
}

.alloydb-couchbase-connection-page .alert {
  margin: 24px 0;
  padding: 20px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
  width: 100%;
}

.alloydb-couchbase-connection-page .alert-success {
  background-color: #ebfbee;
  border: 2px solid #40c057;
  color: #2b8a3e;
}

.alloydb-couchbase-connection-page .alert-error {
  background-color: #fff5f5;
  border: 2px solid #fa5252;
  color: #c92a2a;
}

.alloydb-couchbase-connection-page .connection-inline-message {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.alloydb-couchbase-connection-page .connection-inline-message.success {
  color: #15803d;
  font-weight: 600;
}

.alloydb-couchbase-connection-page .connection-inline-message.error {
  color: #dc2626;
  font-weight: 600;
}

.alloydb-couchbase-connection-page .success-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.alloydb-couchbase-connection-page .success-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.alloydb-couchbase-connection-page .success-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.alloydb-couchbase-connection-page .success-details {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alloydb-couchbase-connection-page .success-details p {
  margin: 0.5rem 0;
}

.alloydb-couchbase-connection-page .success-message {
  font-style: italic;
  color: #d1c4e9;
}

.alloydb-couchbase-connection-page .proceed-button {
  background: white;
  color: #667eea;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}

.alloydb-couchbase-connection-page .proceed-button:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.alloydb-couchbase-connection-page .connection-error {
  margin-top: 2rem;
}

.alloydb-couchbase-connection-page .error-card {
  background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(245, 101, 101, 0.3);
}

.alloydb-couchbase-connection-page .error-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.alloydb-couchbase-connection-page .error-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.alloydb-couchbase-connection-page .error-details {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
}

.alloydb-couchbase-connection-page .error-details p {
  margin: 0.5rem 0;
}

.alloydb-couchbase-connection-page .info-note {
  background: #f0f9ff;
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  margin: 1rem 0;
}

.alloydb-couchbase-connection-page .connection-status-summary {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.alloydb-couchbase-connection-page .status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.alloydb-couchbase-connection-page .status-badge.connected {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.alloydb-couchbase-connection-page .status-badge.disconnected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.alloydb-couchbase-connection-page .connection-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1.5rem;
}

.alloydb-couchbase-connection-page .summary-item {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.alloydb-couchbase-connection-page .step-intro {
  margin-bottom: 2rem;
}

.alloydb-couchbase-connection-page .step-intro p {
  margin-bottom: 0.5rem;
}

/* Navigation connection status */
.alloydb-couchbase-connection-page .connection-status {
  background: #10b981;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 1rem;
}

/* Make sure the Couchbase connection component fits */
.alloydb-couchbase-connection-page .couchbase-connection-step .alloydb-couchbase-connection-container {
  max-width: 100%;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .buckets-container,
.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .scopes-container,
.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .collections-container {
  margin-top: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .buckets-container h3,
.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .scopes-container h3,
.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .collections-container h3 {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #1f2e53;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .buckets-list,
.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .scopes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .bucket-item,
.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .scope-item {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #1e293b;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .bucket-item.active,
.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .scope-item.active {
  border-color: #1d4ed8;
  background: #dbeafe;
  color: #1e40af;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .collections-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .collection-item {
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  padding: 8px 10px;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .loading-indicator {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .spinner.small {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .alloydb-couchbase-connection-page .couchbase-connection-step .alloydb-couchbase-connection-container {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .alloydb-couchbase-connection-page .alloydb-couchbase-button-container {
    flex-direction: column;
    align-items: stretch;
    margin-top: 30px;
  }

  .alloydb-couchbase-connection-page .connect-button,
  .alloydb-couchbase-connection-page .alloydb-couchbase-reset-button {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .alloydb-couchbase-connection-page .connection-summary {
    grid-template-columns: 1fr;
  }
  
  .alloydb-couchbase-connection-page .connection-status-summary {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .alloydb-couchbase-connection-page .success-card,
  .alloydb-couchbase-connection-page .error-card {
    padding: 1rem;
  }

  .alloydb-couchbase-connection-page .couchbase-connection-step .alloydb-couchbase-connection-container {
    padding: 1rem;
    border-radius: 10px;
  }

  .alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .buckets-list,
  .alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .scopes-list {
    gap: 6px;
  }

  .alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .bucket-item,
  .alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .scope-item {
    font-size: 11px;
    padding: 6px 10px;
  }

  .alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .collections-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .alloydb-couchbase-connection-page .alloydb-couchbase-form-input {
    padding: 12px 16px;
    font-size: 15px;
  }

  .alloydb-couchbase-connection-page .couchbase-connection-step .alloydb-couchbase-connection-container {
    padding: 0.75rem;
  }

  .alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .buckets-container h3,
  .alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .scopes-container h3,
  .alloydb-couchbase-connection-page .alloydb-couchbase-connection-container .collections-container h3 {
    font-size: 14px;
  }
}

/* AlloyDBMetadata.css */

.alloydb-metadata-page .alloydb-metadata-container {
  --alloydb-metadata-accent: #16a34a;
  --alloydb-metadata-accent-soft: #15803d;
  --alloydb-metadata-surface: #ffffff;
  --alloydb-metadata-soft: #f8fafc;
  --alloydb-metadata-border: #e5e7eb;
  --alloydb-metadata-text: #111827;
  --alloydb-metadata-muted: #6b7280;
  background-color: #ffffff;
  padding: 8px 0;
  margin: 0;
}

.alloydb-metadata-page .metadata-section-header {
  padding-bottom: 0;
  margin-bottom: 22px;
  border-bottom: none;
}

.alloydb-metadata-page .metadata-section-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--alloydb-metadata-text);
  letter-spacing: 0.01em;
}

.alloydb-metadata-page .metadata-section-card {
  background: #ffffff;
  border: 1px solid var(--alloydb-metadata-border);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: none;
}

.alloydb-metadata-page .metadata-summary-section {
  margin-top: 0;
}

.alloydb-metadata-page .metadata-box-down {
  opacity: 0.88;
}

.alloydb-metadata-page .metadata-inline-status {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e6edf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--alloydb-metadata-muted);
  font-size: 14px;
  flex-wrap: wrap;
}

.alloydb-metadata-page .metadata-connection-health-section {
  margin-bottom: 24px;
}

.alloydb-metadata-page .metadata-connection-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.alloydb-metadata-page .metadata-connection-health-card {
  padding: 16px 18px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid var(--alloydb-metadata-border);
  box-shadow: none;
}

.alloydb-metadata-page .metadata-connection-health-card.up {
  border-top: 4px solid #10b981;
}

.alloydb-metadata-page .metadata-connection-health-card.down {
  border-top: 4px solid #ef4444;
}

.alloydb-metadata-page .metadata-connection-health-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.alloydb-metadata-page .metadata-connection-health-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--alloydb-metadata-text);
}

.alloydb-metadata-page .metadata-connection-health-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.alloydb-metadata-page .metadata-connection-health-pill.up {
  background: #dcfce7;
  color: #166534;
}

.alloydb-metadata-page .metadata-connection-health-pill.down {
  background: #fee2e2;
  color: #b91c1c;
}

.alloydb-metadata-page .metadata-connection-health-meta {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  color: var(--alloydb-metadata-muted);
  font-size: 13px;
}

.alloydb-metadata-page .demo-banner {
  background-color: #4a6fa5;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.alloydb-metadata-page .connection-info-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.alloydb-metadata-page .connection-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alloydb-metadata-page .connection-label {
  font-weight: 600;
  font-size: 14px;
  opacity: 0.9;
}

.alloydb-metadata-page .connection-details {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.alloydb-metadata-page .metadata-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 28px;
  gap: 28px;
  margin-bottom: 0;
}

.alloydb-metadata-page .metadata-box,
.alloydb-metadata-page .metadata-box.database-box,
.alloydb-metadata-page .metadata-box.schema-box,
.alloydb-metadata-page .metadata-box.table-box {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: none;
  transition: border-color 0.2s ease;
  border: 1px solid #e5e7eb;
  border-top: 4px solid #16a34a;
  position: relative;
}

/* Cancel the unscoped AerospikeMetadata.css ::before purple gradient bleed */
.alloydb-metadata-page .metadata-box::before {
  display: none !important;
}

.alloydb-metadata-page .metadata-box:hover {
  border-color: #16a34a;
}

.alloydb-metadata-page .box-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.alloydb-metadata-page .box-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 8px;
  background: #f6f8fb;
  border: 1px solid #eef2f7;
  font-size: 13px;
  color: var(--alloydb-metadata-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  text-decoration: none;
}

.alloydb-metadata-page .box-value {
  font-size: 40px;
  font-weight: 700;
  color: #2f3640;
  margin-bottom: 4px;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1;
}

.alloydb-metadata-page .box-subtitle {
  font-size: 12px;
  color: #868e96;
  font-style: italic;
}

.alloydb-metadata-page .metadata-summary {
  background: white;
  border-radius: 8px;
  padding: 16px 24px;
  border: 1px solid #e9ecef;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.alloydb-metadata-page .summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.alloydb-metadata-page .stat-label {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 4px;
  text-align: center;
}

.alloydb-metadata-page .stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #36a2eb;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Loading, Error, and Auth States */
.alloydb-metadata-page .alloydb-metadata-loading,
.alloydb-metadata-page .alloydb-metadata-error,
.alloydb-metadata-page .auth-required-message {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  box-shadow: none;
  border: 1px solid var(--alloydb-metadata-border);
}

.alloydb-metadata-page .loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e9ecef;
  border-top: 4px solid #36a2eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.alloydb-metadata-page .alloydb-metadata-loading p {
  color: #6c757d;
  font-size: 16px;
  margin-top: 10px;
}

.alloydb-metadata-page .error-icon,
.alloydb-metadata-page .auth-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background-color: #ffeaea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alloydb-metadata-page .error-icon:before {
  content: "⚠️";
  font-size: 28px;
}

.alloydb-metadata-page .auth-icon:before {
  content: "🔒";
  font-size: 28px;
}

.alloydb-metadata-page .alloydb-metadata-error h3,
.alloydb-metadata-page .auth-required-message h3 {
  color: #dc3545;
  margin-bottom: 10px;
  font-size: 20px;
}

.alloydb-metadata-page .auth-required-message h3 {
  color: #6c757d;
}

.alloydb-metadata-page .error-message {
  color: #6c757d;
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.alloydb-metadata-page .retry-button {
  background-color: #36a2eb;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.alloydb-metadata-page .retry-button:hover {
  background-color: #2c8fd6;
}

.alloydb-metadata-page .session-help {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #dee2e6;
}

.alloydb-metadata-page .session-help p {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .alloydb-metadata-page .alloydb-metadata-container {
    padding: 18px;
  }

  .alloydb-metadata-page .metadata-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alloydb-metadata-page .box-value {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .alloydb-metadata-page .alloydb-metadata-container {
    padding: 16px;
  }

  .alloydb-metadata-page .metadata-section-card {
    padding: 18px;
  }
  
  .alloydb-metadata-page .metadata-boxes {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .alloydb-metadata-page .metadata-inline-status {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .alloydb-metadata-page .metadata-box {
    padding: 20px;
  }
  
  .alloydb-metadata-page .metadata-summary {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .alloydb-metadata-page .connection-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .alloydb-metadata-page .connection-details {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .alloydb-metadata-page .alloydb-metadata-container {
    padding: 12px;
    margin: 12px 0;
  }

  .alloydb-metadata-page .connection-info-banner {
    padding: 10px 12px;
  }

  .alloydb-metadata-page .connection-details {
    font-size: 12px;
    padding: 4px 8px;
  }

  .alloydb-metadata-page .metadata-box {
    padding: 16px;
  }

  .alloydb-metadata-page .box-value {
    font-size: 24px;
  }

  .alloydb-metadata-page .alloydb-metadata-loading,
  .alloydb-metadata-page .alloydb-metadata-error,
  .alloydb-metadata-page .auth-required-message {
    padding: 20px 14px;
  }
}


.alloydb-migration-page .migration-container {
  --map-surface: #ffffff;
  --map-surface-soft: #f5f7fb;
  --map-border: #d6dce5;
  --map-border-soft: #e8edf3;
  --map-text: #000000;
  --map-text-muted: #1f1f1f;
  --map-blue: #1f5eff;
  --map-green: #148f4b;
  --map-purple: #24426a;
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px 20px 24px;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--map-text);
  line-height: 1.45;
}

.alloydb-migration-page .mapping-page-hero {
  margin-bottom: 20px;
  padding: 20px 24px;
  border: 1px solid #d6dce5;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 68%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.alloydb-migration-page .mapping-page-hero-title {
  margin: 0 0 8px;
  color: #12213f;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.alloydb-migration-page .mapping-page-hero-text {
  margin: 0;
  color: #485672;
  font-size: 14px;
  line-height: 1.6;
}

.alloydb-migration-page .alloydb-map-health-section {
  margin-bottom: 32px;
  padding-bottom: 0;
  border-bottom: none;
}

.alloydb-migration-page .alloydb-map-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.alloydb-migration-page .alloydb-map-health-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #d9e2ec;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.alloydb-migration-page .alloydb-map-health-card.is-up {
  border-top: 4px solid #10b981;
}

.alloydb-migration-page .alloydb-map-health-card.is-down {
  border-top: 4px solid #ef4444;
}

.alloydb-migration-page .alloydb-map-health-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.alloydb-migration-page .alloydb-map-health-name {
  font-size: 18px;
  font-weight: 800;
  color: #20304f;
}

.alloydb-migration-page .alloydb-map-health-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.alloydb-migration-page .alloydb-map-health-pill.is-up {
  background: #dcfce7;
  color: #166534;
}

.alloydb-migration-page .alloydb-map-health-pill.is-down {
  background: #fee2e2;
  color: #b91c1c;
}

.alloydb-migration-page .alloydb-map-health-meta {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  color: #5b6980;
  font-size: 13px;
}

/* Messages */
.alloydb-migration-page .error-message {
  background-color: #fee;
  color: #c33;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid #c33;
  margin-bottom: 20px;
  cursor: pointer;
  animation: slideIn 0.3s ease;
}

.alloydb-migration-page .success-message {
  background-color: #eff;
  color: #2a7;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid #2a7;
  margin-bottom: 20px;
  cursor: pointer;
  animation: slideIn 0.3s ease;
}

/* Connection Panels */
.alloydb-migration-page .connection-panels,
.alloydb-migration-page .migration-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 26px;
}

.alloydb-migration-page .alloydb-map-workspace {
  display: grid;
  grid-template-columns: clamp(240px, 22vw, 320px) minmax(0, 1fr);
  grid-gap: 24px;
  gap: 24px;
  align-items: stretch;
  min-height: 600px;
}

.alloydb-migration-page .alloydb-map-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 16px;
  width: 100%;
  background: var(--map-surface);
  border-radius: 16px;
  border: 1px solid var(--map-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  padding: 20px 16px;
  min-height: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  align-self: stretch;
}

.alloydb-migration-page .alloydb-map-content-panel .architecture-plan-panel,
.alloydb-migration-page .alloydb-map-content-panel .production-preflight-panel,
.alloydb-migration-page .alloydb-map-content-panel .alloydb-map-performance-section,
.alloydb-migration-page .alloydb-map-content-panel .alloydb-map-launch-controls {
  border: 1px solid var(--map-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  padding: 18px;
}

.alloydb-migration-page .alloydb-map-chart-panel {
  border: 1px solid var(--map-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  padding: 18px;
}

.alloydb-migration-page .alloydb-map-chart-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid #d6e0ee;
  background: #ffffff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.alloydb-migration-page .alloydb-map-chart-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.alloydb-migration-page .alloydb-map-chart-legend-swatch.parent {
  background: #3b82f6;
}

.alloydb-migration-page .alloydb-map-chart-legend-swatch.embedded {
  background: #f97316;
}

.alloydb-migration-page .alloydb-map-chart-legend-swatch.same-collection {
  background: #d97706;
}

.alloydb-migration-page .alloydb-map-chart-legend-swatch.direct-child {
  background: #22c55e;
}

.alloydb-migration-page .alloydb-map-chart-legend-swatch.reference {
  background: #0f766e;
}

.alloydb-migration-page .alloydb-map-chart-legend-swatch.level2-child {
  background: #9333ea;
}

.alloydb-migration-page .alloydb-map-chart-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.alloydb-migration-page .alloydb-map-chart-view-modes,
.alloydb-migration-page .alloydb-map-chart-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.alloydb-migration-page .alloydb-map-chart-btn,
.alloydb-migration-page .alloydb-map-chart-select {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
}

.alloydb-migration-page .alloydb-map-chart-btn {
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.alloydb-migration-page .alloydb-map-chart-btn:hover:not(:disabled) {
  border-color: #93c5fd;
  background: #eff6ff;
  transform: translateY(-1px);
}

.alloydb-migration-page .alloydb-map-chart-btn.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.alloydb-migration-page .alloydb-map-chart-btn:disabled,
.alloydb-migration-page .alloydb-map-chart-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alloydb-migration-page .alloydb-map-chart-zoom-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  min-width: 52px;
  text-align: center;
}

.alloydb-migration-page .alloydb-map-chart-viewport {
  position: relative;
  overflow: auto;
  min-height: 560px;
  max-height: 72vh;
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  background:
    linear-gradient(0deg, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.96)),
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 35%);
}

.alloydb-migration-page .alloydb-map-chart-legend-overlay {
  position: -webkit-sticky;
  position: sticky;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: -webkit-fit-content;
  width: fit-content;
  max-width: calc(100% - 20px);
  margin: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

.alloydb-migration-page .alloydb-map-chart-canvas {
  position: relative;
  min-width: 100%;
  min-height: 100%;
}

.alloydb-migration-page .alloydb-map-chart-image {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  max-width: none;
}

.alloydb-migration-page .alloydb-map-chart-empty {
  min-height: 320px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: #475569;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.alloydb-migration-page .alloydb-map-sidebar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--map-text);
  margin-bottom: 8px;
}

.alloydb-migration-page .alloydb-map-sidebar-subtitle {
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 16px;
}

.alloydb-migration-page .alloydb-map-sidebar-menu {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.alloydb-migration-page .alloydb-map-menu-item {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  border: 1px solid #dde7f2;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.alloydb-migration-page .alloydb-map-menu-item:hover {
  border-color: #bfd0eb;
  background: #f5f8fc;
  transform: translateY(-1px);
}

.alloydb-migration-page .alloydb-map-menu-item.is-active {
  border-color: #9db7e7;
  background: #eef3f8;
}

.alloydb-migration-page .alloydb-map-menu-step {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
}

.alloydb-migration-page .alloydb-map-menu-item.is-active .alloydb-map-menu-step {
  background: var(--map-blue);
  color: white;
}

.alloydb-migration-page .alloydb-map-menu-copy {
  min-width: 0;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.alloydb-migration-page .alloydb-map-menu-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.alloydb-migration-page .alloydb-map-menu-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  color: #111827;
}

.alloydb-migration-page .alloydb-map-menu-meta {
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
}

.alloydb-migration-page .alloydb-map-content-area {
  min-width: 0;
  display: grid;
}

.alloydb-migration-page .alloydb-map-content-panel {
  min-width: 0;
}

.alloydb-migration-page .alloydb-map-content-panel .form-group {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

.alloydb-migration-page .alloydb-map-content-panel .panel,
.alloydb-migration-page .alloydb-map-content-panel .architecture-plan-panel,
.alloydb-migration-page .alloydb-map-content-panel .production-preflight-panel,
.alloydb-migration-page .alloydb-map-content-panel .alloydb-map-performance-section,
.alloydb-migration-page .alloydb-map-content-panel .alloydb-map-launch-controls {
  margin-top: 0;
}

.alloydb-migration-page .connection-panel,
.alloydb-migration-page .panel {
  background: var(--map-surface);
  border-radius: 14px;
  border: 1px solid var(--map-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  min-width: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.alloydb-migration-page .panel-header {
  color: var(--map-text);
  margin: 12px 26px 0;
  padding: 6px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: none;
}

.alloydb-migration-page .source-panel {
  border-top: 4px solid var(--map-blue);
}

.alloydb-migration-page .target-panel .panel-header,
.alloydb-migration-page .couchbase-panel .panel-header {
  background: var(--map-surface-soft);
}

.alloydb-migration-page .target-panel,
.alloydb-migration-page .couchbase-panel {
  border-top: 4px solid var(--map-green);
}

.alloydb-migration-page .panel-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #12213f;
}

.alloydb-migration-page .panel-header h3::before {
  content: none;
}

.alloydb-migration-page .panel-header-copy {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.alloydb-migration-page .panel-header-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.alloydb-migration-page .connection-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alloydb-migration-page .connection-status.connected {
  background: rgba(255, 255, 255, 0.2);
  color: #4caf50;
}

.alloydb-migration-page .connection-status.disconnected {
  background: rgba(255, 255, 255, 0.2);
  color: #ff9800;
}

/* Connection Forms */
.alloydb-migration-page .connection-form {
  padding: 20px;
}

.alloydb-migration-page .connected-panel {
  padding: 20px;
}

.alloydb-migration-page .connection-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alloydb-migration-page .connection-info p {
  margin: 0;
  color: #666;
}

/* Form Elements */
.alloydb-migration-page .form-group {
  margin-bottom: 8px;
}

.alloydb-migration-page .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #000000;
  font-size: 14px;
}

.alloydb-migration-page .form-group input:not([type="checkbox"]),
.alloydb-migration-page .form-group select {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  font-size: 14px;
  color: #000000;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
}

.alloydb-migration-page .form-group input:not([type="checkbox"]):focus,
.alloydb-migration-page .form-group select:focus {
  outline: none;
  border-color: var(--map-blue);
  box-shadow: 0 0 0 3px rgba(77, 111, 255, 0.12);
}

.alloydb-migration-page .form-group input:not([type="checkbox"]):disabled,
.alloydb-migration-page .form-group select:disabled {
  background-color: #f8fafc;
  cursor: not-allowed;
}

.alloydb-migration-page .mapping-form-group {
  margin-bottom: 12px;
  border: none;
  border-bottom: none;
  box-shadow: none;
}

.alloydb-migration-page .mapping-form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #000000;
  font-size: 14px;
}

.alloydb-migration-page .mapping-form-input,
.alloydb-migration-page .mapping-form-select {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  font-size: 14px;
  color: #000000;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
  box-sizing: border-box;
}

.alloydb-migration-page .mapping-form-input:focus,
.alloydb-migration-page .mapping-form-select:focus {
  outline: none;
  border-color: var(--map-blue);
  box-shadow: 0 0 0 3px rgba(77, 111, 255, 0.12);
}

.alloydb-migration-page .mapping-form-input:disabled,
.alloydb-migration-page .mapping-form-select:disabled {
  background-color: #f8fafc;
  cursor: not-allowed;
}

/* Buttons */
.alloydb-migration-page .connect-button,
.alloydb-migration-page .disconnect-button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.alloydb-migration-page .connect-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.alloydb-migration-page .connect-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: none;
}

.alloydb-migration-page .connect-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alloydb-migration-page .disconnect-button {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

.alloydb-migration-page .disconnect-button:hover:not(:disabled) {
  background: #eee;
}

/* Data Selection */
.alloydb-migration-page .data-selection {
  margin-top: 20px;
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.alloydb-migration-page .source-section-card {
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.alloydb-migration-page .source-section-card-compact {
  padding-bottom: 12px;
}

.alloydb-migration-page .source-section-card-inner {
  margin-top: 16px;
  background: #f8fbff;
  box-shadow: none;
}

.alloydb-migration-page .source-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.alloydb-migration-page .source-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #12213f;
}

.alloydb-migration-page .source-section-note {
  max-width: 420px;
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
  text-align: right;
}

.alloydb-migration-page .source-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.alloydb-migration-page .checkpoint-storage-section {
  margin: 16px 0 12px;
  padding: 16px;
  border: 1px solid #d9e3f1;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fd 100%);
}

.alloydb-migration-page .checkpoint-storage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.alloydb-migration-page .checkpoint-storage-title {
  font-size: 16px;
  font-weight: 800;
  color: #12213f;
}

.alloydb-migration-page .checkpoint-storage-note {
  font-size: 12px;
  line-height: 1.5;
  color: #586783;
  max-width: 420px;
  text-align: right;
}

.alloydb-migration-page .checkpoint-storage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.alloydb-migration-page .checkpoint-storage-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 16px;
}

.alloydb-migration-page .checkpoint-storage-card {
  padding: 12px 14px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.alloydb-migration-page .checkpoint-storage-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a7a8d;
}

.alloydb-migration-page .table-select-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alloydb-migration-page .parent-table-checkbox-list {
  width: 100%;
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #d7deee;
  border-radius: 10px;
  padding: 8px;
  background: #ffffff;
}

.alloydb-migration-page .parent-table-checkbox-list.disabled {
  background: #f6f8fc;
}

.alloydb-migration-page .parent-table-checkbox-list.disabled .parent-table-checkbox-item {
  cursor: not-allowed;
  opacity: 0.8;
}

.alloydb-migration-page .parent-table-checkbox-item {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.alloydb-migration-page .form-group .parent-table-checkbox-item {
  display: flex;
  margin-bottom: 0;
}

.alloydb-migration-page .parent-table-checkbox-item:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.alloydb-migration-page .parent-table-checkbox-item.is-selected {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.alloydb-migration-page .parent-table-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

.alloydb-migration-page .parent-table-checkbox-list.disabled .parent-table-checkbox-item input[type="checkbox"] {
  cursor: not-allowed;
}

.alloydb-migration-page .parent-table-checkbox-item .table-name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  color: #1f2e53;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alloydb-migration-page .checkbox-list-empty {
  padding: 8px 10px;
  font-size: 13px;
  color: #64748b;
}

.alloydb-migration-page .partition-preview-section {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid #dbe4f3;
  border-radius: 10px;
  background: #f8fbff;
}

.alloydb-migration-page .partition-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.alloydb-migration-page .partition-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2e53;
}

.alloydb-migration-page .partition-preview-loading {
  font-size: 11px;
  color: #64748b;
}

.alloydb-migration-page .partition-preview-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.alloydb-migration-page .partition-preview-card {
  padding: 9px 10px;
  border-radius: 7px;
  border: 1px solid #d9e3f5;
  background: #ffffff;
}

.alloydb-migration-page .partition-preview-card.is-partitioned {
  border-color: #c7d8ff;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.alloydb-migration-page .child-partition-preview-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.alloydb-migration-page .child-partition-preview-item {
  padding: 8px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.alloydb-migration-page .child-partition-preview-item.is-partitioned {
  border-color: #c7d8ff;
  background: #f6f9ff;
}

.alloydb-migration-page .child-partition-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.alloydb-migration-page .child-partition-preview-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2e53;
  word-break: break-word;
}

.alloydb-migration-page .partition-collection-mapping-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 10px;
}

.alloydb-migration-page .partition-collection-mapping-list::-webkit-scrollbar {
  width: 10px;
}

.alloydb-migration-page .partition-collection-mapping-list::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.alloydb-migration-page .partition-collection-mapping-list::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
}

.alloydb-migration-page .partition-collection-mapping-list::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.alloydb-migration-page .partition-target-section {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbe4f3;
  border-radius: 10px;
  background: #f8fbff;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 10px;
}

.alloydb-migration-page .partition-target-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.alloydb-migration-page .partition-target-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2e53;
}

.alloydb-migration-page .partition-target-note {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.alloydb-migration-page .partition-target-section::-webkit-scrollbar {
  width: 10px;
}

.alloydb-migration-page .partition-target-section::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.alloydb-migration-page .partition-target-section::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
}

.alloydb-migration-page .partition-target-section::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.alloydb-migration-page .partition-target-options {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.alloydb-migration-page .partition-collection-picker {
  margin-top: 12px;
}

.alloydb-migration-page .partition-preview-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.alloydb-migration-page .partition-preview-table {
  font-size: 13px;
  font-weight: 700;
  color: #1f2e53;
  word-break: break-word;
}

.alloydb-migration-page .partition-preview-badge {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.alloydb-migration-page .partition-preview-badge.partitioned {
  background: #e0ecff;
  color: #2557c7;
}

.alloydb-migration-page .partition-preview-badge.standard {
  background: #edf2f7;
  color: #475569;
}

.alloydb-migration-page .partition-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 11px;
  color: #42526b;
}

.alloydb-migration-page .partition-preview-key {
  font-size: 11px;
  line-height: 1.35;
  color: #5b6b84;
}

.alloydb-migration-page .partition-preview-note {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #49617f;
}

.alloydb-migration-page .partition-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.alloydb-migration-page .partition-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2d4f9d;
  font-size: 10px;
  font-weight: 600;
}

.alloydb-migration-page .partition-chip.more {
  background: #eef2f7;
  color: #526071;
}

.alloydb-migration-page .partition-preview-list::-webkit-scrollbar {
  width: 7px;
}

.alloydb-migration-page .partition-preview-list::-webkit-scrollbar-track {
  background: #edf3fc;
  border-radius: 999px;
}

.alloydb-migration-page .partition-preview-list::-webkit-scrollbar-thumb {
  background: #a8b8d6;
  border-radius: 999px;
}

.alloydb-migration-page .partition-preview-list::-webkit-scrollbar-thumb:hover {
  background: #8095bb;
}

.alloydb-migration-page .parent-table-checkbox-list::-webkit-scrollbar {
  width: 8px;
}

.alloydb-migration-page .parent-table-checkbox-list::-webkit-scrollbar-track {
  background: #eef2ff;
  border-radius: 10px;
}

.alloydb-migration-page .parent-table-checkbox-list::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
}

.alloydb-migration-page .parent-table-checkbox-list::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.alloydb-migration-page .parent-table-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7deee;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: #1f2e53;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.alloydb-migration-page .parent-table-select:focus {
  outline: none;
  border-color: #4f6ec9;
  box-shadow: 0 0 0 3px rgba(79, 110, 201, 0.14);
}

.alloydb-migration-page .parent-table-select:disabled {
  background: #f6f8fc;
  color: #7f8aa8;
}

.alloydb-migration-page .parent-table-select-multi {
  min-height: 180px;
  max-height: 280px;
  overflow-y: auto;
}

.alloydb-migration-page .table-select-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.alloydb-migration-page .table-select-header > label {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.alloydb-migration-page .table-select-actions {
  display: flex;
  gap: 8px;
  margin-top: 0;
  flex: 0 0 auto;
}

.alloydb-migration-page .table-select-action-btn {
  border: 1px solid #d3dbeb;
  border-radius: 8px;
  background: #ffffff;
  color: var(--map-text);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
}

.alloydb-migration-page .table-select-action-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #b9c6da;
}

.alloydb-migration-page .table-select-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.alloydb-migration-page .selection-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}

.alloydb-migration-page .selection-summary {
  margin-top: 10px;
  padding: 12px 14px;
  background: #f8fbff;
  border: 1px solid #d9e6ff;
  border-radius: 10px;
  font-size: 13px;
  color: #1f3b73;
  font-weight: 700;
}

.alloydb-migration-page .selection-summary.empty {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
  font-weight: 500;
}

.alloydb-migration-page .child-tables-preview {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e4e8f2;
  border-radius: 8px;
  background: #f8fafc;
}

.alloydb-migration-page .child-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: #243b53;
  margin-bottom: 10px;
}

.alloydb-migration-page .child-preview-groups-scroll {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 6px;
}

.alloydb-migration-page .child-preview-groups-scroll::-webkit-scrollbar {
  width: 8px;
}

.alloydb-migration-page .child-preview-groups-scroll::-webkit-scrollbar-track {
  background: #eef2ff;
  border-radius: 10px;
}

.alloydb-migration-page .child-preview-groups-scroll::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
}

.alloydb-migration-page .child-preview-groups-scroll::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.alloydb-migration-page .child-preview-group + .child-preview-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e4e8f2;
}

.alloydb-migration-page .child-preview-parent {
  font-size: 12px;
  font-weight: 600;
  color: #334e68;
  margin-bottom: 8px;
}

.alloydb-migration-page .child-preview-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #52606d;
  margin: 8px 0 6px;
}

.alloydb-migration-page .child-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.alloydb-migration-page .child-preview-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1f2937;
  font-size: 12px;
}

.alloydb-migration-page .child-preview-tag.ref-tag {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.alloydb-migration-page .child-preview-tag.self-tag {
  border-color: #d8b4fe;
  background: #f3e8ff;
  color: #6d28d9;
  font-weight: 600;
}

.alloydb-migration-page .child-preview-empty {
  font-size: 12px;
  color: #64748b;
}

.alloydb-migration-page .relationship-decision-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}

.alloydb-migration-page .relationship-decision-list::-webkit-scrollbar {
  width: 8px;
}

.alloydb-migration-page .relationship-decision-list::-webkit-scrollbar-track {
  background: #eef2ff;
  border-radius: 10px;
}

.alloydb-migration-page .relationship-decision-list::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
}

.alloydb-migration-page .relationship-decision-list::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.alloydb-migration-page .relationship-decision-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid #dbe4f0;
  border-radius: 6px;
  background: #ffffff;
}

.alloydb-migration-page .decision-path {
  font-size: 12px;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alloydb-migration-page .decision-chip {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}

.alloydb-migration-page .decision-chip.reference {
  color: #1e3a8a;
  background: #dbeafe;
  border-color: #93c5fd;
}

.alloydb-migration-page .decision-chip.embed_array {
  color: #065f46;
  background: #d1fae5;
  border-color: #6ee7b7;
}

.alloydb-migration-page .decision-chip.embed_object {
  color: #92400e;
  background: #ffedd5;
  border-color: #fdba74;
}

.alloydb-migration-page .decision-rule {
  font-size: 11px;
  color: #475569;
  font-weight: 600;
}

.alloydb-migration-page .index-migration-option {
  margin-top: 12px;
  margin-bottom: 0;
  padding: 10px 12px;
  border: 1px solid #e6e9f2;
  border-radius: 6px;
  background: #fff;
}

.alloydb-migration-page .index-migration-option .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 500;
  color: #333;
  cursor: pointer;
}

.alloydb-migration-page .index-migration-option .checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.alloydb-migration-page .index-migration-option .checkbox-label span {
  display: inline-block;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.4;
}

/* Migration Mode */
.alloydb-migration-page .migration-mode-select {
  background: #f8f9fa;
  border: 1px solid #ddd;
}

.alloydb-migration-page .manual-selection,
.alloydb-migration-page .same-as-source-config {
  margin-top: 0;
  padding: 14px 26px 18px;
  background: transparent;
  border-radius: 0;
}

.alloydb-migration-page .data-selection {
  margin-top: 0;
  padding: 10px 26px 14px;
  display: flex;
  flex-direction: column;
}

.alloydb-migration-page .connection-not-available {
  margin: 22px 26px 26px;
  padding: 24px;
  background: var(--map-surface-soft);
  border: 1px dashed #cfd7e3;
  border-radius: 12px;
}

.alloydb-migration-page .connection-not-available h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--map-text);
}

.alloydb-migration-page .connection-not-available p {
  margin: 0;
  color: var(--map-text-muted);
  line-height: 1.6;
}

.alloydb-migration-page .mapping-guidance-section {
  margin: 6px 0 18px;
}

.alloydb-migration-page .mapping-guidance-title {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.alloydb-migration-page .mapping-guidance-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.alloydb-migration-page .mapping-guidance-list li {
  font-size: 14px;
  line-height: 1.65;
  color: #111111;
}

.alloydb-migration-page .mapping-guidance-list strong {
  color: #111111;
}

.alloydb-migration-page .memory-input {
  max-width: 170px;
}

.alloydb-migration-page .input-hint {
  font-size: 12px;
  color: #222222;
  margin-top: 8px;
  font-style: normal;
  line-height: 1.5;
}

.alloydb-migration-page .migration-summary {
  margin-top: 20px;
  padding: 15px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.alloydb-migration-page .migration-summary h4 {
  margin: 0 0 10px 0;
  color: #333;
}

/* Migration Progress */
.alloydb-migration-page .migration-progress-panel {
  background: white;
  border-radius: 10px;
  box-shadow: none;
  padding: 20px;
  margin-bottom: 20px;
  animation: slideIn 0.3s ease;
}

.alloydb-migration-page .progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.alloydb-migration-page .progress-header h3 {
  margin: 0;
  color: #333;
}

.alloydb-migration-page .progress-percentage {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
}

.alloydb-migration-page .progress-bar-container {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 15px 0;
}

.alloydb-migration-page .progress-bar-container .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.alloydb-migration-page .progress-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 15px;
  gap: 15px;
  font-size: 14px;
  color: #666;
}

/* Migration Controls */
.alloydb-migration-page .alloydb-map-performance-section {
  background: var(--map-surface);
  border-radius: 14px;
  border: 1px solid var(--map-border-soft);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  padding: 22px 28px 24px;
  margin-bottom: 18px;
}

.alloydb-migration-page .performance-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.alloydb-migration-page .performance-header {
  font-size: 22px;
  font-weight: 800;
  color: var(--map-text);
  margin-bottom: 6px;
}

.alloydb-migration-page .performance-subtitle {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  max-width: 760px;
}

.alloydb-migration-page .performance-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 20px;
}

.alloydb-migration-page .performance-summary-card {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.alloydb-migration-page .performance-summary-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.alloydb-migration-page .performance-summary-card strong {
  font-size: 20px;
  font-weight: 800;
  color: #12213f;
}

.alloydb-migration-page .performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 28px;
  gap: 28px;
}

.alloydb-migration-page .performance-field {
  margin-bottom: 0;
}

.alloydb-migration-page .performance-card {
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #ffffff;
}

.alloydb-migration-page .performance-card-wide {
  grid-column: span 2;
}

.alloydb-migration-page .performance-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
}

.alloydb-migration-page .alloydb-map-launch-controls {
  background: var(--map-surface);
  border-radius: 14px;
  border: 1px solid var(--map-border-soft);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  padding: 28px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.alloydb-migration-page .tablewise-counts-panel {
  margin-top: 14px;
  background: white;
  border-radius: 10px;
  box-shadow: none;
  padding: 16px 20px;
  overflow-x: auto;
}

.alloydb-migration-page .tablewise-counts-title {
  font-size: 14px;
  font-weight: 700;
  color: #243b53;
  margin-bottom: 10px;
}

.alloydb-migration-page .tablewise-counts-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 0.8fr 0.8fr;
  min-width: 520px;
  grid-gap: 8px 12px;
  gap: 8px 12px;
  align-items: center;
}

.alloydb-migration-page .tablewise-counts-head {
  font-size: 12px;
  font-weight: 700;
  color: #52606d;
  text-transform: uppercase;
}

.alloydb-migration-page .tablewise-counts-cell {
  font-size: 13px;
  color: #102a43;
}

.alloydb-migration-page .migration-button {
  background: linear-gradient(135deg, #4568f7 0%, #6f47ff 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  min-width: 340px;
  box-shadow: 0 12px 28px rgba(91, 33, 255, 0.18);
}

.alloydb-migration-page .migration-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(91, 33, 255, 0.22);
}

.alloydb-migration-page .migration-button:disabled {
  background: #c7ccd7;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

.alloydb-migration-page .start-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.alloydb-migration-page .start-confirm-dialog {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #d7deee;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  padding: 18px 20px;
}

.alloydb-migration-page .start-confirm-title {
  font-size: 18px;
  font-weight: 700;
  color: #102a43;
  margin-bottom: 10px;
}

.alloydb-migration-page .start-confirm-message {
  font-size: 14px;
  line-height: 1.55;
  color: #334e68;
}

.alloydb-migration-page .start-confirm-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.alloydb-migration-page .start-confirm-btn {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2e53;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
}

.alloydb-migration-page .start-confirm-btn.cancel {
  background: #f8fafc;
}

.alloydb-migration-page .start-confirm-btn.confirm {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.alloydb-migration-page .start-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alloydb-migration-page .migration-button.migrating {
  background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
}

.alloydb-migration-page .migration-summary-info {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 15px;
  gap: 15px;
  text-align: left;
}

.alloydb-migration-page .migration-summary-info p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.alloydb-migration-page .migration-summary-info strong {
  color: #333;
}

.alloydb-migration-page .architecture-plan-panel {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid #d7e3f4;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.alloydb-migration-page .production-preflight-panel {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid #d7e3f4;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.alloydb-migration-page .architecture-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.alloydb-migration-page .architecture-plan-header h3 {
  margin: 0;
  font-size: 18px;
  color: #17324d;
}

.alloydb-migration-page .architecture-plan-status,
.alloydb-migration-page .architecture-plan-empty,
.alloydb-migration-page .architecture-plan-error {
  font-size: 13px;
  color: #4b647e;
}

.alloydb-migration-page .architecture-plan-error {
  color: #b42318;
  margin-bottom: 12px;
}

.alloydb-migration-page .architecture-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
}

.alloydb-migration-page .architecture-summary-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.alloydb-migration-page .architecture-summary-card {
  border-radius: 12px;
  border: 1px solid #dbe7f3;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  padding: 14px;
}

.alloydb-migration-page .architecture-summary-card .label {
  display: block;
  font-size: 12px;
  color: #5a7189;
  margin-bottom: 6px;
}

.alloydb-migration-page .architecture-summary-card strong {
  font-size: 22px;
  color: #102a43;
}

.alloydb-migration-page .preflight-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  align-items: start;
}

.alloydb-migration-page .preflight-check-card {
  border-radius: 12px;
  border: 1px solid #dbe7f3;
  background: #fbfdff;
  padding: 0;
  overflow: hidden;
  align-self: start;
}

.alloydb-migration-page .preflight-check-card.pass {
  background: #f3fbf6;
  border-color: #cfe8d8;
}

.alloydb-migration-page .preflight-check-card.check_required {
  background: #fff5f5;
  border-color: #f0c8c8;
}

.alloydb-migration-page .preflight-check-card.advisory {
  background: #fffaf0;
  border-color: #f2ddb0;
}

.alloydb-migration-page .preflight-check-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.alloydb-migration-page .preflight-check-title {
  font-size: 14px;
  font-weight: 700;
  color: #17324d;
}

.alloydb-migration-page .preflight-check-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alloydb-migration-page .preflight-check-state {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 9px;
  background: #dbeafe;
  color: #1d4ed8;
}

.alloydb-migration-page .preflight-check-state.pass {
  background: #dcfce7;
  color: #15803d;
}

.alloydb-migration-page .preflight-check-state.check_required {
  background: #fee2e2;
  color: #b91c1c;
}

.alloydb-migration-page .preflight-check-state.advisory {
  background: #fef3c7;
  color: #b45309;
}

.alloydb-migration-page .preflight-check-detail {
  font-size: 13px;
  color: #4b647e;
  line-height: 1.55;
}

.alloydb-migration-page .preflight-check-toggle {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex: 0 0 auto;
}

.alloydb-migration-page .preflight-check-body {
  border-top: 1px solid #e6edf7;
  padding: 12px 14px 14px;
}

.alloydb-migration-page .preflight-check-items {
  margin-top: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0eb #edf4ff;
}

.alloydb-migration-page .preflight-check-items::-webkit-scrollbar {
  width: 8px;
}

.alloydb-migration-page .preflight-check-items::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.alloydb-migration-page .preflight-check-items::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
}

.alloydb-migration-page .preflight-check-items::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.alloydb-migration-page .preflight-check-item {
  font-size: 12px;
  color: #4b647e;
  line-height: 1.5;
  border: 1px solid #e3ebf5;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
}

.alloydb-migration-page .migration-blocker-note {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid #f0c8c8;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}

.alloydb-migration-page .pg-launch-summary-panel {
  margin-bottom: 0;
  text-align: left;
  width: 100%;
  max-width: none;
  min-width: 0;
  align-self: stretch;
}

.alloydb-migration-page .pg-launch-summary-title {
  font-size: 16px;
  font-weight: 800;
  color: #17324d;
  margin-bottom: 12px;
}

.alloydb-migration-page .pg-launch-summary-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 14px;
  width: 100%;
  min-width: 0;
}

.alloydb-migration-page .pg-launch-summary-secondary-sections {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
  gap: 16px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.alloydb-migration-page .pg-launch-summary-metric-card {
  border-radius: 12px;
  border: 1px solid #dbe7f3;
  background: #ffffff;
  padding: 14px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.alloydb-migration-page .pg-launch-summary-metric-label {
  display: block;
  font-size: 12px;
  color: #111111;
  margin-bottom: 6px;
  line-height: 1.45;
}

.alloydb-migration-page .pg-launch-summary-metric-card strong {
  font-size: 20px;
  color: #000000;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.alloydb-migration-page .pg-launch-summary-target-list {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0eb #edf4ff;
}

.alloydb-migration-page .pg-launch-summary-section-card {
  min-width: 0;
  min-height: 100%;
  padding: 14px;
  border: 1px solid #dde7f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alloydb-migration-page .pg-launch-summary-section-card-embedded {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.04);
}

.alloydb-migration-page .pg-launch-summary-section-card-reference {
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.05);
}

.alloydb-migration-page .pg-launch-summary-section-card-targets {
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.05);
}

.alloydb-migration-page .alloydb-map-launch-controls-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.alloydb-migration-page .pg-launch-summary-target-list::-webkit-scrollbar {
  width: 10px;
}

.alloydb-migration-page .pg-launch-summary-target-list::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.alloydb-migration-page .pg-launch-summary-target-list::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.alloydb-migration-page .pg-launch-summary-target-list::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.alloydb-migration-page .pg-launch-summary-target-item {
  border: 1px solid #dde7f2;
  border-radius: 12px;
  padding: 12px;
  background: #fbfdff;
}

.alloydb-migration-page .pg-launch-summary-target-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 4px;
}

.alloydb-migration-page .pg-launch-summary-target-item-meta {
  font-size: 12px;
  color: #111111;
  line-height: 1.6;
}

.alloydb-migration-page .architecture-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.alloydb-migration-page .architecture-plan-note {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f8ff;
  border: 1px solid #d9e6fb;
  color: #111111;
  font-size: 13px;
  line-height: 1.6;
}

.alloydb-migration-page .architecture-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 16px;
}

.alloydb-migration-page .architecture-guidance-card,
.alloydb-migration-page .parent-wise-plan-card {
  border: 1px solid #dde7f2;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.alloydb-migration-page .parent-wise-plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0eb #edf4ff;
}

.alloydb-migration-page .parent-wise-plan-list::-webkit-scrollbar {
  width: 10px;
}

.alloydb-migration-page .parent-wise-plan-list::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.alloydb-migration-page .parent-wise-plan-list::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.alloydb-migration-page .parent-wise-plan-list::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.alloydb-migration-page .parent-wise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-top: 12px;
}

.alloydb-migration-page .parent-wise-section {
  border: 1px solid #e6eef8;
  border-radius: 10px;
  background: #f9fbfe;
  padding: 12px;
}

.alloydb-migration-page .parent-wise-section strong {
  display: block;
  margin-bottom: 8px;
  color: #17324d;
  font-size: 13px;
}

.alloydb-migration-page .architecture-plan-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.alloydb-migration-page .architecture-plan-chip-row.compact {
  margin-top: 8px;
}

.alloydb-migration-page .architecture-plan-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4fb;
  color: #36516b;
  font-size: 11px;
  font-weight: 700;
}

.alloydb-migration-page .architecture-plan-chip.root {
  background: #dbeafe;
  color: #1d4ed8;
}

.alloydb-migration-page .architecture-plan-chip.embedded {
  background: #dcfce7;
  color: #15803d;
}

.alloydb-migration-page .architecture-plan-chip.separate {
  background: #fef3c7;
  color: #b45309;
}

.alloydb-migration-page .architecture-column {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.alloydb-migration-page .architecture-column-title {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
}

.alloydb-migration-page .architecture-analysis-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.alloydb-migration-page .architecture-analysis-sidebar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.alloydb-migration-page .architecture-analysis-content {
  min-width: 0;
}

.alloydb-migration-page .architecture-section-shell {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.alloydb-migration-page .architecture-section-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px 16px;
  min-width: 0;
  overflow: hidden;
}

.alloydb-migration-page .architecture-section-hero-main {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.alloydb-migration-page .architecture-section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 0;
  line-height: 1.2;
}

.alloydb-migration-page .architecture-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #17324d;
  margin-bottom: 6px;
}

.alloydb-migration-page .architecture-section-description {
  font-size: 13px;
  line-height: 1.55;
  color: #4b647e;
  max-width: 680px;
}

.alloydb-migration-page .architecture-section-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef2f6;
  color: #000000;
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
  max-width: 100%;
  line-height: 1.4;
}

.alloydb-migration-page .architecture-analysis-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.alloydb-migration-page .architecture-analysis-tab {
  border: 1px solid #d7e3f4;
  background: #ffffff;
  color: #000000;
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.alloydb-migration-page .architecture-analysis-tab.active {
  background: #eef3f8;
  color: #000000;
  border-color: #bfd0eb;
}

.alloydb-migration-page .architecture-analysis-sidebar .architecture-analysis-tab {
  width: auto;
}

.alloydb-migration-page .architecture-analysis-tab-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: inherit;
  margin-bottom: 4px;
}

.alloydb-migration-page .architecture-analysis-tab-meta {
  display: block;
  font-size: 11px;
  color: #222222;
}

.alloydb-migration-page .architecture-chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: #9cb6df #edf4ff;
}

.alloydb-migration-page .architecture-chart-scroll-root {
  overflow-x: scroll;
  overflow-y: auto;
  padding-bottom: 6px;
  width: 100%;
  max-height: 420px;
  padding-right: 8px;
}

.alloydb-migration-page .architecture-chart-scroll-root::-webkit-scrollbar {
  width: 10px;
  height: 12px;
}

.alloydb-migration-page .architecture-chart-scroll-root::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.alloydb-migration-page .architecture-chart-scroll-root::-webkit-scrollbar-thumb {
  background: #9cb6df;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.alloydb-migration-page .architecture-chart-scroll-root::-webkit-scrollbar-thumb:hover {
  background: #7899ce;
}

.alloydb-migration-page .architecture-chart-scroll-relationship {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 420px;
  padding-right: 8px;
}

.alloydb-migration-page .architecture-chart-scroll-relationship::-webkit-scrollbar {
  width: 10px;
  height: 12px;
}

.alloydb-migration-page .architecture-chart-scroll-relationship::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.alloydb-migration-page .architecture-chart-scroll-relationship::-webkit-scrollbar-thumb {
  background: #9cb6df;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.alloydb-migration-page .architecture-chart-scroll-relationship::-webkit-scrollbar-thumb:hover {
  background: #7899ce;
}

.alloydb-migration-page .architecture-chart-scroll::-webkit-scrollbar {
  height: 12px;
}

.alloydb-migration-page .architecture-chart-scroll::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.alloydb-migration-page .architecture-chart-scroll::-webkit-scrollbar-thumb {
  background: #9cb6df;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.alloydb-migration-page .architecture-chart-scroll::-webkit-scrollbar-thumb:hover {
  background: #7899ce;
}

.alloydb-migration-page .architecture-chart-table {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.8fr 0.8fr 0.8fr 0.9fr 1.35fr;
  grid-gap: 0;
  gap: 0;
  border: 1px solid #dde7f2;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  min-width: 920px;
}

.alloydb-migration-page .architecture-chart-table.overview {
  min-width: 920px;
}

.alloydb-migration-page .architecture-chart-table-root {
  width: -webkit-max-content;
  width: max-content;
}

.alloydb-migration-page .architecture-chart-table.relationship {
  grid-template-columns: 1.15fr 1.1fr 0.7fr 0.95fr 0.75fr 0.75fr 1fr 1fr 1.4fr;
  min-width: 1420px;
}

.alloydb-migration-page .architecture-chart-table.relationship.improved {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

@media (max-width: 1600px) {
  .alloydb-migration-page .architecture-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .alloydb-migration-page .architecture-summary-grid-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .alloydb-migration-page .architecture-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alloydb-migration-page .architecture-summary-grid-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alloydb-migration-page .architecture-section-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alloydb-migration-page .architecture-section-summary-grid-storage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alloydb-migration-page .architecture-section-summary-card-wide {
    grid-column: span 2;
  }

  .alloydb-migration-page .architecture-section-hero {
    flex-direction: column;
  }

  .alloydb-migration-page .architecture-section-badge {
    align-self: flex-start;
  }

  .alloydb-migration-page .architecture-chart-table {
    min-width: 780px;
  }

  .alloydb-migration-page .architecture-chart-table.overview {
    min-width: 780px;
  }

  .alloydb-migration-page .architecture-chart-table.relationship {
    min-width: 1200px;
  }
}

@media (max-width: 960px) {
  .alloydb-migration-page .architecture-section-hero {
    flex-direction: column;
  }

  .alloydb-migration-page .architecture-section-badge {
    align-self: flex-start;
  }

  .alloydb-migration-page .architecture-section-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alloydb-migration-page .architecture-section-summary-grid-storage {
    grid-template-columns: 1fr;
  }

  .alloydb-migration-page .architecture-summary-grid,
  .alloydb-migration-page .architecture-summary-grid-five {
    grid-template-columns: 1fr;
  }

  .alloydb-migration-page .architecture-section-summary-card-wide {
    grid-column: span 2;
  }
}

.alloydb-migration-page .architecture-chart-head {
  padding: 12px 10px;
  background: #f4f7fa;
  border-bottom: 1px solid #dde7f2;
  font-size: 12px;
  font-weight: 800;
  color: #000000;
}

.alloydb-migration-page .architecture-chart-cell {
  padding: 10px;
  border-bottom: 1px solid #edf2f7;
  font-size: 12px;
  color: #111111;
  background: #ffffff;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alloydb-migration-page .architecture-chart-cell.strong {
  font-weight: 700;
  color: #000000;
}

.alloydb-migration-page .architecture-inline-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  background: #eef4fb;
  color: #36516b;
}

.alloydb-migration-page .architecture-inline-badge.embedded {
  background: #dcfce7;
  color: #15803d;
}

.alloydb-migration-page .architecture-inline-badge.separate {
  background: #fef3c7;
  color: #b45309;
}

.alloydb-migration-page .architecture-reference-list {
  width: max(100%, 1200px);
  min-width: 1200px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 8px;
}

.alloydb-migration-page .architecture-reference-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #9cb6df #edf4ff;
}

.alloydb-migration-page .architecture-reference-list::-webkit-scrollbar {
  width: 10px;
}

.alloydb-migration-page .architecture-reference-list::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.alloydb-migration-page .architecture-reference-list::-webkit-scrollbar-thumb {
  background: #9cb6df;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.alloydb-migration-page .architecture-reference-list::-webkit-scrollbar-thumb:hover {
  background: #7899ce;
}

.alloydb-migration-page .architecture-reference-scroll::-webkit-scrollbar {
  height: 12px;
}

.alloydb-migration-page .architecture-reference-scroll::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.alloydb-migration-page .architecture-reference-scroll::-webkit-scrollbar-thumb {
  background: #9cb6df;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.alloydb-migration-page .architecture-reference-scroll::-webkit-scrollbar-thumb:hover {
  background: #7899ce;
}

.alloydb-migration-page .architecture-card,
.alloydb-migration-page .architecture-detail-card,
.alloydb-migration-page .architecture-table-row {
  border: 1px solid #dde7f2;
  border-radius: 12px;
  padding: 12px;
  background: #fbfdff;
  margin-bottom: 10px;
  min-width: 0;
}

.alloydb-migration-page .architecture-table-row.embedded,
.alloydb-migration-page .architecture-detail-card.embedded,
.alloydb-migration-page .architecture-card.embedded-relationship {
  background: #f5fbf3;
  border-color: #cfe9d6;
}

.alloydb-migration-page .architecture-card.root {
  background: #f2f8ff;
}

.alloydb-migration-page .architecture-card.embedded {
  background: #f5fbf3;
}

.alloydb-migration-page .architecture-card.standalone {
  background: #fffaf2;
}

.alloydb-migration-page .architecture-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 6px;
}

.alloydb-migration-page .architecture-card-line,
.alloydb-migration-page .architecture-reason,
.alloydb-migration-page .architecture-table-main span,
.alloydb-migration-page .architecture-table-meta span {
  font-size: 12px;
  color: #111111;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alloydb-migration-page .architecture-card-empty {
  font-size: 13px;
  color: #333333;
  padding: 8px 0;
}

.alloydb-migration-page .architecture-badge {
  display: inline-block;
  margin: 6px 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.alloydb-migration-page .architecture-badge.embedded {
  background: #16a34a;
}

.alloydb-migration-page .architecture-badge.separate {
  background: #d97706;
}

.alloydb-migration-page .architecture-details-section {
  margin-top: 18px;
  min-width: 0;
}

.alloydb-migration-page .architecture-section-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 14px;
  align-items: stretch;
}

.alloydb-migration-page .architecture-section-summary-grid-inline {
  margin-top: 2px;
  margin-bottom: 0;
}

.alloydb-migration-page .architecture-section-summary-grid-storage {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  align-items: stretch;
}

.alloydb-migration-page .architecture-section-summary-grid-inline .architecture-section-summary-card {
  padding: 10px 12px;
}

.alloydb-migration-page .architecture-section-summary-grid-inline .architecture-section-summary-card .label {
  margin-bottom: 4px;
}

.alloydb-migration-page .architecture-section-summary-grid-inline .architecture-section-summary-card strong {
  font-size: 16px;
}

.alloydb-migration-page .architecture-section-summary-grid-storage .architecture-section-summary-card {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.alloydb-migration-page .architecture-section-summary-grid-storage .architecture-section-summary-card .label {
  min-height: 34px;
}

.alloydb-migration-page .architecture-section-summary-card {
  border-radius: 12px;
  border: 1px solid #dbe7f3;
  background: #ffffff;
  padding: 12px 14px;
  min-height: 88px;
}

.alloydb-migration-page .architecture-section-summary-card .label {
  display: block;
  font-size: 12px;
  color: #111111;
  margin-bottom: 6px;
  line-height: 1.45;
}

.alloydb-migration-page .architecture-section-summary-card strong {
  font-size: 18px;
  color: #000000;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alloydb-migration-page .pg-launch-summary-table-names-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
  max-height: 112px;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: flex-start;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0eb #edf4ff;
}

.alloydb-migration-page .pg-launch-summary-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
}

.alloydb-migration-page .pg-launch-summary-table-names-panel::-webkit-scrollbar {
  width: 10px;
}

.alloydb-migration-page .pg-launch-summary-table-names-panel::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.alloydb-migration-page .pg-launch-summary-table-names-panel::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.alloydb-migration-page .pg-launch-summary-table-names-panel::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.alloydb-migration-page .pg-launch-summary-table-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7f8ee;
  border: 1px solid #b9e5c7;
  color: #17603a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alloydb-migration-page .pg-launch-summary-table-empty {
  font-size: 12px;
  color: #333333;
}

.alloydb-migration-page .pg-launch-summary-section-card .pg-launch-summary-table-names-panel,
.alloydb-migration-page .pg-launch-summary-section-card .pg-launch-summary-target-list {
  flex: 1 1 auto;
}

.alloydb-migration-page .architecture-section-summary-card-wide {
  grid-column: span 2;
}

.alloydb-migration-page .multi-parent-strategy-list {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0eb #edf4ff;
}

.alloydb-migration-page .multi-parent-strategy-list::-webkit-scrollbar {
  width: 10px;
}

.alloydb-migration-page .multi-parent-strategy-list::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.alloydb-migration-page .multi-parent-strategy-list::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.alloydb-migration-page .multi-parent-strategy-list::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.alloydb-migration-page .architecture-table-list {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.alloydb-migration-page .architecture-table-list.grouped {
  max-height: 260px;
}

.alloydb-migration-page .architecture-storage-sections {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.alloydb-migration-page .architecture-storage-group {
  border: 1px solid #dde7f2;
  border-radius: 14px;
  background: #f9fbfe;
  padding: 14px;
}

.alloydb-migration-page .architecture-table-main,
.alloydb-migration-page .architecture-table-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.alloydb-migration-page .architecture-table-main {
  margin-bottom: 6px;
}

.alloydb-migration-page .parent-table-checkbox-list,
.alloydb-migration-page .partition-preview-list,
.alloydb-migration-page .child-partition-preview-list,
.alloydb-migration-page .partition-collection-mapping-list,
.alloydb-migration-page .partition-target-section,
.alloydb-migration-page .child-preview-groups-scroll,
.alloydb-migration-page .relationship-decision-list,
.alloydb-migration-page .architecture-column,
.alloydb-migration-page .architecture-table-list,
.alloydb-migration-page .preflight-check-list {
  scrollbar-width: thin;
  scrollbar-color: #bfd0eb #edf4ff;
}

.alloydb-migration-page .child-partition-preview-list::-webkit-scrollbar,
.alloydb-migration-page .architecture-column::-webkit-scrollbar,
.alloydb-migration-page .architecture-table-list::-webkit-scrollbar,
.alloydb-migration-page .preflight-check-list::-webkit-scrollbar {
  width: 10px;
}

.alloydb-migration-page .child-partition-preview-list::-webkit-scrollbar-track,
.alloydb-migration-page .architecture-column::-webkit-scrollbar-track,
.alloydb-migration-page .architecture-table-list::-webkit-scrollbar-track,
.alloydb-migration-page .preflight-check-list::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.alloydb-migration-page .child-partition-preview-list::-webkit-scrollbar-thumb,
.alloydb-migration-page .architecture-column::-webkit-scrollbar-thumb,
.alloydb-migration-page .architecture-table-list::-webkit-scrollbar-thumb,
.alloydb-migration-page .preflight-check-list::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.alloydb-migration-page .child-partition-preview-list::-webkit-scrollbar-thumb:hover,
.alloydb-migration-page .architecture-column::-webkit-scrollbar-thumb:hover,
.alloydb-migration-page .architecture-table-list::-webkit-scrollbar-thumb:hover,
.alloydb-migration-page .preflight-check-list::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

/* Loading States */
.alloydb-migration-page .loading-container {
  text-align: center;
  padding: 50px;
}

.alloydb-migration-page .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.alloydb-migration-page .auth-required-message {
  text-align: center;
  padding: 50px;
  background: white;
  border-radius: 10px;
  box-shadow: none;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .alloydb-migration-page .alloydb-map-workspace {
    grid-template-columns: 1fr;
  }

  .alloydb-migration-page .alloydb-map-sidebar {
    position: static;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .alloydb-migration-page .alloydb-map-sidebar-menu {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .alloydb-migration-page .connection-panels,
  .alloydb-migration-page .migration-panels {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .alloydb-migration-page .performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alloydb-migration-page .migration-summary-info {
    grid-template-columns: 1fr;
  }

  .alloydb-migration-page .architecture-summary-grid,
  .alloydb-migration-page .architecture-guidance-grid,
  .alloydb-migration-page .parent-wise-grid,
  .alloydb-migration-page .architecture-columns {
    grid-template-columns: 1fr;
  }

  .alloydb-migration-page .progress-details {
    grid-template-columns: 1fr;
  }

  .alloydb-migration-page .alloydb-map-chart-viewport {
    min-height: 460px;
  }

}

@media (max-width: 768px) {
  .alloydb-migration-page .alloydb-map-sidebar {
    padding: 14px 12px;
  }

  .alloydb-migration-page .alloydb-map-chart-legend-pill {
    font-size: 11px;
    padding: 6px 9px;
  }

  .alloydb-migration-page .alloydb-map-sidebar-menu {
    grid-template-columns: 1fr;
  }

  .alloydb-migration-page .architecture-chart-table,
  .alloydb-migration-page .architecture-chart-table.overview,
  .alloydb-migration-page .architecture-chart-table.relationship {
    min-width: 720px;
  }

  .alloydb-migration-page .architecture-section-summary-grid {
    grid-template-columns: 1fr;
  }

  .alloydb-migration-page .architecture-section-summary-card-wide {
    grid-column: span 1;
  }

  .alloydb-migration-page .alloydb-map-menu-item {
    padding: 10px;
  }

  .alloydb-migration-page .alloydb-map-menu-title {
    font-size: 13px;
  }

  .alloydb-migration-page .alloydb-map-menu-meta {
    font-size: 11px;
  }

  .alloydb-migration-page .performance-grid {
    grid-template-columns: 1fr;
  }

  .alloydb-migration-page .migration-container {
    padding: 10px;
  }
  
  .alloydb-migration-page .migration-button {
    min-width: auto;
    width: 100%;
  }
  
  .alloydb-migration-page .connection-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .alloydb-migration-page .panel-header {
    padding: 12px 14px;
  }

  .alloydb-migration-page .panel-header h3 {
    font-size: 16px;
  }

  .alloydb-migration-page .manual-selection,
  .alloydb-migration-page .same-as-source-config,
  .alloydb-migration-page .connection-form {
    padding: 14px;
  }

  .alloydb-migration-page .child-preview-list {
    gap: 4px;
  }

  .alloydb-migration-page .parent-table-select {
    min-height: 40px;
    font-size: 13px;
    padding: 9px 10px;
  }

  .alloydb-migration-page .parent-table-checkbox-list {
    min-height: 160px;
  }

  .alloydb-migration-page .parent-table-checkbox-item .table-name {
    font-size: 13px;
  }

  .alloydb-migration-page .alloydb-map-launch-controls {
    padding: 16px;
  }

  .alloydb-migration-page .pg-launch-summary-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alloydb-migration-page .pg-launch-summary-secondary-sections {
    grid-template-columns: 1fr;
  }

  .alloydb-migration-page .alloydb-map-chart-controls {
    align-items: stretch;
  }

  .alloydb-migration-page .alloydb-map-chart-view-modes,
  .alloydb-migration-page .alloydb-map-chart-toolbar {
    width: 100%;
  }

  .alloydb-migration-page .alloydb-map-chart-toolbar {
    justify-content: flex-start;
  }

  .alloydb-migration-page .alloydb-map-chart-select {
    width: 100%;
  }

}

@media (max-width: 480px) {
  .alloydb-migration-page .pg-launch-summary-metrics-grid {
    grid-template-columns: 1fr;
  }

  .alloydb-migration-page .migration-container {
    padding: 8px;
  }

  .alloydb-migration-page .panel-header h3 {
    font-size: 14px;
  }

  .alloydb-migration-page .form-group label {
    font-size: 13px;
  }

  .alloydb-migration-page .form-group input:not([type="checkbox"]),
  .alloydb-migration-page .form-group select {
    font-size: 13px;
    padding: 9px 10px;
  }

  .alloydb-migration-page .selection-summary {
    font-size: 12px;
    padding: 8px;
  }

  .alloydb-migration-page .connect-button,
  .alloydb-migration-page .disconnect-button,
  .alloydb-migration-page .migration-button {
    font-size: 13px;
    padding: 10px 12px;
  }

  .alloydb-migration-page .alloydb-map-performance-section {
    padding: 14px;
  }
}

/* AlloyDBMigrationDashboard.css */

.alloydb-dashboard-page {
  --pg-bg: #edf2f7;
  --pg-surface: #ffffff;
  --pg-border: #dce4f0;
  --pg-text: #23344d;
  --pg-muted: #6a7a8d;
  --pg-primary: #1d4ed8;
  --pg-success: #047857;
  --pg-warning: #b45309;
  --pg-danger: #b91c1c;
  --pg-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.alloydb-dashboard-page .migration-dashboard {
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow: visible;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--pg-text);
  line-height: 1.45;
}

.alloydb-dashboard-page .migration-dashboard h1,
.alloydb-dashboard-page .migration-dashboard h2,
.alloydb-dashboard-page .migration-dashboard h3,
.alloydb-dashboard-page .migration-dashboard h4,
.alloydb-dashboard-page .migration-dashboard h5,
.alloydb-dashboard-page .migration-dashboard h6 {
  color: var(--pg-text);
  letter-spacing: 0.01em;
}

.alloydb-dashboard-page .migration-dashboard button,
.alloydb-dashboard-page .migration-dashboard input,
.alloydb-dashboard-page .migration-dashboard select,
.alloydb-dashboard-page .migration-dashboard textarea {
  font: inherit;
}

.alloydb-dashboard-page .dashboard-container {
  min-height: 100%;
  height: auto;
  overflow: visible;
  padding: 24px;
  background: transparent;
}

.alloydb-dashboard-page .connection-health-section {
  margin-bottom: 24px;
}

.alloydb-dashboard-page .connection-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.alloydb-dashboard-page .connection-health-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--pg-border);
  box-shadow: var(--pg-shadow);
}

.alloydb-dashboard-page .connection-health-card.up {
  border-top: 4px solid #10b981;
}

.alloydb-dashboard-page .connection-health-card.down {
  border-top: 4px solid #ef4444;
}

.alloydb-dashboard-page .connection-health-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.alloydb-dashboard-page .connection-health-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--pg-text);
}

.alloydb-dashboard-page .connection-health-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.alloydb-dashboard-page .connection-health-pill.up {
  background: #dcfce7;
  color: #166534;
}

.alloydb-dashboard-page .connection-health-pill.down {
  background: #fee2e2;
  color: #b91c1c;
}

.alloydb-dashboard-page .connection-health-meta {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  color: #5b6b82;
  font-size: 13px;
}

.alloydb-dashboard-page .health-ts {
  font-size: 11px;
  font-weight: 600;
}

.alloydb-dashboard-page .health-ts.down {
  color: #b91c1c;
}

.alloydb-dashboard-page .health-ts.up {
  color: #166534;
}

.alloydb-dashboard-page .resume-checkpoint-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.alloydb-dashboard-page .resume-checkpoint-btn:hover:not(:disabled) {
  background: #1e40af;
}

.alloydb-dashboard-page .resume-checkpoint-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alloydb-dashboard-page .resume-checkpoint-error {
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #fecaca;
}

/* Connection Banner */
.alloydb-dashboard-page .connection-banner {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alloydb-dashboard-page .banner-icon {
  font-size: 18px;
}

.alloydb-dashboard-page .connection-banner.info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

/* Header */
.alloydb-dashboard-page .dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--pg-shadow);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #3b82f6;
}

.alloydb-dashboard-page .header-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--pg-text);
  margin: 0 0 4px 0;
}

.alloydb-dashboard-page .migration-id {
  font-size: 14px;
  color: #6b7280;
  font-family: monospace;
}

.alloydb-dashboard-page .header-status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.alloydb-dashboard-page .status-badge {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alloydb-dashboard-page .status-badge.pending {
  background: #fef3c7;
  color: #d97706;
}

.alloydb-dashboard-page .status-badge.connected {
  background: #dbeafe;
  color: #2563eb;
}

.alloydb-dashboard-page .status-badge.running {
  background: #dcfce7;
  color: #16a34a;
}

.alloydb-dashboard-page .status-badge.completed {
  background: #dcfce7;
  color: #16a34a;
}

.alloydb-dashboard-page .status-badge.error {
  background: #fee2e2;
  color: #dc2626;
}

.alloydb-dashboard-page .connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
}

.alloydb-dashboard-page .connection-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.alloydb-dashboard-page .connection-dot.connected {
  background: #10b981;
}

.alloydb-dashboard-page .connection-dot.disconnected {
  background: #ef4444;
}

.alloydb-dashboard-page .dashboard-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 24px;
}

.alloydb-dashboard-page .dashboard-summary-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alloydb-dashboard-page .dashboard-summary-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.alloydb-dashboard-page .dashboard-summary-value {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

/* ============================================
   Info Cards - UPDATED FOR 2 COLUMN LAYOUT
   ============================================ */
.alloydb-dashboard-page .info-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 24px;
  align-items: stretch;
}

.alloydb-dashboard-page .info-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--pg-shadow);
  border: 1px solid var(--pg-border);
  border-top: 4px solid;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.alloydb-dashboard-page .info-card.source-card {
  border-top-color: #1d4ed8;
}

.alloydb-dashboard-page .info-card.target-card {
  border-top-color: #0f766e;
}

.alloydb-dashboard-page .info-card.checkpoint-card {
  border-top-color: #7c3aed;
}

.alloydb-dashboard-page .info-card.storage-layout-card {
  grid-column: 1 / -1;
}

.alloydb-dashboard-page .info-card.storage-layout-card .card-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none !important;
  box-shadow: none;
}

.alloydb-dashboard-page .info-card.storage-layout-card .card-body {
  border-top: none !important;
  padding-top: 0;
  box-shadow: none;
}

.alloydb-dashboard-page .info-card.storage-layout-card .stats-cards-grid,
.alloydb-dashboard-page .info-card.storage-layout-card .storage-layout-stats-grid {
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none;
}

.alloydb-dashboard-page .card-header {
  font-weight: 700;
  color: var(--pg-text);
  margin-bottom: 16px;
  font-size: 18px;
  letter-spacing: 0.01em;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8eef6;
}

.alloydb-dashboard-page .card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

/* ============================================
   Info Chip List - UPDATED WITH SCROLLBAR FIX
   ============================================ */
.alloydb-dashboard-page .info-chip-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 12px 8px 0;
  margin-top: 4px;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}

.alloydb-dashboard-page .info-chip-list::-webkit-scrollbar {
  width: 8px;
}

.alloydb-dashboard-page .info-chip-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.alloydb-dashboard-page .info-chip-list::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
  border: 2px solid #f1f5f9;
}

.alloydb-dashboard-page .info-chip-list::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.alloydb-dashboard-page .info-chip {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  color: #111111;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  flex-shrink: 0;
}

.alloydb-dashboard-page .info-chip.info-chip-target {
  color: #111111;
}

.alloydb-dashboard-page .info-chip:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.alloydb-dashboard-page .info-empty {
  color: var(--pg-muted);
  font-size: 13px;
}

.alloydb-dashboard-page .section-subtitle {
  color: #64748b;
  font-size: 13px;
  margin: 4px 0 14px;
  line-height: 1.5;
}

.alloydb-dashboard-page .storage-layout-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 14px;
}

.alloydb-dashboard-page .storage-layout-metric {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alloydb-dashboard-page .storage-layout-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.alloydb-dashboard-page .storage-layout-value {
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
}

.alloydb-dashboard-page .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.alloydb-dashboard-page .info-row .label {
  color: var(--pg-muted);
  font-size: 13px;
  font-weight: 600;
}

.alloydb-dashboard-page .info-row .value {
  color: var(--pg-text);
  font-weight: 600;
  font-size: 14px;
}

.alloydb-dashboard-page .storage-layout-card-body {
  gap: 16px;
}

.alloydb-dashboard-page .storage-layout-stats-grid .stat-card {
  min-height: 108px;
}

.alloydb-dashboard-page .stat-card.storage-layout-embedded {
  border-top-color: #10b981;
}

.alloydb-dashboard-page .stat-card.storage-layout-same-collection {
  border-top-color: #d97706;
}

.alloydb-dashboard-page .stat-card.storage-layout-parent-embedded {
  border-top-color: #3b82f6;
}

.alloydb-dashboard-page .stat-card.storage-layout-parent-reference {
  border-top-color: #8b5cf6;
}

.alloydb-dashboard-page .storage-layout-parent-block {
  border-top: none;
  padding-top: 8px;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
}

.alloydb-dashboard-page .storage-layout-parent-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.alloydb-dashboard-page .storage-layout-parent-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--pg-text);
}

.alloydb-dashboard-page .storage-layout-parent-note {
  font-size: 12px;
  color: var(--pg-muted);
  line-height: 1.4;
  text-align: right;
}

.alloydb-dashboard-page .storage-layout-parent-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.alloydb-dashboard-page .storage-layout-parent-scroll::-webkit-scrollbar {
  height: 10px;
}

.alloydb-dashboard-page .storage-layout-parent-scroll::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 999px;
}

.alloydb-dashboard-page .storage-layout-parent-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid #f8fafc;
}

.alloydb-dashboard-page .storage-layout-parent-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.alloydb-dashboard-page .storage-layout-parent-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.alloydb-dashboard-page .storage-layout-parent-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 280px;
  flex: 0 0 280px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dbe4f0;
}

.alloydb-dashboard-page .storage-layout-parent-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--pg-text);
  word-break: break-word;
}

.alloydb-dashboard-page .storage-layout-parent-counts {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  white-space: nowrap;
}

.alloydb-dashboard-page .target-mapping-section {
  margin-bottom: 24px;
}

.alloydb-dashboard-page .target-mapping-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pg-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--pg-shadow);
}

.alloydb-dashboard-page .target-mapping-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.alloydb-dashboard-page .target-mapping-table th,
.alloydb-dashboard-page .target-mapping-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  font-size: 13px;
}

.alloydb-dashboard-page .target-mapping-table th {
  background: #f8fafc;
  color: #22345f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alloydb-dashboard-page .execution-plan-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #1e40af;
}

.alloydb-dashboard-page .execution-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0eb #edf4ff;
}

.alloydb-dashboard-page .execution-plan-grid::-webkit-scrollbar {
  width: 10px;
}

.alloydb-dashboard-page .execution-plan-grid::-webkit-scrollbar-track {
  background: #edf4ff;
  border-radius: 999px;
}

.alloydb-dashboard-page .execution-plan-grid::-webkit-scrollbar-thumb {
  background: #bfd0eb;
  border-radius: 999px;
  border: 2px solid #edf4ff;
}

.alloydb-dashboard-page .execution-plan-grid::-webkit-scrollbar-thumb:hover {
  background: #95afda;
}

.alloydb-dashboard-page .execution-plan-card {
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 14px 16px;
}

.alloydb-dashboard-page .execution-plan-card.embedded {
  background: linear-gradient(180deg, #f7fef9 0%, #ffffff 100%);
  border-color: #cce7d4;
}

.alloydb-dashboard-page .execution-plan-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.alloydb-dashboard-page .execution-plan-title {
  font-weight: 700;
  color: var(--pg-text);
  word-break: break-word;
}

.alloydb-dashboard-page .execution-plan-status {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #e5e7eb;
  color: #374151;
  white-space: nowrap;
}

.alloydb-dashboard-page .execution-plan-status.started,
.alloydb-dashboard-page .execution-plan-status.running {
  background: #dcfce7;
  color: #166534;
}

.alloydb-dashboard-page .execution-plan-status.completed {
  background: #dbeafe;
  color: #1d4ed8;
}

.alloydb-dashboard-page .execution-plan-status.failed,
.alloydb-dashboard-page .execution-plan-status.cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.alloydb-dashboard-page .execution-plan-status.embedded {
  background: #ecfdf5;
  color: #047857;
}

.alloydb-dashboard-page .execution-plan-role {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 6px;
}

.alloydb-dashboard-page .execution-plan-line {
  font-size: 13px;
  color: var(--pg-muted);
  margin-bottom: 4px;
  word-break: break-word;
}

.alloydb-dashboard-page .execution-plan-note {
  margin-top: 8px;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

/* Realtime Count Section */
.alloydb-dashboard-page .realtime-count-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #0f766e;
}

.alloydb-dashboard-page .realtime-count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.alloydb-dashboard-page .realtime-count-card {
  background: #f9fafb;
  border-radius: 6px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  min-width: 0;
}

.alloydb-dashboard-page .realtime-count-label {
  color: var(--pg-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.alloydb-dashboard-page .realtime-count-value {
  color: var(--pg-text);
  font-weight: 700;
  font-size: 18px;
  word-break: break-word;
}

.alloydb-dashboard-page .realtime-count-value.mono {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

.alloydb-dashboard-page .realtime-count-value.status.connected,
.alloydb-dashboard-page .realtime-count-value.status.running,
.alloydb-dashboard-page .realtime-count-value.status.completed {
  color: #047857;
}

.alloydb-dashboard-page .realtime-count-value.status.disconnected,
.alloydb-dashboard-page .realtime-count-value.status.failed,
.alloydb-dashboard-page .realtime-count-value.status.cancelled {
  color: #b91c1c;
}

.alloydb-dashboard-page .table-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  max-height: none;
  overflow: visible;
}

.alloydb-dashboard-page .table-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #f3f4f6;
  border-radius: 4px;
  font-size: 12px;
  color: #4b5563;
}

/* Progress Section */
.alloydb-dashboard-page .progress-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 24px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.08);
  border: 1px solid #a7f3d0;
  border-top: 4px solid #059669;
}

.alloydb-dashboard-page .progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.alloydb-dashboard-page .progress-title {
  font-weight: 700;
  color: var(--pg-text);
  font-size: 16px;
}

.alloydb-dashboard-page .progress-percent {
  font-size: 22px;
  font-weight: 800;
  color: #059669;
}

.alloydb-dashboard-page .progress-bar-container {
  width: 100%;
  height: 20px;
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid #d1fae5;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
}

.alloydb-dashboard-page .progress-fill {
  height: 100%;
  background: #059669;
  border-radius: 999px;
  transition: width 0.5s ease;
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.4);
}

.alloydb-dashboard-page .progress-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 16px;
  gap: 16px;
}

.alloydb-dashboard-page .progress-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.alloydb-dashboard-page .progress-stat .stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.alloydb-dashboard-page .progress-stat .stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

/* Migration Statistics Section */
.alloydb-dashboard-page .migration-stats-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #3b82f6;
}

.alloydb-dashboard-page .section-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
  margin: 0 0 16px 0;
}

.alloydb-dashboard-page .stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.alloydb-dashboard-page .stat-card {
  background: white;
  border-radius: 8px;
  padding: 14px 16px 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  border-top: 4px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 84px;
  gap: 8px;
}

.alloydb-dashboard-page .stat-card.total-documents {
  border-top-color: #3b82f6;
}

.alloydb-dashboard-page .stat-card.migrated,
.alloydb-dashboard-page .stat-card.migrated-documents {
  border-top-color: #10b981;
}

.alloydb-dashboard-page .stat-card.remaining,
.alloydb-dashboard-page .stat-card.missing-documents {
  border-top-color: #f59e0b;
}

.alloydb-dashboard-page .stat-card.duplicate-documents {
  border-top-color: #ef4444;
}

.alloydb-dashboard-page .stat-card.index-documents {
  border-top-color: #0891b2;
}

.alloydb-dashboard-page .stat-card.index-skipped-documents {
  border-top-color: #b45309;
}

.alloydb-dashboard-page .stat-card.index-failed-documents {
  border-top-color: #dc2626;
}

.alloydb-dashboard-page .stat-card.index-pending-documents {
  border-top-color: #6b7280;
}

.alloydb-dashboard-page .stat-card.success-rate {
  border-top-color: #8b5cf6;
}

.alloydb-dashboard-page .stat-card.speed {
  border-top-color: #4b5563;
}

.alloydb-dashboard-page .stat-content {
  text-align: center;
}

.alloydb-dashboard-page .stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
  word-break: break-word;
  width: 100%;
  text-align: center;
}

.alloydb-dashboard-page .stat-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  max-width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.alloydb-dashboard-page .index-matrix-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #0f766e;
}

.alloydb-dashboard-page .index-matrix-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
}

.alloydb-dashboard-page .index-matrix-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.alloydb-dashboard-page .index-matrix-table thead th {
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #dbe4f0;
  white-space: nowrap;
}

.alloydb-dashboard-page .index-matrix-table tbody td {
  font-size: 12px;
  color: #1f2937;
  padding: 9px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.alloydb-dashboard-page .index-matrix-table tbody tr:last-child td {
  border-bottom: none;
}

.alloydb-dashboard-page .index-matrix-schema {
  font-weight: 700;
  color: #0f172a;
}

.alloydb-dashboard-page .index-matrix-count {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.alloydb-dashboard-page .index-matrix-sample {
  color: #334155;
  min-width: 220px;
  line-height: 1.45;
}

.alloydb-dashboard-page .validation-summary-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #0f766e;
}

.alloydb-dashboard-page .validation-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.alloydb-dashboard-page .validation-summary-card {
  background: var(--pg-surface);
  border: 1px solid var(--pg-border);
  border-radius: 8px;
  padding: 14px;
}

.alloydb-dashboard-page .validation-label {
  color: var(--pg-muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.alloydb-dashboard-page .validation-value {
  color: var(--pg-text);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.alloydb-dashboard-page .validation-value.pass {
  color: var(--pg-success);
}

.alloydb-dashboard-page .validation-value.failed {
  color: var(--pg-danger);
}

.alloydb-dashboard-page .validation-sub {
  color: var(--pg-muted);
  font-size: 12px;
}

.alloydb-dashboard-page .production-readiness-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #7c3aed;
}

.alloydb-dashboard-page .readiness-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.alloydb-dashboard-page .readiness-badge.pass {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #86efac;
}

.alloydb-dashboard-page .readiness-badge.pending {
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
}

.alloydb-dashboard-page .readiness-badge.check {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.alloydb-dashboard-page .readiness-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  color: #475569;
  font-size: 13px;
}

.alloydb-dashboard-page .production-readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.alloydb-dashboard-page .production-readiness-card {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 12px;
}

.alloydb-dashboard-page .production-readiness-card.pass {
  border-left: 4px solid #10b981;
}

.alloydb-dashboard-page .production-readiness-card.pending {
  border-left: 4px solid #f59e0b;
}

.alloydb-dashboard-page .production-readiness-card.check {
  border-left: 4px solid #ef4444;
}

.alloydb-dashboard-page .readiness-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.alloydb-dashboard-page .readiness-card-title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}

.alloydb-dashboard-page .readiness-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}

.alloydb-dashboard-page .readiness-state.pass {
  color: #065f46;
  background: #d1fae5;
  border-color: #86efac;
}

.alloydb-dashboard-page .readiness-state.pending {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fdba74;
}

.alloydb-dashboard-page .readiness-state.check {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.alloydb-dashboard-page .readiness-card-detail {
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

/* CDC Section */
.alloydb-dashboard-page .cdc-section,
.alloydb-dashboard-page .cdc-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border-left: 1px solid #d1fae5;
  border-right: 1px solid #d1fae5;
  border-bottom: 1px solid #d1fae5;
  border-top: 4px solid #059669;
}

.alloydb-dashboard-page .cdc-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 14px;
  gap: 14px;
}

.alloydb-dashboard-page .cdc-stat-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border-top: 4px solid #059669;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100px;
  gap: 6px;
}

.alloydb-dashboard-page .cdc-stat-card.inserts   { border-top-color: #10b981; }
.alloydb-dashboard-page .cdc-stat-card.updates   { border-top-color: #f59e0b; }
.alloydb-dashboard-page .cdc-stat-card.deletes   { border-top-color: #ef4444; }
.alloydb-dashboard-page .cdc-stat-card.operations { border-top-color: #6366f1; }
.alloydb-dashboard-page .cdc-stat-card.chunked-docs { border-top-color: #0ea5e9; }
.alloydb-dashboard-page .cdc-stat-card.total-chunks { border-top-color: #8b5cf6; }

.alloydb-dashboard-page .cdc-stat-card-top-bar {
  display: none;
}

.alloydb-dashboard-page .cdc-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.alloydb-dashboard-page .cdc-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.alloydb-dashboard-page .last-operation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 6px;
}

.alloydb-dashboard-page .last-operation .label {
  font-size: 13px;
  color: #6b7280;
}

.alloydb-dashboard-page .operation-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.alloydb-dashboard-page .operation-badge.insert {
  background: #d1fae5;
  color: #059669;
}

.alloydb-dashboard-page .operation-badge.update {
  background: #fed7aa;
  color: #d97706;
}

.alloydb-dashboard-page .operation-badge.delete {
  background: #fee2e2;
  color: #dc2626;
}

.alloydb-dashboard-page .operation-table {
  font-weight: 500;
  color: #374151;
}

.alloydb-dashboard-page .operation-time {
  margin-left: auto;
  font-size: 12px;
  color: #9ca3af;
}

/* Tables Section */
.alloydb-dashboard-page .tables-section,
.alloydb-dashboard-page .tables-overview-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--pg-shadow);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #1d4ed8;
  position: relative;
}

.alloydb-dashboard-page .mapping-overview-section,
.alloydb-dashboard-page .connection-health-section,
.alloydb-dashboard-page .progress-section,
.alloydb-dashboard-page .migration-stats-section,
.alloydb-dashboard-page .index-matrix-section,
.alloydb-dashboard-page .cdc-panel,
.alloydb-dashboard-page .logs-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--pg-shadow);
  border: 1px solid var(--pg-border);
}

.alloydb-dashboard-page .mapping-overview-section {
  border-top: 4px solid #2563eb;
}

.alloydb-dashboard-page .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
  flex-wrap: wrap;
  gap: 12px;
}

.alloydb-dashboard-page .migration-dashboard .section-title,
.alloydb-dashboard-page .migration-dashboard .section-header h3 {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

.alloydb-dashboard-page .section-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.alloydb-dashboard-page .chart-toggle-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #1d4ed8;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
  transition: all 0.2s ease;
  min-width: 0;
  width: auto;
}

.alloydb-dashboard-page .chart-toggle-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  border-color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

.alloydb-dashboard-page .chart-toggle-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.alloydb-dashboard-page .chart-toggle-btn.inline {
  margin-left: 4px;
  padding: 5px 10px;
}

.alloydb-dashboard-page .table-summary,
.alloydb-dashboard-page .overview-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #6b7280;
}

.alloydb-dashboard-page .table-level-scroll {
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.alloydb-dashboard-page .table-level-scroll::-webkit-scrollbar {
  width: 10px;
}

.alloydb-dashboard-page .table-level-scroll::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 999px;
}

.alloydb-dashboard-page .table-level-scroll::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 999px;
}

.alloydb-dashboard-page .table-level-scroll::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

.alloydb-dashboard-page .tables-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.alloydb-dashboard-page .table-category {
  background: #f8fafc;
  border-radius: 6px;
  padding: 14px;
  border: 1px solid #e2e8f0;
}

.alloydb-dashboard-page .category-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pg-text);
  letter-spacing: 0.01em;
  margin: 0 0 16px 0;
}

.alloydb-dashboard-page .table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.alloydb-dashboard-page .table-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  border: 1px solid #dbe4f0;
  border-top: 4px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  min-height: 248px;
  display: flex;
  flex-direction: column;
}

.alloydb-dashboard-page .table-card:hover {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.alloydb-dashboard-page .table-card.parent {
  border-top-color: #1d4ed8;
}

.alloydb-dashboard-page .table-card.schema-card {
  border-top-color: #0f766e;
}

.alloydb-dashboard-page .table-card.child {
  border-top-color: #0f766e;
}

.alloydb-dashboard-page .table-card.embedded {
  border-top-color: #059669;
}

.alloydb-dashboard-page .table-card.same_collection_reference {
  border-top-color: #d97706;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 28%);
}

.alloydb-dashboard-page .table-card.grandchild {
  border-top-color: #0ea5e9;
}

.alloydb-dashboard-page .table-card.reference {
  border-top-color: #7c3aed;
}

.alloydb-dashboard-page .table-card.junction {
  border-top-color: #6b7280;
}

.alloydb-dashboard-page .table-card.selfref,
.alloydb-dashboard-page .table-card.selfRef {
  border-top-color: #8b5cf6;
}

.alloydb-dashboard-page .table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
}

.alloydb-dashboard-page .table-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--pg-text);
  flex-wrap: wrap;
}

.alloydb-dashboard-page .table-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--pg-text);
  letter-spacing: 0.01em;
}

.alloydb-dashboard-page .table-status-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.alloydb-dashboard-page .status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}

.alloydb-dashboard-page .status-chip.pass {
  color: #065f46;
  background: #d1fae5;
 
}

.alloydb-dashboard-page .status-chip.partial {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fb923c;
}

.alloydb-dashboard-page .status-chip.failed {
  color: #991b1b;
  background: #fee2e2;
  border-color: #f87171;
}

.alloydb-dashboard-page .status-chip.not-applicable {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #60a5fa;
}

.alloydb-dashboard-page .expand-icon {
  font-size: 12px;
  color: #6b7280;
}

.alloydb-dashboard-page .table-badge {
  font-size: 11px;
  padding: 3px 9px;
  background: #e0ecff;
  color: #1d4ed8;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.alloydb-dashboard-page .table-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1;
}

.alloydb-dashboard-page .breakdown-subsection + .breakdown-subsection {
  margin-top: 18px;
}

.alloydb-dashboard-page .breakdown-subsection-head {
  margin-bottom: 12px;
}

.alloydb-dashboard-page .breakdown-subsection-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--pg-text);
  letter-spacing: 0.01em;
}

.alloydb-dashboard-page .breakdown-subsection-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--pg-muted);
  line-height: 1.45;
}

.alloydb-dashboard-page .table-flow-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.alloydb-dashboard-page .table-card.embedded .table-flow-chip {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.alloydb-dashboard-page .table-card.same_collection_reference .table-flow-chip {
  background: #fff7ed;
  color: #b45309;
  border-color: #fdba74;
}

.alloydb-dashboard-page .table-card.child .table-flow-chip,
.alloydb-dashboard-page .table-card.grandchild .table-flow-chip {
  background: #f0fdfa;
  color: #0f766e;
  border-color: #99f6e4;
}

.alloydb-dashboard-page .table-card.reference .table-flow-chip,
.alloydb-dashboard-page .table-card.junction .table-flow-chip,
.alloydb-dashboard-page .table-card.selfref .table-flow-chip,
.alloydb-dashboard-page .table-card.selfRef .table-flow-chip {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.alloydb-dashboard-page .table-flow-description {
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--pg-muted);
  line-height: 1.45;
}

.alloydb-dashboard-page .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 2px 0;
}

.alloydb-dashboard-page .stat-row .label {
  color: var(--pg-muted);
  font-size: 12px;
  font-weight: 600;
}

.alloydb-dashboard-page .stat-row .value {
  font-weight: 700;
  color: var(--pg-text);
  font-size: 13px;
  text-align: right;
  max-width: 62%;
  overflow-wrap: anywhere;
}

.alloydb-dashboard-page .table-parent-link {
  color: #1d4ed8;
}

.alloydb-dashboard-page .table-status-text.running {
  color: #0f766e;
}

.alloydb-dashboard-page .table-status-text.completed {
  color: #047857;
}

.alloydb-dashboard-page .table-status-text.waiting {
  color: #9a3412;
}

.alloydb-dashboard-page .table-status-text.queued {
  color: #1d4ed8;
}

.alloydb-dashboard-page .table-status-text.failed {
  color: #b91c1c;
}

.alloydb-dashboard-page .details-btn {
  margin-top: auto;
  padding: 6px 14px;
  background: #1d4ed8;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  align-self: stretch;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.alloydb-dashboard-page .details-btn:hover {
  background: #1e40af;
}

.alloydb-dashboard-page .pg-dash-relation-overlay {
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 16px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #e2e8f0;
}

.alloydb-dashboard-page .pg-dash-relation-popup {
  position: relative;
  inset: auto;
  transform: none;
  width: min(1560px, calc(100vw - 32px));
  max-width: 100%;
  height: min(760px, calc(100vh - 120px));
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.18);
  border: 1px solid #d4d9e0;
  z-index: 3001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.alloydb-dashboard-page .pg-dash-relation-overlay::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.alloydb-dashboard-page .pg-dash-relation-overlay::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 999px;
}

.alloydb-dashboard-page .pg-dash-relation-overlay::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
}

.alloydb-dashboard-page .pg-dash-relation-overlay::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.alloydb-dashboard-page .pg-dash-relation-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  min-height: 60px;
  border-bottom: 1px solid #d4d9e0;
  background: #ffffff;
  color: #111111;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 5;
}

.alloydb-dashboard-page .pg-dash-relation-header-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.alloydb-dashboard-page .pg-dash-relation-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
}

.alloydb-dashboard-page .pg-dash-relation-header .close-btn {
  display: none;
}

.alloydb-dashboard-page .pg-dash-relation-close-btn {
  min-width: 88px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.alloydb-dashboard-page .pg-dash-relation-close-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.alloydb-dashboard-page .pg-dash-relation-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  position: -webkit-sticky;
  position: sticky;
  top: 60px;
  z-index: 4;
}

.alloydb-dashboard-page .pg-dash-relation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.alloydb-dashboard-page .pg-dash-relation-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  font-size: 12px;
}

.alloydb-dashboard-page .pg-dash-relation-summary-pill strong {
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.alloydb-dashboard-page .pg-dash-relation-summary-pill em {
  color: #555555;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.alloydb-dashboard-page .pg-dash-relation-summary-pill-wide {
  max-width: 320px;
}

.alloydb-dashboard-page .pg-dash-relation-summary-pill-wide em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alloydb-dashboard-page .pg-dash-relation-view-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.alloydb-dashboard-page .pg-dash-relation-view-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.alloydb-dashboard-page .pg-dash-relation-table-select {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  min-width: 160px;
}

.alloydb-dashboard-page .pg-dash-relation-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.alloydb-dashboard-page .pg-dash-relation-control-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.alloydb-dashboard-page .pg-dash-relation-control-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.alloydb-dashboard-page .pg-dash-relation-control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.alloydb-dashboard-page .pg-dash-relation-control-btn.is-active {
  background: #222222;
  border-color: #222222;
  color: #ffffff;
}

.alloydb-dashboard-page .pg-dash-relation-zoom-label {
  min-width: 44px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.alloydb-dashboard-page .pg-dash-relation-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  position: -webkit-sticky;
  position: sticky;
  top: 116px;
  z-index: 3;
}

.alloydb-dashboard-page .pg-dash-relation-legend-title {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-right: 4px;
  text-transform: uppercase;
}

.alloydb-dashboard-page .pg-dash-relation-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  color: #374151;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 600;
}

.alloydb-dashboard-page .pg-dash-relation-legend-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #888888;
}

.alloydb-dashboard-page .pg-dash-relation-legend-chip.root::before { background: #3b82f6; }
.alloydb-dashboard-page .pg-dash-relation-legend-chip.child::before { background: #22c55e; }
.alloydb-dashboard-page .pg-dash-relation-legend-chip.embedded::before { background: #f97316; }
.alloydb-dashboard-page .pg-dash-relation-legend-chip.grandchild::before { background: #a855f7; }
.alloydb-dashboard-page .pg-dash-relation-legend-chip.reference::before { background: #0ea5e9; }

.alloydb-dashboard-page .pg-dash-relation-scroll {
  flex: 1 1;
  overflow: auto;
  padding: 0;
  background: #f9fafb;
  background-image: radial-gradient(circle, #d4d9e0 1px, transparent 1px);
  background-size: 24px 24px;
  cursor: grab;
  -webkit-user-select: none;
          user-select: none;
  position: relative;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}

.alloydb-dashboard-page .pg-dash-relation-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.alloydb-dashboard-page .pg-dash-relation-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.alloydb-dashboard-page .pg-dash-relation-scroll::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

.alloydb-dashboard-page .pg-dash-relation-scroll::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.alloydb-dashboard-page .pg-dash-relation-scroll::-webkit-scrollbar-corner {
  background: #f1f5f9;
}

.alloydb-dashboard-page .pg-dash-relation-scroll.dragging {
  cursor: grabbing;
}

.alloydb-dashboard-page .pg-dash-relation-canvas {
  will-change: transform;
}

.alloydb-dashboard-page .pg-dash-relation-preview-image {
  display: block;
  max-width: none;
  -webkit-user-select: none;
          user-select: none;
  pointer-events: none;
}

.alloydb-dashboard-page .pg-dash-relation-empty-state {
  padding: 18px 20px;
}

.alloydb-dashboard-page .pg-dash-relation-size-proxy {
  position: relative;
  flex-shrink: 0;
}

.alloydb-dashboard-page .relation-chart-lines {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.alloydb-dashboard-page .relation-link {
  fill: none;
  stroke: rgba(0, 0, 0, 0.28);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.alloydb-dashboard-page .relation-level-chip {
  position: absolute;
  display: flex;
  align-items: center;
  min-height: 36px;
  background: #ffffff;
  color: #000000;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.alloydb-dashboard-page .relation-node {
  position: absolute;
  border-radius: 20px;
  border: 1px solid #d7e1ec;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

.alloydb-dashboard-page .relation-node.synthetic {
  border-style: dashed;
  opacity: 0.88;
}

.alloydb-dashboard-page .relation-node.parent {
  background: #ffffff;
}

.alloydb-dashboard-page .relation-node.child,
.alloydb-dashboard-page .relation-node.embedded {
  background: #ffffff;
}

.alloydb-dashboard-page .relation-node.grandchild {
  background: #ffffff;
}

.alloydb-dashboard-page .relation-node.reference,
.alloydb-dashboard-page .relation-node.junction,
.alloydb-dashboard-page .relation-node.selfRef {
  background: #ffffff;
}

.alloydb-dashboard-page .relation-node-badge-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.alloydb-dashboard-page .relation-node-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #000000;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alloydb-dashboard-page .relation-node-badge-muted {
  color: #000000;
  background: #f8fafc;
}

.alloydb-dashboard-page .relation-node-table-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
}

.alloydb-dashboard-page .relation-node-table-block span {
  color: #000000;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.alloydb-dashboard-page .relation-node-table-block strong {
  color: #000000;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.alloydb-dashboard-page .relation-node-title {
  color: #000000;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.22;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.alloydb-dashboard-page .relation-node-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alloydb-dashboard-page .relation-node-subtitle strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #000000;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.alloydb-dashboard-page .relation-node-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #000000;
  font-size: 12px;
  font-weight: 800;
}

.alloydb-dashboard-page .relation-node-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.alloydb-dashboard-page .relation-node-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #14b8a6 100%);
}

.alloydb-dashboard-page .relation-node-progress-label {
  text-align: right;
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.alloydb-dashboard-page .metadata-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.35);
  -webkit-backdrop-filter: blur(1px);
          backdrop-filter: blur(1px);
}

.alloydb-dashboard-page .table-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 2px;
}

.alloydb-dashboard-page .table-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
  transition: width 0.25s ease;
}

/* Metadata Popup - Side by Side Layout */
.alloydb-dashboard-page .metadata-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1220px;
  max-width: 96vw;
  max-height: 66vh;
  overflow-y: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.28);
  z-index: 1000;
  border: 1px solid #cbd5e1;
  border-top: 6px solid #1d4ed8;
}

.alloydb-dashboard-page .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}

.alloydb-dashboard-page .popup-header-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alloydb-dashboard-page .popup-header h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.alloydb-dashboard-page .popup-subtitle {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.alloydb-dashboard-page .close-btn {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #1d4ed8;
  padding: 0;
}

.alloydb-dashboard-page .close-btn:hover {
  background: #dbeafe;
  color: #1e40af;
}

.alloydb-dashboard-page .popup-content {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.alloydb-dashboard-page .popup-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 12px;
  order: -1;
}

.alloydb-dashboard-page .popup-kpi-card {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.alloydb-dashboard-page .popup-kpi-label {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
}

.alloydb-dashboard-page .popup-kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.alloydb-dashboard-page .popup-kpi-value.pass {
  color: #047857;
}

.alloydb-dashboard-page .popup-kpi-value.partial {
  color: #b45309;
}

/* Side by Side Container */
.alloydb-dashboard-page .popup-row-container {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  order: -2;
}

.alloydb-dashboard-page .popup-column {
  flex: 1 1;
  min-width: 0; /* Prevents overflow */
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.alloydb-dashboard-page .popup-column h5 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid;
}

.alloydb-dashboard-page .popup-column h5.source-title {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

.alloydb-dashboard-page .popup-column h5.target-title {
  color: #0f766e;
  border-bottom-color: #0f766e;
}

.alloydb-dashboard-page .popup-row {
  display: flex;
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px dotted #f3f4f6;
}

.alloydb-dashboard-page .popup-row.full-width {
  flex-direction: column;
  gap: 2px;
}

.alloydb-dashboard-page .popup-row .label {
  width: 128px;
  color: var(--pg-muted);
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.alloydb-dashboard-page .popup-row .value {
  flex: 1 1;
  color: var(--pg-text);
  font-weight: 600;
  word-break: break-word;
  font-size: 13px;
}

.alloydb-dashboard-page .popup-row .value.status-text.pass {
  color: #047857;
}

.alloydb-dashboard-page .popup-row .value.status-text.partial {
  color: #b45309;
}

.alloydb-dashboard-page .popup-row .value.status-text.failed {
  color: #b91c1c;
}

.alloydb-dashboard-page .popup-row .value.status-text.not-applicable {
  color: #1d4ed8;
}

.alloydb-dashboard-page .popup-row.full-width .label {
  width: 100%;
  margin-bottom: 2px;
}

/* Migration Details Section */
.alloydb-dashboard-page .migration-details-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  margin-top: 6px;
}

.alloydb-dashboard-page .storage-guide-section {
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #ffffff 100%);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0 4px 0;
}

.alloydb-dashboard-page .storage-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.alloydb-dashboard-page .storage-guide-section h5 {
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
}

.alloydb-dashboard-page .storage-guide-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #34d399;
}

.alloydb-dashboard-page .storage-guide-summary {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
}

.alloydb-dashboard-page .storage-guide-note {
  margin: 0 0 12px 0;
  font-size: 11px;
  color: #475569;
  line-height: 1.45;
}

.alloydb-dashboard-page .storage-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.alloydb-dashboard-page .storage-guide-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px;
  min-height: 72px;
}

.alloydb-dashboard-page .storage-guide-card-title {
  font-size: 11px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.alloydb-dashboard-page .storage-guide-card-value {
  font-size: 12px;
  color: #0f172a;
  line-height: 1.45;
}

.alloydb-dashboard-page .storage-flow-section {
  margin-top: 12px;
}

.alloydb-dashboard-page .storage-flow-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.alloydb-dashboard-page .storage-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.alloydb-dashboard-page .storage-flow-card {
  border: 1px solid #cbd5e1;
  border-left-width: 4px;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

.alloydb-dashboard-page .storage-flow-card.info {
  border-left-color: #3b82f6;
}

.alloydb-dashboard-page .storage-flow-card.pass {
  border-left-color: #10b981;
}

.alloydb-dashboard-page .storage-flow-card.partial {
  border-left-color: #f59e0b;
}

.alloydb-dashboard-page .storage-flow-card.failed {
  border-left-color: #ef4444;
}

.alloydb-dashboard-page .storage-flow-card-title {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.alloydb-dashboard-page .storage-flow-card-value {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.alloydb-dashboard-page .storage-flow-card-detail {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
}

.alloydb-dashboard-page .migration-details-section h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1d4ed8;
  margin: 0 0 12px 0;
}

.alloydb-dashboard-page .migration-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 4px 12px;
  gap: 4px 12px;
}

.alloydb-dashboard-page .migration-details-grid .popup-row {
  border-bottom: none;
  padding: 4px 0;
}

.alloydb-dashboard-page .index-detail-row {
  border: 1px solid #e2e8f0;
  border-left-width: 4px;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  background: #f8fafc;
}

.alloydb-dashboard-page .index-detail-row.pass {
  border-left-color: #10b981;
}

.alloydb-dashboard-page .index-detail-row.partial {
  border-left-color: #f59e0b;
}

.alloydb-dashboard-page .index-detail-row.failed {
  border-left-color: #ef4444;
}

.alloydb-dashboard-page .popup-index-details .value {
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Logs Section */
.alloydb-dashboard-page .logs-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--pg-border);
  border-top: 4px solid #475569;
}

.alloydb-dashboard-page .log-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.alloydb-dashboard-page .log-filters {
  display: flex;
  gap: 6px;
}

.alloydb-dashboard-page .filter-btn {
  padding: 6px 14px;
  border: 1px solid #d9e2ef;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.alloydb-dashboard-page .filter-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.alloydb-dashboard-page .filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.alloydb-dashboard-page .auto-scroll-btn {
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 12px;
  background: #ffffff;
  color: var(--pg-text);
  font-weight: 600;
  cursor: pointer;
}

.alloydb-dashboard-page .auto-scroll-btn:hover {
  background: #f8fafc;
}

.alloydb-dashboard-page .migration-matrix-download-btn {
  border-color: #bfdbfe;
  color: #1e40af;
  background: #eff6ff;
  font-weight: 600;
}

.alloydb-dashboard-page .migration-matrix-download-btn:hover:not(:disabled) {
  background: #dbeafe;
}

.alloydb-dashboard-page .pg-logs-container {
  height: 360px;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  margin-top: 14px;
}

.alloydb-dashboard-page .pg-log-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: #ffffff;
  color: #1e293b;
  border-left: 3px solid transparent;
  margin: 4px 8px;
  border-radius: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.alloydb-dashboard-page .pg-log-entry:last-child {
  border-bottom: none;
}

.alloydb-dashboard-page .pg-log-entry:hover {
  background: #f8fafc;
}

.alloydb-dashboard-page .pg-log-entry.pg-log-success { border-left-color: #10b981; }
.alloydb-dashboard-page .pg-log-entry.pg-log-error   { border-left-color: #ef4444; }
.alloydb-dashboard-page .pg-log-entry.pg-log-warning  { border-left-color: #f59e0b; }
.alloydb-dashboard-page .pg-log-entry.pg-log-info     { border-left-color: #3b82f6; }

.alloydb-dashboard-page .pg-log-time {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 68px;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.alloydb-dashboard-page .pg-log-content {
  flex: 1 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.alloydb-dashboard-page .pg-log-title {
  color: #1e293b;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.alloydb-dashboard-page .pg-log-message {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.alloydb-dashboard-page .pg-log-source {
  display: none;
}

.alloydb-dashboard-page .pg-no-logs {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--pg-muted);
  font-size: 13px;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .alloydb-dashboard-page .dashboard-container {
    padding: 16px;
  }

  .alloydb-dashboard-page .stats-cards-grid,
  .alloydb-dashboard-page .progress-stats,
  .alloydb-dashboard-page .cdc-stats-grid,
  .alloydb-dashboard-page .realtime-count-grid,
  .alloydb-dashboard-page .validation-summary-grid,
  .alloydb-dashboard-page .production-readiness-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .alloydb-dashboard-page .popup-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Keep 2 columns on medium screens, stack only on smaller */
  .alloydb-dashboard-page .info-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .alloydb-dashboard-page .pg-dash-relation-popup {
    width: 96vw;
  }
}

@media (max-width: 900px) {
  .alloydb-dashboard-page .dashboard-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alloydb-dashboard-page .info-cards-grid {
    grid-template-columns: 1fr;
  }

  .alloydb-dashboard-page .storage-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alloydb-dashboard-page .info-chip-list {
    max-height: 200px;
  }
}

@media (max-width: 992px) {
  .alloydb-dashboard-page .dashboard-container {
    padding: 12px;
  }

  .alloydb-dashboard-page .table-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .alloydb-dashboard-page .popup-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .alloydb-dashboard-page .pg-dash-relation-overlay {
    padding: 104px 10px 16px;
  }

  .alloydb-dashboard-page .dashboard-container {
    padding: 10px;
  }

  .alloydb-dashboard-page .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .alloydb-dashboard-page .stats-cards-grid,
  .alloydb-dashboard-page .progress-stats,
  .alloydb-dashboard-page .cdc-stats-grid,
  .alloydb-dashboard-page .realtime-count-grid,
  .alloydb-dashboard-page .validation-summary-grid,
  .alloydb-dashboard-page .production-readiness-grid {
    grid-template-columns: 1fr;
  }

  .alloydb-dashboard-page .dashboard-summary-strip {
    grid-template-columns: 1fr;
  }

  .alloydb-dashboard-page .storage-layout-grid {
    grid-template-columns: 1fr;
  }

  .alloydb-dashboard-page .info-cards-grid {
    grid-template-columns: 1fr;
  }

  .alloydb-dashboard-page .info-chip-list {
    max-height: 180px;
  }

  .alloydb-dashboard-page .overview-summary {
    flex-direction: column;
    gap: 6px;
  }

  .alloydb-dashboard-page .section-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .alloydb-dashboard-page .log-controls {
    flex-direction: column;
  }

  .alloydb-dashboard-page .metadata-popup {
    width: 95%;
  }

  .alloydb-dashboard-page .popup-kpi-strip {
    grid-template-columns: 1fr;
  }
  
  .alloydb-dashboard-page .popup-row-container {
    flex-direction: column;
    gap: 16px;
  }

  .alloydb-dashboard-page .pg-dash-relation-popup {
    width: 96vw;
    height: auto;
    max-height: calc(100vh - 120px);
  }

  .alloydb-dashboard-page .pg-dash-relation-toolbar {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .alloydb-dashboard-page .pg-dash-relation-summary {
    gap: 8px;
    flex-direction: column;
  }

  .alloydb-dashboard-page .pg-dash-relation-summary-pill-wide {
    max-width: 100%;
  }

  .alloydb-dashboard-page .pg-dash-relation-view-switch {
    width: 100%;
    justify-content: flex-start;
  }

  .alloydb-dashboard-page .pg-dash-relation-table-select {
    min-width: 100%;
  }

  .alloydb-dashboard-page .pg-dash-relation-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .alloydb-dashboard-page .pg-dash-relation-close-btn {
    min-width: 76px;
    height: 34px;
    padding: 0 12px;
  }

  .alloydb-dashboard-page .relation-level-chip {
    max-width: calc(100% - 24px);
  }
  
  .alloydb-dashboard-page .migration-details-grid {
    grid-template-columns: 1fr;
  }

  .alloydb-dashboard-page .storage-guide-grid {
    grid-template-columns: 1fr;
  }

  .alloydb-dashboard-page .storage-flow-grid {
    grid-template-columns: 1fr;
  }

  .alloydb-dashboard-page .table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .alloydb-dashboard-page .table-status-badges {
    justify-content: flex-start;
  }

  .alloydb-dashboard-page .table-level-scroll {
    max-height: 420px;
  }

  .alloydb-dashboard-page .pg-logs-container {
    height: 260px;
    max-height: 260px;
  }

  .alloydb-dashboard-page .pg-log-time {
    min-width: auto;
  }
}

@media (max-width: 576px) {
  .alloydb-dashboard-page .section-title {
    font-size: 16px;
  }

  .alloydb-dashboard-page .stat-card {
    padding: 12px;
  }

  .alloydb-dashboard-page .stat-value {
    font-size: 22px;
  }

  .alloydb-dashboard-page .table-grid {
    grid-template-columns: 1fr;
  }

  .alloydb-dashboard-page .table-card {
    min-height: 178px;
    padding: 10px;
  }

  .alloydb-dashboard-page .metadata-popup {
    max-width: 98vw;
    max-height: 78vh;
  }

  .alloydb-dashboard-page .popup-content {
    padding: 10px;
  }

  .alloydb-dashboard-page .popup-header {
    padding: 10px 12px;
  }

  .alloydb-dashboard-page .popup-header h4 {
    font-size: 15px;
  }

  .alloydb-dashboard-page .storage-guide-section {
    padding: 10px;
  }

  .alloydb-dashboard-page .logs-section {
    padding: 12px;
  }

  .alloydb-dashboard-page .log-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .alloydb-dashboard-page .chart-toggle-btn:not(.inline) {
    width: 100%;
    text-align: center;
  }

  .alloydb-dashboard-page .pg-dash-relation-control-btn {
    padding: 6px 8px;
    font-size: 10px;
  }

  .alloydb-dashboard-page .pg-dash-relation-scroll {
    padding: 10px;
  }
}

@media (max-width: 420px) {
  .alloydb-dashboard-page .dashboard-container {
    padding: 8px;
  }

  .alloydb-dashboard-page .progress-percent {
    font-size: 18px;
  }

  .alloydb-dashboard-page .popup-row .label,
  .alloydb-dashboard-page .popup-row .value {
    font-size: 11px;
  }

  .alloydb-dashboard-page .index-detail-row {
    font-size: 11px;
    padding: 7px 8px;
  }
}


.alloydb-cdc-control {
  width: 100%;
  min-width: 0;
  color: #20304f;
  line-height: 1.5;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.alloydb-cdc-control * {
  box-sizing: border-box;
}

.alloydb-cdc-card,
.alloydb-cdc-section,
.alloydb-cdc-grid {
  min-width: 0;
}

.alloydb-cdc-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.alloydb-cdc-table-wrap.is-scrollable {
  max-height: 220px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border: 1px solid #dbe2f2;
  border-radius: 8px;
  background: #ffffff;
}

.alloydb-cdc-table-wrap.is-scrollable thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f7ff;
}

.alloydb-cdc-table-wrap table {
  min-width: 680px;
}

.alloydb-cdc-log-wrap {
  width: 100%;
}

.alloydb-cdc-migration-selector-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dbe5f8;
  border-radius: 10px;
  background: #f8fbff;
}

.alloydb-cdc-migration-selector-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #27426f;
  margin-bottom: 8px;
}

.alloydb-cdc-migration-selector-row {
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
}

.alloydb-cdc-migration-selector {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #c8d6f0;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2e53;
  font-size: 0.9rem;
  font-weight: 600;
}

.alloydb-cdc-migration-selector-help {
  font-size: 0.84rem;
  color: #4d5b7a;
  line-height: 1.5;
}

.alloydb-cdc-stat-card {
  border-top: 4px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.alloydb-cdc-stat-card.compact {
  padding: 10px 12px;
}

.alloydb-cdc-stat-card.neutral {
  border-top-color: #7c8aa0;
  background: #ffffff;
}

.alloydb-cdc-stat-card.success {
  border-top-color: #34a853;
  background: #ffffff;
}

.alloydb-cdc-stat-card.info {
  border-top-color: #4a90e2;
  background: #ffffff;
}

.alloydb-cdc-stat-card.warning {
  border-top-color: #d99a2b;
  background: #ffffff;
}

.alloydb-cdc-stat-card.danger {
  border-top-color: #d96b6b;
  background: #ffffff;
}

.alloydb-cdc-stat-card.accent {
  border-top-color: #7a6ee6;
  background: #ffffff;
}

.alloydb-cdc-subcard {
  border: 1px solid #dbe5f8;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.alloydb-cdc-action-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.alloydb-cdc-connection-health-section {
  background: #ffffff;
  border: 1px solid #d7dcea;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.alloydb-cdc-connection-health-header-row {
  margin-bottom: 12px;
}

.alloydb-cdc-connection-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.alloydb-cdc-connection-health-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #d7dcea;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.alloydb-cdc-connection-health-card.up {
  border-top: 4px solid #10b981;
}

.alloydb-cdc-connection-health-card.down {
  border-top: 4px solid #ef4444;
}

.alloydb-cdc-connection-health-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.alloydb-cdc-connection-health-name {
  font-size: 18px;
  font-weight: 800;
  color: #12213f;
}

.alloydb-cdc-connection-health-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.alloydb-cdc-connection-health-pill.up {
  background: #dcfce7;
  color: #166534;
}

.alloydb-cdc-connection-health-pill.down {
  background: #fee2e2;
  color: #b91c1c;
}

.alloydb-cdc-connection-health-meta {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  color: #5b6980;
  font-size: 13px;
}

.alloydb-cdc-info-card {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.alloydb-cdc-table-card {
  background: #ffffff;
}

.alloydb-cdc-card-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.alloydb-cdc-page-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.alloydb-cdc-section-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.alloydb-cdc-status-pill {
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.alloydb-cdc-stat-label,
.alloydb-cdc-subsection-title,
.alloydb-cdc-refresh-text {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.alloydb-cdc-stat-value {
  margin-top: 4px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.alloydb-cdc-meta-text,
.alloydb-cdc-empty-state {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
}

.alloydb-cdc-metric-label {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.alloydb-cdc-metric-value {
  margin-top: 3px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.alloydb-cdc-table {
  font-size: 0.88rem;
  line-height: 1.45;
}

.alloydb-cdc-table th {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .alloydb-cdc-migration-selector-row {
    grid-template-columns: 1fr;
  }
}

.alloydb-cdc-table td {
  font-size: 0.88rem;
}

.alloydb-cdc-error-text {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .alloydb-cdc-card {
    padding: 14px !important;
  }

  .alloydb-cdc-totals-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .alloydb-cdc-forward-stats,
  .alloydb-cdc-reverse-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .alloydb-cdc-page-title {
    font-size: 1.18rem;
  }
}

@media (max-width: 768px) {
  .alloydb-cdc-control {
    gap: 12px !important;
  }

  .alloydb-cdc-card {
    padding: 12px !important;
  }

  .alloydb-cdc-header-row,
  .alloydb-cdc-section-header {
    flex-direction: column;
    align-items: stretch !important;
  }

  .alloydb-cdc-section button {
    width: 100%;
  }

  .alloydb-cdc-totals-grid,
  .alloydb-cdc-forward-stats,
  .alloydb-cdc-reverse-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .alloydb-cdc-table-wrap table {
    min-width: 560px;
  }

  .alloydb-cdc-page-title {
    font-size: 1.08rem;
  }

  .alloydb-cdc-stat-value {
    font-size: 1.2rem;
  }

  .alloydb-cdc-metric-value {
    font-size: 1.05rem;
  }

  .alloydb-cdc-meta-text,
  .alloydb-cdc-empty-state,
  .alloydb-cdc-refresh-text,
  .alloydb-cdc-error-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 520px) {
  .alloydb-cdc-card {
    padding: 10px !important;
  }

  .alloydb-cdc-totals-grid,
  .alloydb-cdc-forward-stats,
  .alloydb-cdc-reverse-stats {
    grid-template-columns: 1fr !important;
  }

  .alloydb-cdc-table-wrap table {
    min-width: 500px;
  }
}

@media (max-width: 420px) {
  .alloydb-cdc-table-wrap table {
    min-width: 420px;
  }

  .alloydb-cdc-table-wrap th,
  .alloydb-cdc-table-wrap td {
    font-size: 11px !important;
    padding: 5px !important;
  }
}

/* ============================================================
   AlloyDB.css
   Fully scoped to .alloydb-wizard-* — zero leakage to/from other
   components.  Do NOT import PipelineWizard.css in Postgresql.js.
   ============================================================ */

/* ── Outer card ── */
.alloydb-wizard-container {
  max-width: 1400px;
  margin: 32px auto;
  padding: 28px 28px 24px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.10);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  box-sizing: border-box;
}

/* ── Top progress bar — hidden ── */
.alloydb-wizard-container > .alloydb-wizard-progress-bar {
  display: none;
}

/* ══════════════════════════════════════════════
   STEP INDICATORS
   ══════════════════════════════════════════════ */
.alloydb-wizard-container > .alloydb-wizard-step-indicators {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 4px;
  overflow: visible;
}

/* Each step column */
.alloydb-wizard-container .alloydb-wizard-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1;
  position: relative;
  min-width: 0;
  overflow: visible;
}

/* ── Connector line ──
   left: calc(50% + 21px)  → starts exactly at the RIGHT edge of this circle
   width: calc(100% - 42px) → ends exactly at the LEFT edge of the NEXT circle
   This keeps the line strictly BETWEEN circles, never crossing through them.  */
.alloydb-wizard-container .alloydb-wizard-step-connector {
  position: absolute;
  top: 20px;                      /* (42px - 2px) / 2 — centers 2px line in circle */
  left: calc(50% + 21px);         /* right edge of this circle */
  width: calc(100% - 42px);       /* gap between this circle's right edge and next circle's left edge */
  height: 2px;
  background: #d1d5db;
  z-index: 0;
  transition: background 0.4s ease;
}

.alloydb-wizard-container .alloydb-wizard-step-indicator.completed .alloydb-wizard-step-connector {
  background: #10b981;
}

/* ── Circle ── */
.alloydb-wizard-container .alloydb-wizard-step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin: 0;          /* no extra offset — keeps connector perfectly centred */
}

/* Active (current) step — Google Cloud blue */
.alloydb-wizard-container .alloydb-wizard-step-circle.active {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  border-color: #1a73e8;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.40);
}

/* Completed step */
.alloydb-wizard-container .alloydb-wizard-step-circle.completed {
  background: linear-gradient(135deg, #34a853 0%, #1e7e34 100%);
  border-color: #34a853;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(52, 168, 83, 0.35);
}

/* ── Label below each circle ── */
.alloydb-wizard-container .alloydb-wizard-step-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  padding: 0 6px;
  width: 100%;
  min-width: 0;
}

.alloydb-wizard-container .alloydb-wizard-step-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #000000;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  transition: color 0.3s ease;
}

/* Active label */
.alloydb-wizard-container .alloydb-wizard-step-indicator.current .alloydb-wizard-step-title {
  color: #1a73e8;
  font-weight: 700;
}

/* Completed label */
.alloydb-wizard-container .alloydb-wizard-step-indicator.completed .alloydb-wizard-step-title {
  color: #34a853;
}

/* Step description (usually empty — kept for structure) */
.alloydb-wizard-container .alloydb-wizard-step-description {
  display: none;
}

/* ══════════════════════════════════════════════
   STEP CONTENT PANEL
   ══════════════════════════════════════════════ */
.alloydb-wizard-container .alloydb-wizard-step-content {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.05);
}

.alloydb-wizard-container .alloydb-wizard-step-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.alloydb-wizard-container .alloydb-wizard-step-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #000000;
}

.alloydb-wizard-container .alloydb-wizard-step-description-text {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* ── Per-step wrappers ── */
.alloydb-wizard-container .alloydb-wizard-connection-step,
.alloydb-wizard-container .alloydb-wizard-couchbase-step,
.alloydb-wizard-container .alloydb-wizard-db-analysis-step,
.alloydb-wizard-container .alloydb-wizard-migration-settings-step,
.alloydb-wizard-container .alloydb-wizard-dashboard-step,
.alloydb-wizard-container .alloydb-wizard-cdc-step,
.alloydb-wizard-container .alloydb-wizard-db-analysis-container,
.alloydb-wizard-container .alloydb-wizard-migration-settings-container,
.alloydb-wizard-container .alloydb-wizard-dashboard-wrapper {
  width: 100%;
}

/* ── Connection error banner ── */
.alloydb-wizard-container .alloydb-wizard-connection-error {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 13px;
}

/* ── Migration summary card ── */
.alloydb-wizard-container .alloydb-wizard-migration-summary-card {
  margin-top: 20px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

/* ══════════════════════════════════════════════
   NAVIGATION BUTTONS
   ══════════════════════════════════════════════ */
.alloydb-wizard-container > .alloydb-wizard-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}

.alloydb-wizard-container .alloydb-wizard-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

/* Back */
.alloydb-wizard-container .alloydb-wizard-nav-button.back {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}
.alloydb-wizard-container .alloydb-wizard-nav-button.back:hover:not(:disabled) {
  background: #e5e7eb;
}

/* Next — Google Cloud blue */
.alloydb-wizard-container .alloydb-wizard-nav-button.next {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
}
.alloydb-wizard-container .alloydb-wizard-nav-button.next:hover:not(:disabled) {
  background: linear-gradient(135deg, #1557b0 0%, #0a3576 100%);
  box-shadow: 0 6px 18px rgba(26, 115, 232, 0.45);
  transform: translateY(-1px);
}

/* Finish */
.alloydb-wizard-container .alloydb-wizard-nav-button.finish {
  background: linear-gradient(135deg, #34a853 0%, #1e7e34 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(52, 168, 83, 0.35);
}
.alloydb-wizard-container .alloydb-wizard-nav-button.finish:hover:not(:disabled) {
  background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
  box-shadow: 0 6px 18px rgba(52, 168, 83, 0.45);
  transform: translateY(-1px);
}

/* Disabled state for all nav buttons */
.alloydb-wizard-container .alloydb-wizard-nav-button:disabled {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
  border-color: #e5e7eb !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .alloydb-wizard-container {
    margin: 16px;
    padding: 16px;
  }

  .alloydb-wizard-container .alloydb-wizard-step-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .alloydb-wizard-container .alloydb-wizard-step-connector {
    top: 16px;
  }

  .alloydb-wizard-container .alloydb-wizard-step-title {
    font-size: 10px;
  }

  .alloydb-wizard-container .alloydb-wizard-step-content {
    padding: 16px;
  }

  .alloydb-wizard-container > .alloydb-wizard-navigation {
    gap: 10px;
  }

  .alloydb-wizard-container .alloydb-wizard-nav-button {
    padding: 9px 14px;
    font-size: 13px;
  }
}

