/* Sample content for the live demo: an animation for "Stop animations" and a colorful box for the color tools. */
.demo-sample {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  background: var(--bg-soft);
}

.demo-colors {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.demo-colors li {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 600;
}

.demo-colors .red { background: #b42318; }
.demo-colors .green { background: #1b6e3a; }
.demo-colors .blue { background: #1d4f91; }
.demo-colors .purple { background: #6b2fa0; }

.demo-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 6px solid var(--border);
  border-top-color: var(--brand);
  animation: demo-spin 1.2s linear infinite;
}

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

.demo-form label {
  display: block;
  margin: 0.75rem 0 0.25rem;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  max-width: 28rem;
  font: inherit;
  padding: 0.4rem 0.5rem;
}

.demo-form button {
  margin-top: 0.75rem;
  font: inherit;
  padding: 0.4rem 1rem;
}
