/* ============================================
   pomodoro.css — Focus Timer: ring timer, mode tabs, stats, weekly chart,
   recent sessions, daily focus goal.
   Part of the app.css split.
   ============================================ */

.pomo-layout {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px; align-items: start;
}
.pomo-timer-card {
    background: linear-gradient(180deg, rgba(24,37,81,0.22), var(--bg-card));
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.pomo-mode-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pomo-mode {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.18s;
}
.pomo-mode:hover { background: var(--bg-hover); color: var(--text-primary); }
.pomo-mode.active { background: var(--gold-dim); border-color: var(--gold); color: var(--gold-light); }

.pomo-ring-wrap { position: relative; width: 260px; height: 260px; }
.pomo-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.pomo-ring-bg { fill: none; stroke: var(--bg-elevated); stroke-width: 14; }
.pomo-ring-fg {
    fill: none; stroke: var(--gold); stroke-width: 14; stroke-linecap: round;
    transition: stroke-dashoffset 1s linear, stroke 0.3s;
}
.pomo-ring-center {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px;
}
.pomo-time { font-size: 3.2rem; font-weight: 800; letter-spacing: 0.02em; color: var(--gold); font-variant-numeric: tabular-nums; }
.pomo-state-label { font-size: 0.85rem; color: var(--text-secondary); }

.pomo-focus-on { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.pomo-focus-on label { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.pomo-focus-on label i { color: var(--gold); }

.pomo-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; }
.pomo-btn-main { min-width: 130px; font-size: 0.95rem; }

.pomo-settings {
    width: 100%; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center;
    padding-top: 16px; border-top: 1px solid var(--border);
}
.pomo-setting { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-secondary); }
.pomo-setting label { color: var(--text-muted); font-weight: 600; }
.pomo-setting input {
    width: 56px; padding: 5px 8px; text-align: center;
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 0.82rem;
}
.pomo-auto { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-secondary); cursor: pointer; width: 100%; justify-content: center; }

.pomo-side { display: flex; flex-direction: column; gap: 16px; }
.pomo-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pomo-stat {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
}
.pomo-stat-val { font-size: 1.7rem; font-weight: 800; color: var(--gold); line-height: 1; }
.pomo-stat-val span { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-left: 2px; }
.pomo-stat-lbl { font-size: 0.74rem; color: var(--text-muted); }

.pomo-week-card, .pomo-recent-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px;
}
.pomo-card-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 14px;
}
.pomo-card-title i { color: var(--gold); }

.pomo-week-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.pomo-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.pomo-bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.pomo-bar {
    width: 100%; border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    min-height: 3px; transition: height 0.4s;
}
.pomo-bar.empty { background: var(--bg-elevated); }
.pomo-bar.today { box-shadow: 0 0 0 2px var(--gold-glow); }
.pomo-bar-lbl { font-size: 0.68rem; color: var(--text-muted); }
.pomo-bar-lbl.today { color: var(--gold-light); font-weight: 700; }

.pomo-recent-list { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; }
.pomo-recent-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 6px;
    border-bottom: 1px solid var(--border);
}
.pomo-recent-item:last-child { border-bottom: none; }
.pomo-recent-ic { font-size: 1.1rem; flex-shrink: 0; }
.pomo-recent-info { flex: 1; min-width: 0; }
.pomo-recent-top { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.pomo-recent-task { font-size: 0.74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pomo-recent-time { font-size: 0.7rem; color: var(--text-muted); flex-shrink: 0; }
.pomo-empty { font-size: 0.82rem; color: var(--text-muted); text-align: center; padding: 18px 0; font-style: italic; }

/* ── Pomodoro Daily Focus Goal ─────────────────── */
.pomo-goal-stat { position: relative; }
.pomo-goal-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.pomo-goal-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.pomo-goal-setter {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pomo-goal-setter label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pomo-goal-setter input {
  width: 70px;
  padding: 5px 8px;
  font-size: 0.82rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  text-align: center;
}

@media (max-width: 920px) {
    .pomo-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .pomo-stats-grid { grid-template-columns: 1fr 1fr; }
}
