/* Pomodoro CSS Design Sheet - Modern Glassmorphic Look */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent; /* Remove blue tap highlight overlay on mobile devices */
}

/* 1. Base Setup and Theme Variables */
:root {
  /* Common typography and sizing standards */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
}

/* 1. Cosmic Space / Violet Focus Theme (Default) */
body.theme-cosmic {
  --bg-gradient: linear-gradient(135deg, #090d16 0%, #111428 50%, #200f2b 100%);
  --accent-color: #c084fc;
  --accent-hover: #a855f7;
  --accent-glow: rgba(192, 132, 252, 0.4);
  --panel-bg: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --track-color: rgba(255, 255, 255, 0.04);
  --header-bg: rgba(9, 13, 22, 0.92);
  --header-border: rgba(192, 132, 252, 0.15);
  --card-bg: rgba(13, 17, 28, 0.97);
}

/* 2. Zen Day Light Focus Theme */
body.theme-day {
  --bg-gradient: linear-gradient(135deg, #eef2f6 0%, #e2e8f0 50%, #f8fafc 100%);
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.35);
  --panel-bg: rgba(255, 255, 255, 0.82);
  --panel-border: rgba(0, 0, 0, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --track-color: rgba(0, 0, 0, 0.06);
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-border: rgba(37, 99, 235, 0.22);
  --card-bg: rgba(255, 255, 255, 0.98);
}

/* 3. OLED Midnight Night Theme */
body.theme-night {
  --bg-gradient: linear-gradient(135deg, #030305 0%, #08080f 50%, #0d0e17 100%);
  --accent-color: #38bdf8;
  --accent-hover: #0284c7;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --panel-bg: rgba(18, 20, 32, 0.65);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --track-color: rgba(255, 255, 255, 0.04);
  --header-bg: rgba(4, 5, 10, 0.95);
  --header-border: rgba(56, 189, 248, 0.2);
  --card-bg: rgba(8, 10, 18, 0.98);
}

/* 4. Emerald Forest Calm Focus Theme */
body.theme-forest {
  --bg-gradient: linear-gradient(135deg, #021a14 0%, #032d20 50%, #083c2e 100%);
  --accent-color: #10b981;
  --accent-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --panel-bg: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text-primary: #edfbf7;
  --text-secondary: #a3beb7;
  --track-color: rgba(255, 255, 255, 0.04);
  --header-bg: rgba(2, 26, 20, 0.92);
  --header-border: rgba(16, 185, 129, 0.18);
  --card-bg: rgba(6, 32, 26, 0.97);
}

/* 5. Deep Ocean Flow State Theme */
body.theme-ocean {
  --bg-gradient: linear-gradient(135deg, #031322 0%, #062038 50%, #0a3152 100%);
  --accent-color: #06b6d4;
  --accent-hover: #0891b2;
  --accent-glow: rgba(6, 182, 212, 0.45);
  --panel-bg: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ecfeff;
  --text-secondary: #94a3b8;
  --track-color: rgba(255, 255, 255, 0.04);
  --header-bg: rgba(3, 19, 34, 0.92);
  --header-border: rgba(6, 182, 212, 0.2);
  --card-bg: rgba(6, 25, 45, 0.97);
}

/* 6. Sunset Amber Energy Theme */
body.theme-sunset {
  --bg-gradient: linear-gradient(135deg, #100606 0%, #240d0c 50%, #3a0d08 100%);
  --accent-color: #f97316;
  --accent-hover: #ea580c;
  --accent-glow: rgba(249, 115, 22, 0.4);
  --panel-bg: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text-primary: #fcf8f2;
  --text-secondary: #cbc4bc;
  --track-color: rgba(255, 255, 255, 0.03);
  --header-bg: rgba(16, 6, 6, 0.92);
  --header-border: rgba(249, 115, 22, 0.15);
  --card-bg: rgba(26, 12, 12, 0.97);
}

/* 7. Nordic Rose Quartz Focus Theme */
body.theme-nordic {
  --bg-gradient: linear-gradient(135deg, #14051a 0%, #24082e 50%, #3a0d42 100%);
  --accent-color: #f43f5e;
  --accent-hover: #e11d48;
  --accent-glow: rgba(244, 63, 94, 0.45);
  --panel-bg: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text-primary: #fff1f2;
  --text-secondary: #d6b4c5;
  --track-color: rgba(255, 255, 255, 0.05);
  --header-bg: rgba(20, 5, 26, 0.92);
  --header-border: rgba(244, 63, 94, 0.18);
  --card-bg: rgba(26, 7, 34, 0.97);
}

html {
  overflow-x: hidden;
  width: 100%;
}

/* Body Styling */
body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column; /* Align vertically */
  align-items: center; /* Center horizontally */
  overflow-x: hidden;
  overflow-y: auto; /* Permit vertical scrolling */
  transition: background 0.5s ease, color 0.3s ease;
  padding: 0 20px; /* Remove top padding, container margin handles it */
}

.app-container {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 80px auto 40px auto; /* 80px top spacing to clear the fixed top bar */
}

/* 2. Header Styles */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%); /* Centered horizontally */
  width: 100%;
  max-width: 900px; /* Constrained to exactly match the content width on desktop */
  height: 60px;
  padding: 0 16px; /* Safe gutters inside bounds */
  background: var(--header-bg); /* Theme-matched background */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-border); /* Theme-matched accent bottom border */
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom-left-radius: var(--radius-md); /* Curved corners for floating panel look */
  border-bottom-right-radius: var(--radius-md);
  /* 3D Elevated Shadow: Includes deep shadow, close sharp shadow, and an inset white top border highlight */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 
              0 2px 8px rgba(0, 0, 0, 0.4), 
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  z-index: 999;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.logo-icon {
  color: var(--accent-color);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, transform 0.25s ease;
}

.icon-btn:hover {
  color: var(--accent-color);
}

/* 3. Panel Glassmorphism definition */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease,
              background-color 0.3s ease;
  animation: panelEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.glass-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.task-section {
  animation-delay: 0.12s !important; /* Staggered load effect */
}

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

/* 4. Main Layout Grid */
.main-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  body {
    display: block !important; /* Prevent flex centering rounding shifts on narrow screens */
    padding: 0 0 24px 0 !important; /* Remove top and horizontal padding from body to push header to top */
  }

  .app-container {
    width: calc(100% - 16px) !important; /* Explicitly calculate width minus both 8px gutters */
    max-width: calc(100% - 16px) !important;
    margin-left: 8px !important; /* Force exact 8px margin gap on the left edge */
    margin-right: 8px !important; /* Force exact 8px margin gap on the right edge */
    margin-top: 72px !important; /* Push cards down to clear the fixed top bar */
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  .app-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important; /* Override desktop horizontal transform centering */
    width: 100% !important;
    max-width: 100% !important; /* Full width edge-to-edge on mobile */
    height: 56px !important;
    padding: 0 16px !important; /* Safe padding from screen edges */
    background: var(--header-bg) !important; /* Theme-matched background */
    backdrop-filter: blur(16px) !important; /* Stronger blur */
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid var(--header-border) !important; /* Theme-matched accent bottom border */
    border-left: none !important; /* Remove desktop side borders on mobile */
    border-right: none !important;
    border-bottom-left-radius: 0 !important; /* Flat bottom edge on mobile screen */
    border-bottom-right-radius: 0 !important;
    /* 3D Elevated Shadow: Includes deep shadow, close sharp shadow, and an inset white top border highlight */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 
                0 2px 8px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.12) !important; 
    z-index: 999 !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .main-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 20px;
  }
  
  /* Mobile Tabbed View Switching */
  .calendar-section {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .timer-section {
    padding: 4px 10px; /* Shrunk top/bottom padding to make card height smaller */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Force clipping on wide children to prevent card expansion */
  }
  
  .task-section {
    display: none;
    max-height: none;
    padding: 24px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent text overflow from expanding card width */
  }

  /* When Calendar Tab is active */
  body.mobile-tab-calendar .calendar-section {
    display: flex !important;
    animation: panelEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  body.mobile-tab-calendar .timer-section {
    display: none !important;
  }
  body.mobile-tab-calendar .task-section {
    display: none !important;
  }

  /* When Timer Tab is active (Default) */
  body.mobile-tab-timer .calendar-section {
    display: none !important;
  }
  body.mobile-tab-timer .timer-section {
    display: flex !important;
    animation: panelEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  body.mobile-tab-timer .task-section {
    display: none !important;
  }

  /* When Tasks Tab is active */
  body.mobile-tab-tasks .calendar-section {
    display: none !important;
  }
  body.mobile-tab-tasks .timer-section {
    display: none !important;
  }
  body.mobile-tab-tasks .task-section {
    display: block !important;
    animation: panelEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .tabs-row {
    padding: 2px;
    margin-bottom: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    padding: 5px 0;
  }

  .clock-wrapper {
    width: 160px; /* Shrunk diameter from 180px */
    height: 160px; /* Shrunk diameter from 180px */
    margin-bottom: 6px; /* Shrunk margin gap to make card height smaller */
  }

  .timer-display {
    font-size: 2.25rem; /* Shrunk font size from 2.6rem */
  }

  .controls-row {
    gap: 12px; /* Shrunk gap from 16px */
  }

  .btn-control-prime {
    padding: 8px 20px; /* Shrunk from 10px 24px */
    font-size: 0.95rem; /* Shrunk font from 1rem */
  }

  .btn-control-sec {
    width: 38px; /* Shrunk from 44px */
    height: 38px; /* Shrunk from 44px */
  }
  
  .settings-overlay {
    width: 100%;
    height: 100%;
  }
  
  .settings-card {
    width: 92%;
    padding: 16px;
    margin: 10px;
  }
}

/* 4.1 Timer Panel Styles */
.timer-section {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tabs-row {
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 5px;
  border-radius: 30px;
  margin-bottom: 30px;
  width: 320px; /* Fixed width to align buttons and fit standard cards */
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}

.tab-btn {
  flex: 1;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.tab-btn.active {
  background: var(--accent-color);
  color: #0c0f1d;
  box-shadow: 0 4px 10px var(--accent-glow);
}

/* Timer Clock Ring Animation */
.clock-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  margin-bottom: 30px;
  border-radius: 50%; /* Make container circular to prevent square outline shadows */
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.track-ring {
  fill: none;
  stroke: var(--track-color);
  stroke-width: 8px;
}

.progress-ring {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 8px;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--accent-glow));
  transition: stroke-dashoffset 0.4s linear;
}

.clock-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-display {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.active-task-display {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Play Control buttons styling */
.controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  border: none;
  font-family: var(--font-display);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-control-prime {
  background-color: var(--text-primary);
  color: #0c0f1d;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 40px;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-control-prime:hover {
  background-color: var(--accent-color);
  box-shadow: 0 12px 28px var(--accent-glow);
  transform: translateY(-2px) scale(1.03); /* Lift and scale START button on hover */
}

.btn-control-sec {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.btn-control-sec:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--accent-color);
  transform: translateY(-2px) scale(1.05); /* Lift and scale secondary control buttons on hover */
}

/* 4.2 Task Section Styles */
.task-section {
  padding: 24px;
  max-height: 480px;
  display: flex;
  flex-direction: column;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.sessions-counter {
  font-size: 0.78rem;
  background-color: rgba(255, 255, 255, 0.07);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.add-task-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.add-task-form input {
  flex: 1;
  min-width: 0; /* Crucial fix: allows flex input to shrink on narrow mobile screens */
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.add-task-form input:focus {
  border-color: var(--accent-color);
}

.btn-add-task {
  background-color: var(--accent-color);
  color: #0c0f1d;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 0.9rem;
  gap: 4px;
  flex-shrink: 0; /* Prevent button from squeezing or clipping outside card */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-add-task:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 10px var(--accent-glow);
}

.tasks-list-container {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

/* Custom scrollbar */
.tasks-list-container::-webkit-scrollbar,
.settings-card::-webkit-scrollbar {
  width: 6px;
}
.tasks-list-container::-webkit-scrollbar-thumb,
.settings-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 20px;
  gap: 12px;
  flex: 1;
}

.empty-state p {
  font-size: 0.8rem;
  max-width: 200px;
}

/* Task Item layout with micro-animations */
.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  animation: taskAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.task-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.task-item:active {
  transform: scale(0.99);
}

.task-item.active {
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: inset 3px 0 0 var(--accent-color);
}

.task-item.fade-out {
  opacity: 0 !important;
  transform: scale(0.95) translateY(-8px) !important;
}

@keyframes taskAppear {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.task-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0; /* Crucial: allows flex container to shrink so child text wraps */
}

.task-checkbox-btn {
  background: transparent;
  border: 2px solid var(--text-secondary);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  padding: 0;
  transition: background-color 0.15s, border-color 0.15s;
}

.task-item.completed .task-checkbox-btn {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #0c0f1d;
}

.task-name {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.25s ease;
  word-break: break-word; /* Allows long words to wrap to next line */
  overflow-wrap: break-word;
  white-space: normal; /* Forces standard text wrapping */
  position: relative; /* Set anchor for animated strike-through line */
  display: inline-block;
}

.task-name::after {
  content: '';
  position: absolute;
  left: 0;
  top: 55%;
  width: 0;
  height: 2px;
  background: var(--text-secondary);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.task-item.completed .task-name {
  color: var(--text-secondary);
}

.task-item.completed .task-name::after {
  width: 100%; /* Smoothly draw the line from left to right */
}

.task-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-count {
  font-size: 0.72rem;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.task-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background-color 0.2s;
}

.task-delete-btn:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.15);
}

/* 5. Settings Screen Overlay */
.settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(8px);
}

.settings-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.settings-card {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card-bg) !important; /* Theme-matched high opacity solid background */
  transform: scale(0.9) translateY(20px); /* Deeper starting scale and offset */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Elegant iOS spring pop physics */
  display: flex;
  flex-direction: column;
}

.settings-overlay.show .settings-card {
  transform: scale(1) translateY(0);
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.settings-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
}

.settings-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  padding-bottom: 4px;
}

.duration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.duration-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.duration-input label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.duration-input input {
  background-color: rgba(0,0,0,0.3);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 8px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.duration-input input:focus {
  border-color: var(--accent-color);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-row select {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 10px 36px 10px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  box-sizing: border-box;
}

.form-row select:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.form-row select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-glow);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.form-row select option {
  background-color: #121526; /* Dark background to match card */
  color: #ffffff;
  padding: 12px;
  font-size: 0.9rem;
  border: none;
}

.form-row input[type="range"] {
  flex: 1;
  max-width: 140px;
  accent-color: var(--accent-color);
}

/* Automation iOS Toggle switch */
.toggle-row {
  margin-bottom: 4px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.1);
  transition: .25s;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.05);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .25s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: var(--accent-color);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* Theme Swatches */
.theme-grid {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.theme-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s, border-color 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
  outline: none;
  display: inline-block;
}

.theme-swatch:hover {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.theme-swatch.active {
  border: 2.5px solid #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.theme-swatch-cosmic {
  background: radial-gradient(circle at 30% 30%, #c084fc 0%, #090d16 100%);
  box-shadow: 0 4px 10px rgba(192, 132, 252, 0.35);
}

.theme-swatch-day {
  background: radial-gradient(circle at 30% 30%, #2563eb 0%, #e2e8f0 100%);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.theme-swatch-night {
  background: radial-gradient(circle at 30% 30%, #38bdf8 0%, #030305 100%);
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.35);
}

.theme-swatch-forest {
  background: radial-gradient(circle at 30% 30%, #10b981 0%, #021a14 100%);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

.theme-swatch-ocean {
  background: radial-gradient(circle at 30% 30%, #06b6d4 0%, #031322 100%);
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.35);
}

.theme-swatch-sunset {
  background: radial-gradient(circle at 30% 30%, #f97316 0%, #100606 100%);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.35);
}

.theme-swatch-nordic {
  background: radial-gradient(circle at 30% 30%, #f43f5e 0%, #14051a 100%);
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.35);
}

/* Day Light Theme Specific Component Enhancements */
body.theme-day .header-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

body.theme-day .header-btn:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
  color: #2563eb;
}

body.theme-day .glass-panel {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.theme-day .tabs-row {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.06);
}

body.theme-day .tab-btn.active {
  color: #ffffff;
}

body.theme-day .btn-control-sec {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

body.theme-day .btn-control-prime {
  color: #ffffff;
}

body.theme-day .more-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

body.theme-day .dropdown-item {
  color: #1e293b;
}

body.theme-day .dropdown-item:hover {
  background-color: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

body.theme-day .dropdown-divider {
  background-color: rgba(0, 0, 0, 0.08);
}

body.theme-day .settings-card,
body.theme-day .custom-confirm-card {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

body.theme-day .settings-input,
body.theme-day .custom-select-trigger,
body.theme-day .task-input {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.15);
}

body.theme-day .custom-options {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

body.theme-day .custom-option {
  color: #1e293b;
}

body.theme-day .custom-option:hover {
  background: rgba(37, 99, 235, 0.08);
}

body.theme-day .custom-option.selected {
  background: rgba(37, 99, 235, 0.15);
  color: #2563eb;
}

body.theme-day .stats-item {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-day .task-item {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-day .task-item.active-task-item {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

body.theme-day .btn-save-settings {
  color: #ffffff;
}

.btn-save-settings {
  background-color: var(--accent-color);
  color: #0c0f1d;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px;
  border-radius: var(--radius-sm);
  width: 100%;
  box-sizing: border-box;
}

.settings-actions {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Tight, custom spacing between Save and Reset */
  margin-top: 8px; /* Gutter space below the settings content */
  width: 100%;
}

.btn-save-settings:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 15px var(--accent-glow);
}

/* About PomoFocus Professional Glassmorphic Modal */
.about-modal-card {
  max-width: 580px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--card-bg) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.settings-overlay.show .about-modal-card {
  transform: scale(1) translateY(0);
}

.about-modal-card .close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.about-modal-card .close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  transform: rotate(90deg) scale(1.05);
}

.about-header {
  text-align: center;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.about-logo-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--surface-secondary);
  border: 1px solid var(--accent-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  box-shadow: 0 0 20px var(--accent-glow);
  margin-bottom: 12px;
}

.about-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-version-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.5px;
}

.about-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 580px) {
  .about-features-grid {
    grid-template-columns: 1fr;
  }
}

.about-feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: transform 0.2s, background 0.2s;
}

.about-feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.feature-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.about-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-tips-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.about-tips-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.about-footer {
  text-align: center;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.about-footer p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* 9. Modern Glassmorphic Toast Notifications */
.custom-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(18, 22, 39, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 4px solid var(--accent-color) !important;
  color: var(--text-primary) !important;
  padding: 12px 18px !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transform: translateY(20px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.custom-toast.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.toast-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--accent-color) !important;
  flex-shrink: 0 !important;
}

@media (max-width: 600px) {
  .custom-toast {
    right: 16px !important;
    left: 16px !important;
    bottom: 16px !important;
    width: auto !important;
    max-width: calc(100% - 32px) !important;
  }
}

/* 10. Custom Modern Confirmation Dialog */
.custom-confirm-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(9, 13, 22, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 11000 !important; /* Higher than settings overlay */
  opacity: 0 !important;
  transition: opacity 0.25s ease !important;
}

.custom-confirm-overlay.show {
  opacity: 1 !important;
}

.custom-confirm-card {
  background: rgba(18, 22, 39, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-lg) !important;
  padding: 24px !important;
  width: 90% !important;
  max-width: 340px !important;
  text-align: center !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transform: scale(0.92) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.custom-confirm-overlay.show .custom-confirm-card {
  transform: scale(1) !important;
}

.confirm-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: rgba(192, 132, 252, 0.1) !important;
  color: var(--accent-color) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 16px auto !important;
}

.confirm-message {
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem;
  font-weight: 600 !important;
  margin-bottom: 24px !important;
}

.confirm-buttons {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
}

.confirm-btn {
  flex: 1 !important;
  padding: 10px 16px !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border: none !important;
  transition: background-color 0.2s, transform 0.15s !important;
}

.confirm-btn.btn-cancel {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-secondary) !important;
}

.confirm-btn.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.confirm-btn.btn-confirm {
  background: var(--accent-color) !important;
  color: #0c0f1d !important;
  box-shadow: 0 4px 10px var(--accent-glow) !important;
}

.confirm-btn.btn-confirm:hover {
  filter: brightness(1.1) !important;
}

.confirm-btn:active {
  transform: scale(0.97) !important;
}

@media (max-width: 600px) {
  .custom-confirm-overlay {
    width: 100% !important;
    height: 100% !important;
  }
}

/* 11. Header Actions, Buttons, Dropdown and Stats Report Styles */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.header-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  height: 34px;
  box-sizing: border-box;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.header-btn .btn-icon {
  opacity: 0.9;
  transition: transform 0.25s ease;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--accent-color);
}

.header-btn:active {
  transform: scale(0.95);
}

.header-btn.btn-more {
  padding: 0;
  width: 34px;
}

#btn-settings-open:hover .btn-icon {
  transform: rotate(45deg);
}

/* Three-dot dropdown menu */
.more-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  width: 170px;
  background: rgba(18, 22, 39, 0.95);
  backdrop-filter: blur(16px); /* Restore backdrop blur specifically for dropdown */
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  animation: none !important; /* Crucial fix: overrides the general glass-panel entrance animation */
}

.more-dropdown.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-item {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--accent-color);
}

.dropdown-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}

/* Statistics Grid Layout */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.stats-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stats-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
}

.stats-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-glow);
  margin-bottom: 6px;
}

.stats-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* Responsive Overrides for Header Buttons */
@media (max-width: 768px) {
  #btn-report-open,
  #btn-settings-open {
    display: none !important; /* Hide Report and Settings from top bar on mobile */
  }

  #btn-theme-cycle {
    display: inline-flex !important; /* Show theme cycle button in top bar directly to the left of 3-dot icon */
  }

  .header-btn .btn-text {
    display: none !important;
  }
  
  .header-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: var(--radius-sm) !important;
  }
  
  .header-btn.btn-more {
    width: 36px !important;
  }
}

@media (min-width: 769px) {
  .dropdown-item.mobile-only,
  .dropdown-divider.mobile-only {
    display: none !important; /* Hide mobile-only items from dropdown menu on desktop */
  }
}

/* 12. Mobile Bottom Navigation Bar Styles */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 76px !important; /* Prevent bottom content from being cut off by nav bar */
  }

  .app-container {
    margin-bottom: 24px !important;
  }

  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background: var(--header-bg) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-top: 1px solid var(--header-border) !important;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    z-index: 998 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }

  .bottom-nav-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: var(--radius-md);
    transition: color 0.2s ease, transform 0.15s ease;
    flex: 1;
    max-width: 110px;
    outline: none;
  }

  .bottom-nav-item .bottom-nav-icon {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.2s ease;
  }

  .bottom-nav-item .bottom-nav-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
  }

  .bottom-nav-item:active {
    transform: scale(0.92);
  }

  .bottom-nav-item.active {
    color: var(--accent-color) !important;
  }

  .bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px var(--accent-glow));
  }

  /* Center Timer Pill Button Special Styling */
  .bottom-nav-timer-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .bottom-nav-item.active .bottom-nav-timer-pill {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 12px var(--accent-glow);
  }

  /* Day Light Theme Overrides for Bottom Nav */
  body.theme-day .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.94) !important;
    border-top: 1px solid rgba(37, 99, 235, 0.2) !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(0, 0, 0, 0.04) !important;
  }

  body.theme-day .bottom-nav-item {
    color: #64748b;
  }

  body.theme-day .bottom-nav-item.active {
    color: #2563eb !important;
  }

  body.theme-day .bottom-nav-item.active .bottom-nav-timer-pill {
    background: rgba(37, 99, 235, 0.1);
  }
}

