/* ===== AMBIENT TIMER PAGE ===== */

/* ---- Mode tabs ---- */
.timer-modes {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.timer-mode-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.timer-mode-btn.active,
.timer-mode-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(139,124,248,0.06);
}

/* ---- Ring display ---- */
.timer-ring-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2rem;
  position: relative;
  width: 260px;
  height: 260px;
}

.timer-ring-svg {
  width: 260px;
  height: 260px;
  transform: rotate(-90deg);
}

.timer-ring-bg {
  fill: none;
  stroke: var(--surface2);
  stroke-width: 8;
}

.timer-ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.4s ease;
}

.timer-ring-progress.break-mode {
  stroke: var(--accent2);
}

.timer-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.timer-display {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1;
}

.timer-phase-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.timer-cycle-info {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ---- Custom minutes input ---- */
.timer-custom-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.timer-custom-row label {
  font-size: 0.85rem;
  color: var(--muted);
}

.timer-minutes-input {
  width: 80px;
  padding: 0.45rem 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-align: center;
  outline: none;
}

.timer-minutes-input:focus {
  border-color: var(--accent);
}

/* ---- Controls ---- */
.timer-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.timer-btn {
  padding: 0.7rem 2rem;
  border-radius: 99px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  border: none;
}

.timer-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.timer-btn:active { transform: translateY(0); }

.timer-btn--start {
  background: var(--accent);
  color: #fff;
}

.timer-btn--reset {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.timer-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

/* ---- End bell toggle ---- */
.timer-options {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.timer-option-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}

.timer-option-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ---- Ambient sound ---- */
.timer-sound-section {
  max-width: 560px;
  margin: 0 auto;
}

.timer-sound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.timer-sound-btn {
  padding: 0.5rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.76rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.3;
}

.timer-sound-btn:hover { color: var(--text); border-color: var(--accent); }
.timer-sound-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(139,124,248,0.08);
}

/* ---- Completion banner ---- */
.timer-complete-msg {
  display: none;
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(139,124,248,0.1);
  border: 1px solid var(--accent);
  margin-bottom: 2rem;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.timer-complete-msg.visible { display: block; }

/* ---- Cycle dots ---- */
.timer-cycle-dots {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cycle-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: transparent;
  transition: background 0.4s ease;
}

.cycle-dot--done {
  background: var(--accent);
}
