/* Pomodoro timer page styles */

.timer-panel { text-align: center; }

.mode-tabs {
  display: inline-flex; gap: 6px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; margin-bottom: 8px;
  flex-wrap: wrap; justify-content: center;
}
.mode-tab {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; transition: all 0.15s ease;
}
.mode-tab:hover { color: var(--text); }
.mode-tab.active { background: var(--grad); color: #fff; }

.clock-wrap { position: relative; width: 260px; height: 260px; margin: 26px auto 8px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--surface-3); stroke-width: 14; }
.ring-progress {
  fill: none; stroke-width: 14; stroke-linecap: round;
  stroke: var(--accent);
  transition: stroke-dashoffset 0.35s linear, stroke 0.3s ease;
}
.clock-face {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.clock-time { font-size: 3.4rem; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.clock-label { color: var(--muted); font-weight: 600; margin-top: 4px; }

.timer-actions { justify-content: center; }
.round-info { color: var(--muted); margin: 18px 0 0; }
.round-info strong { color: var(--accent-3); }

/* Mode color theming via body class */
body.mode-work { --ring: var(--accent); }
body.mode-short { --ring: var(--accent-3); }
body.mode-long { --ring: var(--accent-2); }
.ring-progress { stroke: var(--ring, var(--accent)); }

.settings-title { margin: 0 0 4px; font-size: 1.15rem; }
.settings-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 12px;
}
@media (max-width: 620px) { .settings-grid { grid-template-columns: repeat(2, 1fr); } }
.settings-grid .field { margin-top: 0; }
