/**
 * Pomodoro Timer Widget Styles
 * Premium design matching EchoShadow sidebar
 */

/* Widget Container */
.pomodoro-widget {
  background: rgba(15, 23, 42, 0.9); /* slate-900/90 */
  border: 1px solid rgba(30, 41, 59, 0.8); /* slate-800 border */
  border-radius: 16px; /* rounded-2xl */
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  margin-top: 12px;
  transition: all 0.3s ease;
}

.pomodoro-widget:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Header */
.pomodoro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pomodoro-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb; /* slate-200 */
  letter-spacing: 0.02em;
}

.pomodoro-mode-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.pomodoro-mode-focus {
  background: rgba(59, 130, 246, 0.2); /* blue-500/20 */
  color: #60a5fa; /* blue-400 */
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.pomodoro-mode-break {
  background: rgba(96, 165, 250, 0.2); /* blue-400/20 */
  color: #93c5fd; /* blue-300 */
  border: 1px solid rgba(96, 165, 250, 0.4);
}

/* Circular Timer */
.pomodoro-timer-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pomodoro-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pomodoro-circle-bg {
  transition: stroke 0.3s ease;
}

.pomodoro-progress-circle {
  transition: stroke-dashoffset 0.5s ease, stroke 0.3s ease;
}

.pomodoro-time {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 600;
  color: #f9fafb; /* slate-50 */
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Info Line */
.pomodoro-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8rem;
  color: #94a3b8; /* slate-400 */
  margin-bottom: 16px;
  text-align: center;
}

/* Time Settings */
.pomodoro-time-settings {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pomodoro-time-setting {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pomodoro-time-label {
  font-size: 0.8rem;
  color: #cbd5e1; /* slate-300 */
  font-weight: 500;
  min-width: 50px;
  text-align: left;
}

.pomodoro-time-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 2px;
}

.pomodoro-time-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.pomodoro-time-btn:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  transform: scale(1.1);
}

.pomodoro-time-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.pomodoro-time-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pomodoro-time-value {
  min-width: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f9fafb;
  font-variant-numeric: tabular-nums;
}

.pomodoro-time-unit {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-left: 2px;
}

.pomodoro-cycles-info {
  font-size: 0.8rem;
  color: #94a3b8;
}

.pomodoro-cycles-info strong {
  color: #60a5fa; /* blue-400 */
  font-weight: 600;
}

.pomodoro-cycles {
  color: #60a5fa;
}

/* Controls */
.pomodoro-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pomodoro-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  outline: none;
  position: relative;
  overflow: hidden;
}

.pomodoro-btn:active {
  transform: scale(0.98);
}

.pomodoro-btn-start-pause {
  flex: 2;
  min-width: 0;
}

.pomodoro-btn-start {
  background: rgba(59, 130, 246, 0.2); /* blue-500/20 */
  color: #60a5fa; /* blue-400 */
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.pomodoro-btn-start:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.6);
  color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.pomodoro-btn-pause {
  background: rgba(234, 179, 8, 0.2); /* amber-500/20 */
  color: #fbbf24; /* amber-400 */
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.pomodoro-btn-pause:hover {
  background: rgba(234, 179, 8, 0.3);
  border-color: rgba(234, 179, 8, 0.6);
  color: #fcd34d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.2);
}

.pomodoro-btn-secondary {
  flex: 1;
  background: rgba(148, 163, 184, 0.1); /* slate-400/10 */
  color: #cbd5e1; /* slate-300 */
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.8rem;
  padding: 10px 12px;
}

.pomodoro-btn-secondary:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.5);
  color: #e2e8f0;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .pomodoro-widget {
    padding: 14px;
    margin-top: 10px;
  }

  .pomodoro-timer-circle {
    width: 100px;
    height: 100px;
  }

  .pomodoro-time {
    font-size: 1.3rem;
  }

  .pomodoro-info {
    font-size: 0.75rem;
    gap: 6px;
  }

  .pomodoro-controls {
    gap: 6px;
  }

  .pomodoro-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .pomodoro-btn-secondary {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
}

/* Animation for mode badge */
@keyframes fadeInBadge {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pomodoro-mode-badge {
  animation: fadeInBadge 0.3s ease;
}

/* Completion Notification */
.pomodoro-notification {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(15, 23, 42, 0.98);
  border: 2px solid rgba(59, 130, 246, 0.6);
  border-radius: 12px;
  padding: 18px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f9fafb;
  text-align: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(12px);
  max-width: 85%;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.5;
}

.pomodoro-notification-show {
  animation: pomodoroNotificationShow 0.3s ease forwards;
}

.pomodoro-notification-hide {
  animation: pomodoroNotificationHide 0.3s ease forwards;
}

@keyframes pomodoroNotificationShow {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes pomodoroNotificationHide {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* Make widget container relative for notification positioning */
.pomodoro-widget {
  position: relative;
}

