/**
 * LoadingState Component Styles
 */

.loadingState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.spinnerContainer {
  margin-bottom: 1.5rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(99, 102, 241, 0.1);
  border-top-color: rgb(99, 102, 241);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.message {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.subMessage {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* Connection Progress Indicator */
.progressIndicator {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
}

.steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 0 1rem;
}

.steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

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

.stepIndicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.step.active .stepIndicator {
  background: rgb(99, 102, 241);
  border-color: rgb(99, 102, 241);
}

.step.completed .stepIndicator {
  background: rgb(34, 197, 94);
  border-color: rgb(34, 197, 94);
}

.stepNumber {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
}

.step.active .stepNumber {
  color: white;
}

.checkIcon {
  width: 24px;
  height: 24px;
  color: white;
}

.stepLabel {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  text-align: center;
}

.step.active .stepLabel {
  color: #1f2937;
  font-weight: 600;
}

.step.completed .stepLabel {
  color: #1f2937;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .loadingState {
    padding: 2rem 1rem;
  }

  .spinner {
    width: 40px;
    height: 40px;
  }

  .message {
    font-size: 1rem;
  }

  .steps {
    padding: 0 0.5rem;
  }

  .stepIndicator {
    width: 32px;
    height: 32px;
  }

  .stepLabel {
    font-size: 0.75rem;
  }

  .checkIcon {
    width: 20px;
    height: 20px;
  }
}
