/* ===== POMODORO STYLES ===== */
/* All Pomodoro-related styles are consolidated here for better organization */

/* ===== BASE STYLES ===== */
/* Pomodoro Styles - Standalone Page */
body.pomodoro-page {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Video Container */
.pomodoro-page .background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.pomodoro-page .background-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pomodoro-page .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

/* ===== SPA MODE LAYOUT ===== */
/* This applies to SPA mode when pomodoro is active in main app */
#pomodoro-mode {
  /* keep content clear of header and sidebar */
  padding-top: 60px;
  /* use layout space right of sidebar but keep true horizontal center */
  margin-left: 70px;
  width: calc(100vw - 70px);
  min-height: calc(100vh - 50px);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform: translateZ(0); /* Force hardware acceleration */
  contain: layout; /* Optimize layout calculations */
}

/* ===== Fullscreen fixes for Pomodoro - Synchronized ===== */
/* Pomodoro mode fullscreen content container */
/* Apply in JS-toggled and native fullscreen modes */
.fullscreen #pomodoro-mode.active > *,
html:fullscreen #pomodoro-mode.active > *,
::root:fullscreen #pomodoro-mode.active > *,
::-webkit-full-screen #pomodoro-mode.active > * {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Consistent typography scaling with regular mode */
.fullscreen .pomodoro-timer-display,
html:fullscreen .pomodoro-timer-display,
::root:fullscreen .pomodoro-timer-display,
::-webkit-full-screen .pomodoro-timer-display {
  font-size: min(10vw, 80px) !important;
  margin: 20px 0 !important;
  text-align: center;
}

.fullscreen .pomodoro-phase-text,
html:fullscreen .pomodoro-phase-text,
::root:fullscreen .pomodoro-phase-text,
::-webkit-full-screen .pomodoro-phase-text {
  font-size: min(3vw, 24px) !important;
  margin: 10px 0 !important;
}

.fullscreen .pomodoro-controls,
html:fullscreen .pomodoro-controls,
::root:fullscreen .pomodoro-controls,
::-webkit-full-screen .pomodoro-controls {
  margin: 20px 0 !important;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.fullscreen .pomodoro-main-container,
html:fullscreen .pomodoro-main-container,
::root:fullscreen .pomodoro-main-container,
::-webkit-full-screen .pomodoro-main-container {
  width: 100% !important;
  max-width: min(1400px, 90vw) !important;
  padding: 20px !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* In fullscreen, remove header/sidebar offsets on the wrapper */
.fullscreen #pomodoro-mode,
html:fullscreen #pomodoro-mode,
::root:fullscreen #pomodoro-mode,
::-webkit-full-screen #pomodoro-mode {
  padding-top: 0 !important;
  margin-left: 0 !important;
  width: 100vw !important;
  min-height: 100vh !important;
}

.fullscreen .pomodoro-panel,
html:fullscreen .pomodoro-panel,
::root:fullscreen .pomodoro-panel,
::-webkit-full-screen .pomodoro-panel {
  background: rgba(0, 0, 0, 0.8) !important;
  border: 1px solid rgba(242, 101, 7, 0.3) !important;
  margin: 10px 0 !important;
}

#pomodoro-mode .pomodoro-main-container {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 1440px;
  padding: 2rem;
  display: grid;
  /* Symmetric side columns to keep center perfectly centered */
  grid-template-columns: minmax(300px, 360px) minmax(540px, 660px) minmax(300px, 360px);
  gap: 32px;
  margin: 0 auto;
  align-items: start;
  border-radius: 20px;
  position: relative;
  transform: translateZ(0);
  will-change: auto;
}

/* Two separate panels */
.pomodoro-panel {
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(242, 101, 7, 0.3);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
  padding: 1.5rem 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pomodoro-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.pomodoro-todo-panel {
  display: flex;
  flex-direction: column;
}

.pomodoro-timer-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pomodoro-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#pomodoro-mode .pomodoro-display { margin-bottom: 1rem; }

#pomodoro-mode .pomodoro-controls {
  margin: 1.25rem 0 1.5rem;
}

/* Sticky settings panel for easier tweaking */
.pomodoro-settings-panel .pomodoro-settings {
  position: sticky;
  top: 10px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(242, 101, 7, 0.3);
  padding: 1.25rem;
}

