/* Rust-timer: gedeelde styling voor zowel het overlay-paneel op de homepage (index.php)
   als de losse pagina (timer.php). Zelfstandig (gebruikt alleen --ink/--paper/--accent-*
   custom properties, die beide pagina's al in hun eigen :root definiëren). */

.timer-veld { margin-bottom: 18px; }
.timer-veld label,
.timer-veld-label-tekst {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,253,248,0.75);
  margin-bottom: 6px;
}
.timer-veld-invoer { display: flex; align-items: center; gap: 10px; }
.timer-veld input[type="number"] {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(20,19,15,0.35);
  color: #fdfaf3;
  padding: 9px 16px;
  font-size: 0.95rem;
  width: 90px;
}
.timer-veld-invoer span { font-size: 0.85rem; color: rgba(255,253,248,0.7); }
.timer-veld input:disabled { opacity: 0.55; cursor: not-allowed; }
.timer-veld input:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px; }

.timer-geluid-lijst { display: flex; flex-direction: column; gap: 8px; }
.timer-geluid-optie {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  cursor: pointer;
}
.timer-geluid-optie:has(input:checked) {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
}
.timer-geluid-optie input[type="radio"] { accent-color: var(--accent-night); }
html[data-daynight="day"] .timer-geluid-optie input[type="radio"] { accent-color: var(--accent-day); }
.timer-geluid-optie span { flex: 1; font-size: 0.92rem; color: #fdfaf3; }
.timer-geluid-optie input:disabled ~ span { opacity: 0.55; }
.timer-preview-knop {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fdfaf3;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.timer-preview-knop svg { width: 13px; height: 13px; fill: currentColor; }
.timer-preview-knop.speelt { background: var(--accent-night); }
html[data-daynight="day"] .timer-preview-knop.speelt { background: var(--accent-day); }

.timer-status {
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255,253,248,0.85);
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 4px 0 20px;
}

.timer-start-knop {
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent-night);
  color: #14130f;
  transition: filter 0.2s ease;
}
html[data-daynight="day"] .timer-start-knop { background: var(--accent-day); }
.timer-start-knop:hover { filter: brightness(1.08); }
.timer-start-knop.timer-loopt { background: rgba(255,255,255,0.12); color: #fdfaf3; border: 1px solid rgba(255,255,255,0.25); }

.timer-toepassen-knop {
  display: block;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 10px;
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  color: #fdfaf3;
}
.timer-toepassen-knop:hover { background: rgba(255,255,255,0.14); }

.timer-attributie {
  text-align: center;
  font-size: 0.72rem !important;
  color: rgba(255,253,248,0.5) !important;
  margin: 18px 0 0 !important;
}
.timer-attributie a { color: rgba(255,253,248,0.7); }

.timer-uitleg {
  font-size: 0.85rem !important;
  line-height: 1.6;
  color: rgba(255,253,248,0.65) !important;
  margin: 18px 0 0 !important;
  text-align: left !important;
}

/* Homepage-specifiek: het belletje-icoon in de geluidsbalk, en het kleine statuskaartje
   dat verschijnt zodra de timer loopt en het volledige paneel weer dicht is. */
.timer-knop.actief {
  background: var(--accent-night);
  box-shadow: 0 0 0 3px rgba(127,163,217,0.35);
}
html[data-daynight="day"] .timer-knop.actief { background: var(--accent-day); box-shadow: 0 0 0 3px rgba(201,131,47,0.35); }

.timer-statuskaart {
  position: fixed;
  left: 50%; bottom: 84px;
  transform: translateX(-50%) translateY(6px);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 9px 18px;
  border-radius: 999px;
  background: rgba(20,19,15,0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5);
  color: #fdfaf3;
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.timer-statuskaart.zichtbaar { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.timer-statuskaart button {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #fdfaf3;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.timer-statuskaart button svg { width: 11px; height: 11px; fill: currentColor; }
@media (max-width: 719px) {
  .timer-statuskaart { bottom: 76px; font-size: 0.76rem; padding: 8px 8px 8px 14px; }
}

/* Visueel moment bij elk bel-signaal: een zachte ademcirkel + korte tekst ("Even loslaten...").
   Elementen worden door rusttimer.js zelf aangemaakt en aan <body> toegevoegd - geen HTML
   nodig op de pagina's zelf. */
.timer-fx-cirkel {
  position: fixed; left: 50%; top: 50%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1.5px solid rgba(253,250,243,0.55);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
}
.timer-fx-cirkel.speelt { animation: timerCirkelRipple 3s cubic-bezier(.2,.6,.3,1); }
@keyframes timerCirkelRipple {
  0% { opacity: 0.8; width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  70% { opacity: 0.12; }
  100% { opacity: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; }
}

.timer-fx-ademtekst {
  position: fixed; left: 50%; bottom: 30%;
  transform: translateX(-50%);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(253,250,243,0.88);
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
  opacity: 0;
  z-index: 40;
  pointer-events: none;
  white-space: nowrap;
}
.timer-fx-ademtekst.speelt { animation: timerAdemtekstFade 4.5s ease-in-out; }
@keyframes timerAdemtekstFade {
  0% { opacity: 0; transform: translate(-50%, 6px); }
  20% { opacity: 1; transform: translate(-50%, 0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -6px); }
}
@media (prefers-reduced-motion: reduce) {
  .timer-fx-cirkel.speelt, .timer-fx-ademtekst.speelt { animation: none; }
}
