/* Configuration Wizard Styles */

.config-wizard {
  max-width: 1200px;
  margin: 0 auto;
}

/* Progress indicator */
.wizard-progress {
  margin-bottom: 2rem;
}

.wizard-progress .progress {
  height: 8px;
  border-radius: 10px;
  background-color: var(--bs-gray-200);
}

.wizard-progress .progress-bar {
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* Step indicator */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding: 0;
  list-style: none;
}

.wizard-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.wizard-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 60%;
  right: -40%;
  height: 2px;
  background-color: var(--bs-gray-300);
  z-index: 1;
}

.wizard-step.completed::after {
  background-color: var(--bs-success);
}

.wizard-step.active::after {
  background: linear-gradient(to right, var(--bs-success) 50%, var(--bs-gray-300) 50%);
}

.wizard-step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--bs-gray-300);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.wizard-step.completed .wizard-step-circle {
  background-color: var(--bs-success);
}

.wizard-step.active .wizard-step-circle {
  background-color: var(--bs-primary);
  transform: scale(1.1);
}

.wizard-step-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--bs-secondary);
  font-weight: 500;
}

.wizard-step.active .wizard-step-label {
  color: var(--bs-primary);
  font-weight: 600;
}

.wizard-step.completed .wizard-step-label {
  color: var(--bs-success);
}

/* Wizard content */
.wizard-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  min-height: 500px;
}

[data-bs-theme="dark"] .wizard-content {
  background: var(--bs-dark);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
}

.wizard-step-content {
  display: none;
}

.wizard-step-content.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

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

/* Step navigation */
.wizard-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--bs-border-color);
}

.wizard-nav-button {
  min-width: 120px;
}

/* Configuration options */
.config-section {
  margin-bottom: 2rem;
}

.config-section h3 {
  color: var(--bs-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.config-option {
  border: 2px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

[data-bs-theme="dark"] .config-option {
  background: var(--bs-gray-900);
}

.config-option:hover {
  border-color: var(--bs-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .config-option:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.config-option.selected {
  border-color: var(--bs-primary);
  background-color: rgba(13, 110, 253, 0.05);
}

[data-bs-theme="dark"] .config-option.selected {
  background-color: rgba(13, 110, 253, 0.1);
}

.config-option-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bs-dark);
}

[data-bs-theme="dark"] .config-option-title {
  color: var(--bs-light);
}

.config-option-description {
  color: var(--bs-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Migration Type Architecture Styles */

/* Constrained migration types (WorkItems & Pipelines) */
.config-option-constrained {
  border: 2px solid var(--bs-info);
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0.1) 100%);
}

.config-option-constrained:hover {
  border-color: var(--bs-info);
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.15) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
}

.config-option-constrained.selected {
  border-color: var(--bs-info);
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.15) 0%, rgba(13, 110, 253, 0.2) 100%);
}

/* Flexible migration types (Custom) */
.config-option-flexible {
  border: 2px solid var(--bs-success);
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.05) 0%, rgba(25, 135, 84, 0.1) 100%);
}

.config-option-flexible:hover {
  border-color: var(--bs-success);
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.1) 0%, rgba(25, 135, 84, 0.15) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(25, 135, 84, 0.15);
}

.config-option-flexible.selected {
  border-color: var(--bs-success);
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.15) 0%, rgba(25, 135, 84, 0.2) 100%);
}

/* Configuration detail styling */
.config-option-detail {
  font-size: 0.9rem;
  color: var(--bs-gray-700);
  margin-bottom: 0.5rem;
}

/* Processor configuration forms */
.processor-config-form {
  background: var(--bs-gray-50);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--bs-gray-200);
}

.config-subsection {
  background: white;
  border-radius: 6px;
  padding: 1rem;
  border: 1px solid var(--bs-gray-200);
  margin-bottom: 1rem;
}

.config-subsection h4 {
  border-bottom: 2px solid var(--bs-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.config-subsection h5 {
  color: var(--bs-gray-700);
  font-size: 1.1rem;
}

/* Named endpoint configuration */
#namedEndpointsContainer .card {
  border-left: 4px solid var(--bs-primary);
}

#namedEndpointsContainer .card-header {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0.1) 100%);
}

/* Selected processors configuration */
#selectedProcessorsConfig .card {
  border-left: 4px solid var(--bs-success);
}

#selectedProcessorsConfig .card-header {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.05) 0%, rgba(25, 135, 84, 0.1) 100%);
}

/* Locked/pre-configured indicators */
.badge.bg-info {
  background-color: var(--bs-info) !important;
}

.badge.bg-success {
  background-color: var(--bs-success) !important;
}

/* Enhanced form styling for constrained modes */
.wizard-form-group label {
  font-weight: 600;
  color: var(--bs-gray-800);
}

.wizard-form-help {
  font-size: 0.875rem;
  color: var(--bs-gray-600);
  margin-top: 0.25rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .wizard-steps {
    flex-direction: column;
    gap: 1rem;
  }

  .wizard-step:not(:last-child)::after {
    display: none;
  }

  .wizard-content {
    padding: 1rem;
  }

  .wizard-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .wizard-nav-button {
    width: 100%;
  }

  .config-option-constrained,
  .config-option-flexible {
    margin-bottom: 1rem;
  }

  .config-option-detail {
    font-size: 0.8rem;
  }
}

/* Loading states */
.wizard-loading {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Tooltips and help */
.wizard-tooltip {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
}

.wizard-tooltip .tooltip-content {
  visibility: hidden;
  opacity: 0;
  background-color: var(--bs-dark);
  color: white;
  text-align: center;
  padding: 0.5rem;
  border-radius: 6px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
  width: 160px;
  font-size: 0.8rem;
  transition: opacity 0.3s;
}

.wizard-tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}
