/* Loader Animation */
.loader {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(203, 251, 68, 0.15);
  border-top-color: #cbfb44;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Score Ring Animation */
.score-ring circle:last-child {
  transition: stroke-dashoffset 1.5s ease-out, stroke 0.5s ease;
}

/* Progress Bar */
.progress-bar-bg {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  height: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1s ease-out;
  min-width: 2px;
}

/* Score Colors */
.score-low { color: #ef4444; }
.score-mid { color: #f59e0b; }
.score-high { color: #cbfb44; }

.bar-low { background: #ef4444; }
.bar-mid { background: #f59e0b; }
.bar-high { background: #cbfb44; }

.ring-low { stroke: #ef4444; }
.ring-mid { stroke: #f59e0b; }
.ring-high { stroke: #cbfb44; }

/* Smooth transitions for form steps */
.form-step {
  animation: fadeIn 0.3s ease;
}

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

/* Problem & Recommendation items */
.result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  line-height: 1.6;
  color: #d1d5db;
}

.result-item .bullet {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 8px;
}

.problem-item .bullet { background: #ef4444; }
.recommendation-item .bullet { background: #cbfb44; }

/* Copy button feedback */
.copy-success {
  color: #cbfb44 !important;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Input focus glow */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(203, 251, 68, 0.1);
}