/* 12. Enhanced Micro-Animations and Entrance Keyframes */

/* Global slide-down entrance for the top bar on desktop view */
.app-header {
  animation: headerEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes headerEntrance {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Slide-down entrance for the top bar on mobile view (without translate horizontal offset) */
@media (max-width: 768px) {
  .app-header {
    animation: headerEntranceMobile 0.7s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  }
}

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

/* Slow, organic breathing pulse active glow for the circular timer face when running */
.clock-wrapper.pulse-active {
  animation: pulseGlow 3s infinite ease-in-out !important;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.1), inset 0 0 15px rgba(192, 132, 252, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow: 0 0 35px rgba(192, 132, 252, 0.25), inset 0 0 25px rgba(192, 132, 252, 0.12);
    border-color: rgba(192, 132, 252, 0.2);
  }
  100% {
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.1), inset 0 0 15px rgba(192, 132, 252, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

/* 13. Task Sorting Button and Container Styles */
.task-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.sort-btn:hover {
  color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.05);
}

.sort-btn:active {
  transform: scale(0.88);
}

.sort-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Rotates sorting arrows when oldest first is active */
.sort-btn.descending .sort-icon {
  transform: rotate(180deg);
}

/* 14. Focus Report Modal Styling (Chart, Progress Bars, Lists) */

.report-section-title {
  font-size: 0.75rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
  margin-top: 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-section-title svg {
  color: var(--accent-color);
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

.weekly-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 125px;
  padding: 14px 16px 10px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-sizing: border-box;
}

.chart-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.chart-bar-wrapper {
  position: relative;
  width: 16px;
  height: 70px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.chart-bar {
  width: 100%;
  height: 0%; /* Populated dynamically */
  background: linear-gradient(to top, var(--accent-color), var(--accent-hover));
  box-shadow: 0 0 10px var(--accent-glow);
  border-radius: 3px;
  transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 700;
}

/* Tooltip on hovering chart bars */
.chart-tooltip {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translate(-50%, 4px);
  background: var(--card-bg);
  border: 1px solid var(--panel-border);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
  white-space: nowrap;
}

.chart-column:hover .chart-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.report-tasks-list {
  max-height: 145px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.report-tasks-list::-webkit-scrollbar {
  width: 4px;
}

.report-tasks-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
}

.report-task-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.report-task-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.report-task-name {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 65%;
}

.report-task-name.task-done {
  color: var(--text-secondary);
  text-decoration: line-through;
}

.report-task-stat {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.report-task-progress-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.report-task-progress-bar {
  height: 100%;
  background: var(--accent-color);
  box-shadow: 0 0 6px var(--accent-glow);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.report-empty-text {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 16px;
  font-style: italic;
}

/* 15. Focus Report Tabs & Download Button Styles */
.report-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 12px;
}

.report-section-header .report-section-title {
  margin-top: 0;
  margin-bottom: 0;
}

.report-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2px;
  border-radius: var(--radius-sm);
  gap: 2px;
}

.report-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.report-tab-btn:hover {
  color: var(--text-primary);
}

.report-tab-btn.active {
  background: var(--accent-color);
  color: #0c0f1d;
}

.btn-download-report {
  background: var(--accent-color);
  color: #0c0f1d;
  border: none;
  padding: 10px 14px;
  width: 100%;
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.btn-download-report:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-download-report:active {
  transform: scale(0.97);
}

/* 16. Sound Select Row & Play Preview Buttons */
.sound-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.sound-select-row select {
  flex: 1;
  margin: 0;
}

.play-sound-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.play-sound-btn:hover {
  background: var(--accent-color);
  color: #0c0f1d;
  border-color: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-glow);
}

.play-sound-btn:active {
  transform: scale(0.92);
}

/* 17. Segmented Control Radio Button Toggles */
.segmented-control {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2px;
  border-radius: var(--radius-sm);
  width: 100%;
  gap: 2px;
  box-sizing: border-box;
}

.segmented-control input[type="radio"] {
  display: none;
}

.segmented-control label {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  margin: 0 !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.segmented-control label:hover {
  color: var(--text-primary);
}

.segmented-control input[type="radio"]:checked + label {
  background-color: var(--accent-color);
  color: #0c0f1d;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 18. Report Action Button Layouts & PDF Styles */
.report-action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
}

.report-action-buttons .btn {
  flex: 1;
  margin-top: 0 !important;
}

.btn-pdf-report {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.btn-pdf-report:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.04);
}

.btn-pdf-report:active {
  transform: scale(0.97);
}

/* 19. Mobile Scaling for Report Action Buttons */
@media (max-width: 480px) {
  .report-action-buttons {
    gap: 6px !important;
  }

  .btn-download-report, .btn-pdf-report {
    padding: 10px 4px !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    letter-spacing: 0.2px !important;
    gap: 4px !important;
  }
}

/* 20. Custom Select Component (Glassmorphic Dropdowns) */
.custom-select {
  position: relative;
  flex: 1;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  box-sizing: border-box;
  width: 100%;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.custom-select-trigger:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.custom-select-trigger.active {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-glow);
  background: rgba(255, 255, 255, 0.06);
}

.custom-select-arrow {
  color: var(--text-secondary);
  transition: transform 0.2s ease, color 0.2s;
}

.custom-select-trigger.active .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--text-primary);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(18, 22, 39, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: none;
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transform-origin: top center;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.custom-select-options.show {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.custom-option {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.15s, background-color 0.15s;
  box-sizing: border-box;
  text-align: left;
}

.custom-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.custom-option.active {
  background: var(--accent-color);
  color: #0c0f1d;
  font-weight: 700;
}

/* Custom Select Options Scrollbar */
.custom-select-options::-webkit-scrollbar {
  width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   14. Full Month Interactive Calendar Card Styles
   ========================================================================== */
.calendar-section {
  display: none;
  padding: 24px 20px;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
}

.calendar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.calendar-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-title-wrap .section-title {
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
}

.calendar-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.calendar-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.cal-today-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-today-btn:hover {
  background: var(--accent-color);
  color: #0c0f1d;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day-cell {
  position: relative;
  aspect-ratio: 1;
  max-height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.cal-day-cell:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.cal-day-cell.other-month {
  opacity: 0.28;
}

.cal-day-cell.today {
  border: 1.5px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 800;
  box-shadow: inset 0 0 8px var(--accent-glow);
}

.cal-day-cell.selected {
  background: var(--accent-color) !important;
  color: #0c0f1d !important;
  font-weight: 800 !important;
  border-color: #ffffff !important;
  transform: scale(1.06);
  box-shadow: 0 4px 14px var(--accent-glow) !important;
}

.cal-focus-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 4px var(--accent-glow);
  margin-top: 2px;
}

.cal-day-cell.selected .cal-focus-dot {
  background: #0c0f1d;
  box-shadow: none;
}

.cal-focus-badge {
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 800;
  color: var(--accent-color);
  margin-top: 1px;
}

.cal-day-cell.selected .cal-focus-badge {
  color: #0c0f1d;
}

/* Day Summary Card */
.calendar-day-summary {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-day-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-day-stat {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-color);
}

.summary-day-tasks {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* Day Light Theme Overrides for Calendar */
body.theme-day .calendar-card-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
body.theme-day .cal-nav-btn,
body.theme-day .cal-today-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}
body.theme-day .cal-today-btn:hover {
  background: #2563eb;
  color: #ffffff;
}
body.theme-day .cal-day-cell {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
  color: #0f172a;
}
body.theme-day .cal-day-cell:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}
body.theme-day .cal-day-cell.selected {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}
body.theme-day .cal-day-cell.selected .cal-focus-dot {
  background: #ffffff;
}
body.theme-day .cal-day-cell.selected .cal-focus-badge {
  color: #ffffff;
}
body.theme-day .calendar-day-summary {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}


