/* ============================================
   JAP TIMER MODAL - SLEEK & COMPACT
   ============================================ */

.timer-modal {
  max-width: 320px;
  padding: var(--space-4);
}

.timer-modal .modal-header {
  padding: 0 0 var(--space-3) 0;
  margin-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.timer-modal .modal-header h3 {
  font-size: var(--font-base);
  margin: 0;
}

.timer-modal .modal-content {
  padding: 0;
}

/* Timer Presets - Minimal */
.timer-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.timer-preset-btn {
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-size: var(--font-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.timer-preset-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.timer-preset-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
  border-color: #3b82f6;
  color: #3b82f6;
}

/* Custom Timer Input - Compact */
.custom-timer-input {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
}

.custom-timer-input label {
  font-size: var(--font-xs);
  color: var(--color-text-secondary);
  font-weight: var(--font-medium);
}

.timer-input-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.timer-btn-adjust {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.timer-btn-adjust:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #3b82f6;
  transform: scale(1.05);
}

.timer-btn-adjust i {
  width: 14px;
  height: 14px;
}

#customTimerMinutes {
  flex: 1;
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--font-base);
  font-weight: var(--font-semibold);
  text-align: center;
  min-width: 60px;
}

#customTimerMinutes:focus {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

/* Timer Modal Actions - Compact */
.timer-modal .modal-actions {
  display: flex;
  gap: var(--space-2);
  padding-top: 0;
}

.timer-modal .btn-primary,
.timer-modal .btn-secondary {
  flex: 1;
  padding: var(--space-2-5) var(--space-3);
  font-size: var(--font-sm);
  justify-content: center;
}

.timer-modal .btn-primary i,
.timer-modal .btn-secondary i {
  width: 14px;
  height: 14px;
}

/* Quick Action Button Style */
#japTimerBtn {
  position: relative;
}

#japTimerBtn.active::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .timer-modal {
    max-width: calc(100% - var(--space-6));
  }
  
  .timer-presets {
    gap: var(--space-1);
  }
  
  .timer-preset-btn {
    padding: var(--space-2);
    font-size: 10px;
  }
  
  .timer-preset-btn i {
    width: 14px;
    height: 14px;
  }
}

/* Header Timer Jap Timer Active State */
.session-timer.jap-timer-active,
.session-timer-desktop.jap-timer-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(147, 51, 234, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.3);
  animation: pulse-timer 2s infinite;
}

@keyframes pulse-timer {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0);
  }
}

.session-timer.jap-timer-active i,
.session-timer-desktop.jap-timer-active i {
  color: #3b82f6;
}

.session-timer.jap-timer-active span,
.session-timer-desktop.jap-timer-active span {
  color: #3b82f6;
  font-weight: var(--font-bold);
}
