/*
  pomodoro.css — the dock time-badge (always visible, lives inside
  #settings-dock) plus the full-control layout shown inside the
  shared Modal when that badge is clicked (js/pomodoro.js).

  This started as its own floating pill+card widget with a fixed
  screen position, but QA found that ANY fixed corner eventually
  overlaps some in-flow content on a content-heavy, scrollable app
  like this one — bottom-right collided with the quiz view's own
  "Next question" button, and bottom-left (tried as a fix) then
  collided with flashcard/topic grid cards. #settings-dock's own
  position has never shown this problem anywhere in QA, so the badge
  lives there instead of floating independently, and the full
  controls only ever appear in a centered modal — no fixed-position
  footprint of their own at all.

  Uses var(--radius-lg)/var(--shadow)/var(--gradient-brand, falls back
  to var(--accent) via .btn-primary) so it re-skins automatically
  across all theme combinations — no per-theme override file needed.
*/

/* ---- Dock badge additions (base button is #pomodoro-toggle,
   styled generically as .btn.btn-secondary.btn-sm in index.html) ---- */
#pomodoro-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pomodoro-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}
.pomodoro-dot-running {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.pomodoro-badge-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 3.2em;
}

/* ---- Modal body (js/pomodoro.js's buildModalBody) ---- */
.pomodoro-preset-name {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

/* Adaptive, same idea as .settings-tab-row/.settings-scheme-row: shrink
   to fit a short preset's sessions and center the resulting pill as a
   unit (width:fit-content + margin:auto, rather than stretching to
   width:100% and centering the *content inside* an oversized box).
   Custom presets can have many sessions (Classic's built-in loop alone
   has 8) that won't fit a ~400px modal on one line — max-width:100% +
   overflow-x:auto caps it and makes it scroll instead of wrapping.
   justify-content stays flex-start (not center): centering an
   overflowing flex row clips it equally on both ends and leaves
   scrollLeft:0 pointing at neither edge — left-aligning is what makes
   the first tab (and the scrollbar's resting position) whole. */
.pomodoro-modal-body .pomodoro-session-tabs {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pomodoro-session-tabs::-webkit-scrollbar { display: none; }
.pomodoro-session-tabs .subtab { flex: 0 0 auto; white-space: nowrap; }

.pomodoro-display {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.02em;
  margin: 1.2rem 0 1.1rem;
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pomodoro-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.pomodoro-ctrl {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pomodoro-ctrl svg { width: 1.1rem; height: 1.1rem; }

.pomodoro-ctrl-lg {
  width: 3.4rem;
  height: 3.4rem;
}
.pomodoro-ctrl-lg svg { width: 1.4rem; height: 1.4rem; }

.pomodoro-notify-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 0.8rem;
}

.pomodoro-sessions {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
