
/* ══════════════════════════════════════════════
   NAVBAR CHIP
══════════════════════════════════════════════ */
.idle-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  transition: background .3s, border-color .3s;
  user-select: none;
}

.idle-chip__icon {
  display: flex;
  align-items: center;
  color: #6ee7f7;
  opacity: .85;
  transition: color .3s;
}

.idle-chip__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: inherit;
  min-width: 54px;
  text-align: center;
}

/* progress track */
.idle-chip__track {
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
}

.idle-chip__fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #6ee7f7, #38bdf8, #4ade80);
  border-radius: 3px;
  transition: width .9s linear, background .6s;
}

/* states */
.idle-chip.chip--warn  .idle-chip__fill { background: linear-gradient(90deg,#fbbf24,#f59e0b); }
.idle-chip.chip--warn  .idle-chip__icon { color: #fbbf24; }
.idle-chip.chip--danger .idle-chip__fill { background: linear-gradient(90deg,#f87171,#ef4444); }
.idle-chip.chip--danger .idle-chip__icon { color: #f87171; }

/* light-mode fallback */
body:not(.dark-mode) .idle-chip {
  border-color: rgba(0,0,0,.1);
  background: rgba(0,0,0,.04);
  color: #334155;
}
body:not(.dark-mode) .idle-chip__icon { color: #0ea5e9; }


/* ══════════════════════════════════════════════
   IDLE MODAL
══════════════════════════════════════════════ */
.idle-modal {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  background: #fff;
  box-shadow: 0 32px 80px rgba(0,0,0,.18);
}

body.dark-mode .idle-modal {
  background: #1e2433;
  color: #e2e8f0;
}

/* accent bar at top — shrinks as time runs out */
.idle-modal__accent-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #38bdf8, #4ade80);
  transition: width 1s linear, background .5s;
  border-radius: 0;
}

.idle-modal__body {
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── Ring ── */
.idle-ring-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.idle-ring-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.idle-ring__track {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 6;
}

body.dark-mode .idle-ring__track { stroke: #334155; }

.idle-ring__fill {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke .4s;
}

.idle-ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

body.dark-mode .idle-ring__label { color: #f8fafc; }

/* urgency pulse */
.idle-ring-wrap.pulse .idle-ring__fill { stroke: #ef4444; }
.idle-ring-wrap.pulse .idle-ring__label { color: #ef4444; }

@keyframes pulseRing {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.06); opacity: .8; }
}
.idle-ring-wrap.pulse { animation: pulseRing .7s ease-in-out infinite; }

/* ── Copy ── */
.idle-modal__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

body.dark-mode .idle-modal__title { color: #f1f5f9; }

.idle-modal__sub {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

body.dark-mode .idle-modal__sub { color: #94a3b8; }

/* ── Buttons ── */
.idle-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.btn-stay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(14,165,233,.35);
}

.btn-stay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14,165,233,.45);
}

.btn-stay:active { transform: translateY(0); }

.btn-go {
  padding: 10px 20px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.btn-go:hover {
  border-color: #f87171;
  color: #ef4444;
}

body.dark-mode .btn-go {
  border-color: #334155;
  color: #64748b;
}