/* Daily Workout App — custom styles */

* { -webkit-tap-highlight-color: transparent; }

html, body { min-height: 100vh; }

#app { min-height: 100vh; display: flex; flex-direction: column; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #12121a; }
::-webkit-scrollbar-thumb { background: #3a3a48; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #f97316; }

.card {
  background: linear-gradient(160deg, #16161f 0%, #12121a 100%);
  border: 1px solid #24242f;
  border-radius: 1rem;
}

.card-glow {
  box-shadow: 0 0 0 1px rgba(249,115,22,0.15), 0 8px 24px -8px rgba(249,115,22,0.25);
}

.day-pill {
  transition: all .18s ease;
}
.day-pill:active { transform: scale(0.96); }

.set-row {
  transition: background-color .15s ease, border-color .15s ease;
}
.set-row.done {
  background: rgba(249,115,22,0.08);
  border-color: rgba(249,115,22,0.35);
}

.checkbox-btn {
  width: 2.25rem; height: 2.25rem; border-radius: 0.6rem;
  border: 2px solid #3a3a48;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease; cursor: pointer; flex-shrink: 0;
}
.checkbox-btn.checked {
  background: #f97316; border-color: #f97316; color: #0b0b0f;
}

input[type=number] {
  background: #1a1a24; border: 1px solid #2c2c38; border-radius: 0.5rem;
  color: #fff; text-align: center; font-weight: 600;
  -moz-appearance: textfield;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.progress-bar-bg { background: #1e1e28; border-radius: 999px; overflow: hidden; }
.progress-bar-fill {
  background: linear-gradient(90deg, #f97316, #fb923c);
  height: 100%; border-radius: 999px; transition: width .3s ease;
}

.fade-in { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.pulse-ring {
  animation: pulseRing 1.6s ease-out infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(249,115,22,0.5); }
  100% { box-shadow: 0 0 0 12px rgba(249,115,22,0); }
}

.tab-btn.active {
  color: #fff;
  border-bottom: 2px solid #f97316;
}

.bottom-nav {
  backdrop-filter: blur(12px);
  background: rgba(11,11,15,0.9);
}

.confetti-emoji {
  position: fixed; top: -40px; font-size: 1.5rem; pointer-events: none;
  animation: fall linear forwards;
  z-index: 60;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(360deg); opacity: 0.2; }
}

.rest-timer-ring {
  transition: stroke-dashoffset 1s linear;
}