.pomodoro-settings-panel .pomodoro-stats { gap: 0.75rem; }

#pomodoro-mode .stat-item {
  padding: 0.9rem 1.2rem;
}

/* ===== STANDALONE PAGE COMPONENTS ===== */
/* Header - only for standalone pomodoro page */
.pomodoro-page .header {
  background-color: #333;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.pomodoro-page .logo {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.pomodoro-page .header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pomodoro-page .header-btn {
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.pomodoro-page .header-btn:hover {
  transform: scale(1.05);
}

/* Sidebar - only for standalone pomodoro page */
.pomodoro-page .sidebar {
  position: fixed;
  left: 0;
  top: 50px;
  bottom: 0;
  width: 70px;
  background-color: #1a1a1a;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pomodoro-page .sidebar-item {
  width: 100%;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  text-decoration: none;
  position: relative;
}

.pomodoro-page .sidebar-item:hover {
  background: rgba(242, 101, 7, 0.1);
  transform: translateX(2px);
}

.pomodoro-page .sidebar-item img {
  width: 28px;
  height: 28px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.pomodoro-page .sidebar-item:hover img {
  opacity: 1;
  transform: scale(1.1);
}

.pomodoro-page .sidebar-item span {
  font-size: 12px;
  color: #fff;
  text-align: center;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.pomodoro-page .sidebar-item:hover span {
  color: #f26507;
  text-shadow: 0 1px 3px rgba(242, 101, 7, 0.3);
}

.pomodoro-page .sidebar-item.active {
  background: linear-gradient(135deg, #f26507, #ff8c42);
  color: #fff;
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(242, 101, 7, 0.3);
}

.pomodoro-page .sidebar-item.active img {
  opacity: 1;
  filter: brightness(1.2);
}

.pomodoro-page .sidebar-item.active span {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Main Content */
.pomodoro-page .main-content {
  margin-left: 70px;
  margin-top: 50px;
  min-height: calc(100vh - 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

/* ===== POMODORO COMPONENTS ===== */
/* Pomodoro Mode - Standalone page only */
.pomodoro-page #pomodoro-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 50px);
  padding: 1rem;
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Pomodoro Display */
.pomodoro-display {
  margin-bottom: 2rem;
}

.pomodoro-timer {
  font-family: 'Digital-7', 'DS-DIGI', monospace;
  font-size: 4rem;
  font-weight: bold;
  color: #f26507;
  text-shadow: 0 0 20px rgba(242, 101, 7, 0.5);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.pomodoro-phase {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pomodoro-session {
  font-size: 1rem;
  color: #cccccc;
  opacity: 0.8;
}

/* Progress Circle */
.pomodoro-progress {
  position: relative;
  margin-bottom: 2rem;
}



.progress-ring {
  transform: rotate(-90deg);
  width: clamp(150px, 22vw, 210px);
  height: clamp(150px, 22vw, 210px);
  overflow: visible;
}

.progress-ring circle {
  fill: none;
  stroke-width: 8;
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.3s ease;
  stroke-linecap: round;
  stroke-width: 8;
  filter: drop-shadow(0 0 12px rgba(242, 101, 7, 0.3));
}

/* Background white ring track */
.progress-ring-bg {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-dasharray: none;
  stroke-linecap: butt;
  stroke-width: 8;
}

.progress-ring-circle.work { stroke: #f26507; }
.progress-ring-circle.shortBreak { stroke: #1fddc2; }
.progress-ring-circle.longBreak { stroke: #4d8cff; }

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: #f26507;
  text-shadow: 0 0 10px rgba(242, 101, 7, 0.3);
}

/* Hide Pomodoro stats (completed sessions and total time) */
.pomodoro-stats { display: none !important; }

/* Pomodoro Controls */
.pomodoro-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pomodoro-controls .control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #f26507, #ff8c42);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(242, 101, 7, 0.3);
}

.pomodoro-controls .control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 101, 7, 0.4);
}

.pomodoro-controls .control-btn:active {
  transform: translateY(0);
}

.pomodoro-controls .control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Pomodoro Main Container */
.pomodoro-main-container {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

/* Pomodoro Settings */
.pomodoro-settings {
  background: rgba(0, 0, 0, 0.9);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(242, 101, 7, 0.3);
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  box-sizing: border-box;
}

.pomodoro-settings::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f26507, #ff8c42, #f26507);
  border-radius: 15px 15px 0 0;
}

.setting-group {
  margin-bottom: 1rem;
  text-align: left;
}

.setting-group:last-child {
  margin-bottom: 0;
}

.setting-group label {
  display: block;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.setting-group input,
.setting-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.setting-group input:focus,
.setting-group select:focus {
  outline: none;
  border-color: #f26507;
  box-shadow: 0 0 0 3px rgba(242, 101, 7, 0.2);
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-1px);
}

.setting-group input:hover,
.setting-group select:hover {
  border-color: rgba(242, 101, 7, 0.5);
  background: rgba(0, 0, 0, 0.6);
}

.setting-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.number-input {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 999px;
}

.number-input input {
  flex: 1;
  width: 100%;
  padding-right: 2.8rem;
  border-radius: 999px;
}

.number-input input[type="number"]::-webkit-outer-spin-button,
.number-input input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-input input[type="number"] {
  -moz-appearance: textfield;
}

.pomodoro-number-controls {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 1.5rem;
  padding: 0.3rem 0.18rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(242, 101, 7, 0.45);
  background: rgba(18, 18, 18, 0.9);
  box-shadow: inset 0 0 0 1px rgba(242, 101, 7, 0.24);
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

.pomodoro-number-btn {
  background: transparent;
  border: none;
  color: #f26507;
  width: 1.1rem;
  height: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pomodoro-number-btn i {
  font-size: 0.75rem;
  pointer-events: none;
}

.pomodoro-number-btn:hover {
  color: #ff8c42;
  transform: translateY(-1px);
}

.pomodoro-number-btn:active {
  transform: translateY(0);
  color: #ffd1a6;
}

.number-input.disabled input {
  cursor: not-allowed;
  opacity: 0.6;
}

.number-input.disabled .pomodoro-number-controls {
  opacity: 0.35;
  pointer-events: none;
  background: rgba(242, 101, 7, 0.08);
  border-color: rgba(242, 101, 7, 0.2);
  box-shadow: none;
}

.pomodoro-number-btn[disabled] {
  color: rgba(242, 101, 7, 0.35);
  cursor: not-allowed;
  transform: none;
}

.pomodoro-number-btn[disabled] i {
  opacity: 0.6;
}

/* Pomodoro Stats */
.pomodoro-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(242, 101, 7, 0.3);
  min-width: 120px;
  flex: 1;
  max-width: 150px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  box-sizing: border-box;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f26507, #ff8c42);
  border-radius: 15px 15px 0 0;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
  border-color: rgba(242, 101, 7, 0.5);
}

.stat-label {
  display: block;
  color: #cccccc;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  display: block;
  color: #f26507;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(242, 101, 7, 0.3);
}

/* Pomodoro Notification */
#pomodoro-notification .notification-content {
  max-width: 400px;
}

#pomodoro-notification .notification-icon i {
  font-size: 3rem;
  color: #f26507;
}

#pomodoro-notification .notification-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

#pomodoro-notification .btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

#pomodoro-notification .start-break-btn {
  background: linear-gradient(135deg, #f26507, #ff8c42);
  color: white;
}

#pomodoro-notification .skip-break-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#pomodoro-notification .ok-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#pomodoro-notification .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Button hover effects */
.pomodoro-controls .control-btn {
  position: relative;
  overflow: hidden;
}

.pomodoro-controls .control-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.pomodoro-controls .control-btn:hover::before {
  width: 100%;
  height: 100%;
}

/* ===== ANIMATIONS ===== */
/* Settings group animation */
.setting-group {
  animation: fadeIn 0.3s ease-out;
  animation-fill-mode: both;
}

.setting-group:nth-child(1) { animation-delay: 0.05s; }
.setting-group:nth-child(2) { animation-delay: 0.1s; }
.setting-group:nth-child(3) { animation-delay: 0.15s; }
.setting-group:nth-child(4) { animation-delay: 0.2s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .main-content {
    padding: 0.5rem;
  }

  #pomodoro-mode .pomodoro-main-container {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    margin: 0.5rem;
    gap: 1.25rem;
    max-width: calc(100% - 1rem);
  }

  .pomodoro-panel {
    padding: 1.25rem 1.25rem;
  }

  .pomodoro-timer {
    font-size: 3rem;
  }

  .pomodoro-phase {
    font-size: 1.2rem;
  }

  .pomodoro-session {
    font-size: 0.9rem;
  }

  .progress-ring {
    width: 120px;
    height: 120px;
  }

  .progress-ring circle {
    r: 50;
    cx: 60;
    cy: 60;
  }

  .pomodoro-controls {
    gap: 0.5rem;
  }

  .pomodoro-controls .control-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .pomodoro-todo-panel {
    order: 2;
  }

  .pomodoro-timer-panel {
    order: 1;
    margin-bottom: 0.5rem;
  }

  .pomodoro-settings-panel {
    order: 3;
  }

  .number-input input {
    padding-right: 2.6rem;
  }

  .pomodoro-number-controls {
    right: 0.55rem;
    padding: 0.35rem 0.2rem;
    width: 1.65rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 0.25rem;
  }
  
  #pomodoro-mode {
    padding: 0.25rem;
  }
  
  .pomodoro-main-container {
    display: flex;
    flex-direction: column;
    padding: 1rem 0.75rem;
    margin: 0.25rem;
    gap: 1rem;
    max-width: calc(100% - 0.5rem);
  }
  
  .pomodoro-timer {
    font-size: 2.5rem;
  }
  
  .pomodoro-phase {
    font-size: 1rem;
  }
  
  .pomodoro-session {
    font-size: 0.8rem;
  }
  
  .progress-ring {
    width: 100px;
    height: 100px;
  }
  
  .progress-ring circle {
    r: 40;
    cx: 50;
    cy: 50;
  }
  
  .pomodoro-controls {
    gap: 0.25rem;
  }
  
  .pomodoro-controls .control-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .pomodoro-settings {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .number-input input {
    padding-right: 2.2rem;
  }

  .pomodoro-number-controls {
    right: 0.45rem;
    padding: 0.25rem 0.15rem;
    width: 1.5rem;
  }

  .pomodoro-number-btn {
    width: 1.05rem;
    height: 0.9rem;
  }

  .pomodoro-number-btn i {
    font-size: 0.6rem;
  }

  .pomodoro-stats {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .stat-item {
    width: 100%;
    max-width: 150px;
    padding: 0.75rem;
  }
}

/* ===== THEME ADJUSTMENTS ===== */
/* Dark theme adjustments */
.theme-dark #pomodoro-mode {
  color: #ffffff;
}

.theme-dark .pomodoro-settings {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .stat-item {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Animation for phase transitions */
.pomodoro-phase {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse animation for running timer */
.pomodoro-timer.running {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    text-shadow: 0 0 20px rgba(242, 101, 7, 0.5);
  }
  50% {
    text-shadow: 0 0 30px rgba(242, 101, 7, 0.8);
  }
  100% {
    text-shadow: 0 0 20px rgba(242, 101, 7, 0.5);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SPA MODE STYLES ===== */
/* Pomodoro mode container - only for main app (SPA mode) */
.main-content #pomodoro-mode {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.main-content #pomodoro-mode.active {
  display: flex;
}

/* Main app: when Pomodoro is active, avoid header overlap and center horizontally only */
.main-content.mode-pomodoro {
  align-items: center; /* vertical center */
  padding-top: 60px; /* header height */
  display: flex;
  justify-content: center;
}

.main-content.mode-pomodoro #pomodoro-mode {
  /* leave space for sidebar, keep full width and allow scroll */
  padding: 0 16px 16px 0 !important; /* right/bottom small gutters */
  margin-left: 70px !important;               /* space for sidebar */
  width: calc(100vw - 70px) !important;       /* true center in remaining viewport */
  min-height: calc(100vh - 60px) !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Pomodoro sidebar item */
.sidebar-item[data-mode="pomodoro"] {
  position: relative;
}

.sidebar-item[data-mode="pomodoro"]::before {
  content: '🍅';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.8rem;
  opacity: 0.8;
}
