/* Timers styles (scaffold) */
/* Timer sections styled below */

/* Custom Timers Styling */
.timer-card { background: var(--card-bg); border-radius: 10px; padding: 16px; margin-bottom: 16px; transition: all 0.3s ease; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); }
.timer-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.timer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); gap: 8px; }
.timer-title { margin: 0; font-size: 1.1rem; color: var(--text-primary); }
.timer-display { font-family: 'Courier New', monospace; font-size: 1.2rem; font-weight: 600; color: var(--accent); background: rgba(39, 174, 96, 0.1); padding: 4px 8px; border-radius: 4px; min-width: 90px; text-align: center; transition: color 0.3s ease; }
/* Prevent squish without cutting off text */
.timer-header .timer-title { flex: 1 1 auto; font-size: 0.9rem; white-space: normal; overflow: visible; text-overflow: clip; }
.timer-header .timer-display { flex: 0 0 auto; }
.timer-complete .timer-display { color: var(--success); animation: pulse 2s infinite; }
@keyframes cardFlash { 0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); transform: scale(1); } 20% { box-shadow: 0 0 0 6px rgba(46, 125, 50, 0.25); transform: scale(1.01); } 60% { box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12); transform: scale(1.005); } 100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); transform: scale(1); } }
.flash-pulse { animation: cardFlash 900ms ease; }
@media (prefers-reduced-motion: reduce) { .flash-pulse { animation: none; } }
.timer-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.timer-button { padding: 8px 12px; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 6px; }
.timer-button i { font-size: 0.9em; }
.timer-button.start { background: var(--success); color: #fff; }
.timer-button.reset { background: var(--danger); color: #fff; }
.timer-button.start:hover { transform: translateY(-1px); }
.timer-button.reset:hover { background: #c0392b; transform: translateY(-1px); }
.timer-progress { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.timer-progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), #2ecc71); border-radius: 3px; transition: width 0.3s ease, background 0.3s ease; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }

/* One-hour pills expire chip */
.one-hour-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--card-hover); border: 1px solid var(--border-color); border-radius: 999px; font-size: 0.85rem; color: var(--text-secondary); }
.one-hour-chip .chip-time { font-weight: 700; color: var(--text); letter-spacing: 0.5px; font-family: 'Poppins', monospace; }
.one-hour-chip .chip-label { opacity: 0.9; }
.one-hour-chip .chip-sep { opacity: 0.5; }

/* Expiration timer styles */
.expiration-timer { margin-top: 8px; font-size: 0.9rem; }
.expiration-progress { height: 6px; background: var(--muted-bg); border-radius: 3px; overflow: hidden; margin-top: 4px; }

/* Custom Timers controls */
.custom-chip { padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 20px; background: var(--card-hover); color: var(--text); cursor: pointer; }
.custom-stepper { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.stepper-btn { height: 40px; width: 44px; border-radius: 6px; border: 1px solid var(--border-color); background: var(--card-hover); color: var(--text); cursor: pointer; font-weight: 700; }
.stepper-input { height: 40px; border-radius: 6px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text); text-align: center; font-weight: 600; }

/* Light theme tweaks */
:root[data-theme="light"] .timer-button { background: var(--button-bg); color: var(--primary); border: 1px solid var(--border-color); transition: all 0.2s ease; font-weight: 500; }
:root[data-theme="light"] .timer-button:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 2px 5px rgba(63, 81, 181, 0.2); }
:root[data-theme="light"] .timer-card { background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: var(--card-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
:root[data-theme="light"] .timer-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
:root[data-theme="light"] body { color: var(--text); line-height: 1.6; background-color: var(--bg); }
:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea { background: var(--input-bg); border: 1px solid var(--input-border); color: var(--text); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
:root[data-theme="light"] input:focus,
:root[data-theme="light"] select:focus,
:root[data-theme="light"] textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1); outline: none; }

/* Responsive tweaks for timers */
@media (max-width: 1024px) {
  .timer-display { font-size: 1em; padding: 12px; }
  .timer-title { font-size: 1rem; }
  .timer-controls { grid-template-columns: 1fr 1fr; gap: 6px; }
}
@media (max-width: 480px) {
  .timer-display { font-size: 0.95em; }
}
