/* Enhanced Prediction Results Styling */

/* Prediction label */
.prediction-label {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Confidence meter */
.confidence-meter {
  width: 100%;
  margin: 1.5rem 0;
}

.confidence-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.confidence-header span:last-child {
  color: var(--primary-dark);
}

.confidence-bar {
  width: 100%;
  height: 0.75rem;
  background-color: rgba(14, 165, 233, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.confidence-fill {
  height: 100%;
  background: var(--gradient-blue);
  border-radius: 9999px;
  transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
  position: relative;
}

.confidence-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 9999px;
  animation: pulse 1.5s infinite;
}

/* Prediction summary */
.prediction-summary {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(56, 189, 248, 0.1));
  padding: 1.25rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  color: var(--foreground);
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: var(--shadow-sm);
}

.prediction-text {
  color: var(--primary-dark);
  font-weight: 700;
}

/* Results states */
.results-state {
  padding: 2.5rem 1.5rem;
}

.results-icon {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
}

.results-icon.success {
  color: var(--success);
  animation: bounce 1s ease;
}

.results-icon.error {
  color: var(--error);
  animation: shake 0.5s ease;
}

.results-icon.loading {
  color: var(--primary);
  animation: spin 1.5s linear infinite;
}

.results-text {
  font-size: 1.125rem;
  font-weight: 500;
}

.results-hint {
  font-size: 0.875rem;
  color: var(--foreground);
  opacity: 0.7;
  margin-top: 0.75rem;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

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