/* Petits composants réutilisés dans index.html. La CDN Tailwind ne traite
   que les classes utilitaires présentes dans le HTML au chargement (pas de
   @apply / build step), donc ces styles composites restent en CSS brut. */

.view {
  display: none;
}
.view.active {
  display: flex;
}

.input {
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  color: #f1f5f9;
  outline: none;
}
.input:focus {
  border-color: #22c55e;
}

.btn-primary {
  background-color: #22c55e;
  color: #052e16;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  text-align: center;
  transition: background-color 0.15s ease;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background-color: #16a34a;
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #1e293b;
  color: #f1f5f9;
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid #334155;
}
.btn-secondary:hover {
  background-color: #334155;
}

.nav-btn {
  color: #94a3b8;
}
.nav-btn.active {
  background-color: #22c55e;
  color: #052e16;
}

.card {
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  padding: 1rem;
}

.exercise-card.completed {
  opacity: 0.55;
}
.exercise-card.completed .exercise-name {
  text-decoration: line-through;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #1e293b;
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.timer-ring {
  font-variant-numeric: tabular-nums;
}
