/* Loading Spinner Styles */

.loading-spinner {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
}

.loading-spinner::after {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  margin: 4px;
  border-radius: 50%;
  border: 4px solid rgba(118, 211, 255, 0.8);
  border-color: rgba(118, 211, 255, 0.8) transparent rgba(118, 211, 255, 0.8) transparent;
  animation: loading-spinner-animation 1.2s linear infinite;
}

@keyframes loading-spinner-animation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Loading Container */
.loading-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(118, 211, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 16px;
}

.loading-container.hidden {
  display: none;
}

.loading-text {
  font-size: 14px;
  color: rgba(118, 211, 255, 0.8);
  font-weight: 500;
}

/* Error State */
.error-state {
  display: none;
  padding: 16px;
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 12px;
  color: rgba(255, 150, 150, 0.9);
  font-size: 14px;
  margin-bottom: 16px;
}

.error-state.visible {
  display: block;
}

.error-state strong {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 180, 180, 1);
}

/* Fallback image */
.ai-art-preview-fallback {
  display: none;
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, rgba(118, 211, 255, 0.1), rgba(182, 119, 255, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.ai-art-preview-fallback.visible {
  display: flex;
}

/* Result Text Animation */
.recommendation-result {
  animation: fadeInUp 0.4s ease-out;
}

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