/* ============ تایمر ============ */

.timer-main {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  direction: rtl;
}

/* در RTL: اولین فرزند سمت راست — می‌خواهیم ثانیه راست، ساعت چپ → ترتیب را برعکس می‌کنیم */

.timer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.timer-arrow {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  width: 100%;
  max-width: 68px;
  height: 22px;
  border-radius: 8px;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-family: inherit;
}
.timer-arrow:hover { background: rgba(255, 255, 255, 0.2); }
.timer-arrow:active { transform: scale(0.96); }

.timer-num {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  width: 68px;
  text-align: center;
  padding: 6px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: inherit;
  outline: none;
  transition: color 0.2s, border-color 0.2s;
}
.timer-num:focus { border-color: #3b6ef5; background: rgba(255, 255, 255, 0.12); }

.timer-num.danger {
  color: #ef4444;
  animation: timerPulse 0.7s ease-in-out infinite;
}
@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.timer-label {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.timer-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.timer-btn-start,
.timer-btn-pause {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}
.timer-btn-start { background: #3b6ef5; color: #fff; box-shadow: 0 6px 18px rgba(59, 110, 245, 0.4); }
.timer-btn-start:hover { background: #2d5ae0; transform: translateY(-1px); }
.timer-btn-pause { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.timer-btn-pause:hover { background: rgba(255, 255, 255, 0.2); }
.timer-btn-start.hidden, .timer-btn-pause.hidden { display: none; }

@media (max-width: 480px) {
  .timer-num { font-size: 24px; width: 58px; }
}