/* Settings Sections */
.settings-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.settings-section h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-section .form-group {
  margin-bottom: 16px;
}

.settings-section .form-group:last-child {
  margin-bottom: 0;
}


/* Quick Guide Styling */
.quick-guide {
  background: var(--panel2);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border);
}

.guide-item {
  margin-bottom: 12px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

.guide-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.guide-item strong {
  color: var(--accent);
  font-weight: 600;
}

/* Auto-Delete Indicator */
.auto-delete-indicator {
  color: #ff6b6b;
  font-size: 0.8em;
  margin-left: 4px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b1220 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-logo img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

.loading-text {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #4a9eff;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(74, 158, 255, 0.2);
  border-top: 4px solid #4a9eff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

/* CSS Variables and Base Styles */
:root {
  --bg: #000000;
  --panel: #000000;
  --panel2: #0a0a0a;
  --border: #1a1a1a;
  --text: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #e0e0e0;
  --accent: #ffffff;
  --accent-hover: #f0f0f0;
  --hover-bg: rgba(255, 255, 255, 0.1);
  --success: #00ff88;
  --warning: #ffaa00;
  --error: #ff4466;
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-12: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* From-Image theme background layer */
body.bg-from-image::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--theme-image-url, none);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--blur-intensity, 8px)) saturate(110%);
  transform: scale(1.04);
  z-index: -2;
}

/* Gentle vignette/overlay for readability */
body.bg-from-image::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.20), rgba(0,0,0,0.25));
  z-index: -1;
  pointer-events: none;
}

/* Matrix Rain Background */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}

/* Custom Background Options - Smooth Gradients */
body.background-cosmic {
  background: var(--bg);
}

body.background-cosmic::before {
  background: 
    radial-gradient(circle at 30% 30%, rgba(138, 43, 226, 0.06) 0%, transparent 70%),
    radial-gradient(circle at 70% 70%, rgba(75, 0, 130, 0.05) 0%, transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.03) 0%, transparent 80%);
}

body.background-mountain {
  background: var(--bg);
}

body.background-mountain::before {
  background: 
    radial-gradient(circle at 40% 40%, rgba(135, 206, 235, 0.06) 0%, transparent 70%),
    radial-gradient(circle at 60% 60%, rgba(152, 251, 152, 0.05) 0%, transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(144, 238, 144, 0.03) 0%, transparent 80%);
}

body.background-night-sky {
  background: var(--bg);
}

body.background-night-sky::before {
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(138, 43, 226, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(75, 0, 130, 0.03) 0%, transparent 70%);
}

body.background-abstract {
  background: var(--bg);
}

body.background-abstract::before {
  background: 
    radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.06) 0%, transparent 70%),
    radial-gradient(circle at 70% 70%, rgba(240, 147, 251, 0.05) 0%, transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(245, 87, 108, 0.03) 0%, transparent 80%);
}

/* New Background Options Based on Your Images - Smooth Gradients */
body.background-cosmic-energy {
  background: var(--bg);
}

body.background-cosmic-energy::before {
  background: 
    radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
}

body.background-mountain-landscape {
  background: var(--bg);
}

body.background-mountain-landscape::before {
  background: 
    radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.06) 0%, transparent 70%),
    radial-gradient(circle at 60% 60%, rgba(167, 243, 208, 0.05) 0%, transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(110, 231, 183, 0.03) 0%, transparent 80%);
}

body.background-night-sky-aurora {
  background: var(--bg);
}

body.background-night-sky-aurora::before {
  background: 
    radial-gradient(circle at 25% 25%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
}

body.background-abstract-waves {
  background: var(--bg);
}

body.background-abstract-waves::before {
  background: 
    radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(240, 147, 251, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.04) 0%, transparent 70%);
}

/* Exact Image Background - Horizontal Split Design */
body.background-exact-image {
  background: 
    linear-gradient(to right, #87CEEB 0%, #98FB98 100%),
    linear-gradient(to right, #000080 0%, #40E0D0 100%);
  background-size: 100% 50%, 100% 50%;
  background-position: 0 0, 0 50%;
  background-repeat: no-repeat;
}

body.background-exact-image::before {
  background: 
    linear-gradient(to right, rgba(135, 206, 235, 0.1) 0%, rgba(152, 251, 152, 0.1) 100%),
    linear-gradient(to right, rgba(0, 0, 128, 0.1) 0%, rgba(64, 224, 208, 0.1) 100%);
  background-size: 100% 50%, 100% 50%;
  background-position: 0 0, 0 50%;
  background-repeat: no-repeat;
}

/* Matrix Rain Background - Theme Adaptive */
body.background-matrix {
  background: var(--bg);
}

/* Hide matrix canvas when custom background is active */
body:not(.background-matrix) #matrix-canvas {
  display: none;
}

/* Adaptive Contrast and Readability Optimizations */
/* Dark backgrounds - enhance text contrast */
body.background-cosmic,
body.background-night-sky,
body.background-night-sky-aurora {
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  --card-bg: rgba(0, 0, 0, 0.7);
  --card-border: rgba(255, 255, 255, 0.2);
}

/* Light backgrounds - adjust for readability */
body.background-mountain,
body.background-mountain-landscape {
  --text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(0, 0, 0, 0.1);
}

/* Vibrant backgrounds - enhance contrast */
body.background-abstract,
body.background-abstract-waves,
body.background-cosmic-energy {
  --text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  --card-bg: rgba(0, 0, 0, 0.8);
  --card-border: rgba(255, 255, 255, 0.3);
}

/* Exact image background - balanced contrast */
body.background-exact-image {
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(0, 0, 0, 0.15);
}

/* Apply adaptive styles to cards */
.card {
  background: transparent;
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
  backdrop-filter: none;
  box-shadow: none;
}

/* Enhance text readability */
h1, h2, h3, h4, h5, h6 {
  text-shadow: var(--text-shadow, 0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Countdown timer - redesigned for 7 segments (micro/nano removed) - STRETCHED */
.countdown {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin: 20px auto;
  max-width: 80vw;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

/* Ensure all segments are visible and properly ordered */
.countdown .segment {
  order: 0;
  visibility: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#deadline-section .segment {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 20px 10px;
  text-align: center;
  min-width: 100px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 8px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

/* Urgency effects for countdown */
#deadline-section .segment.urgent {
  animation: urgentPulse 1s ease-in-out infinite;
  border-color: #ff4757;
  box-shadow: 0 4px 16px rgba(255, 71, 87, 0.3), 0 0 12px rgba(255, 71, 87, 0.2);
}

#deadline-section .segment.critical {
  animation: criticalPulse 0.5s ease-in-out infinite;
  border-color: #ff3838;
  background: rgba(255, 56, 56, 0.1);
  box-shadow: 0 4px 16px rgba(255, 56, 56, 0.4), 0 0 16px rgba(255, 56, 56, 0.3);
}

@keyframes urgentPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes criticalPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

#deadline-section .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.8px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

#deadline-section .label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive design for smaller screens */
@media (max-width: 1200px) {
  .countdown {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

#deadline-section .segment {
    min-width: 45px;
    padding: 8px 4px;
  }
  
  #deadline-section .num {
    font-size: 1rem;
  }
  
  #deadline-section .label {
    font-size: 0.65rem;
  }
}

@media (max-width: 768px) {
  .countdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
    padding: 0 8px;
    max-width: 100%;
  }
  
  /* Ensure all segments are visible */
  .countdown .segment {
    min-width: 0;
    width: 100%;
    padding: 8px 12px;
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure all segment numbers are visible */
  .countdown .segment .num {
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
    font-weight: bold;
    display: block !important;
    visibility: visible !important;
  }
  
  /* Ensure all segment labels are visible */
  .countdown .segment .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    display: block !important;
    visibility: visible !important;
  }
  
  #deadline-section .card {
    padding: 12px;
    margin: 4px;
    overflow: visible;
  }
  
  #deadline-section h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .countdown {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 8px 0;
    padding: 0 4px;
    max-width: 100%;
  }
  
  /* Ensure all segments are visible */
  .countdown .segment {
    min-width: 0;
    width: 100%;
    padding: 6px 10px;
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure all segment numbers are visible */
  .countdown .segment .num {
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.2px;
    font-weight: bold;
    display: block !important;
    visibility: visible !important;
  }
  
  /* Ensure all segment labels are visible */
  .countdown .segment .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    display: block !important;
    visibility: visible !important;
  }
  
  #deadline-section h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  
  #deadline-section .card {
    padding: 8px;
    margin: 2px;
    overflow: visible;
  }
}

/* Extra small mobile screens - vertical stack */
@media (max-width: 360px) {
  .countdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0;
    padding: 0 2px;
    max-width: 100%;
  }
  
  /* Ensure all segments are visible */
  .countdown .segment {
    min-width: 0;
    width: 100%;
    padding: 5px 8px;
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 5px;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure all segment numbers are visible */
  .countdown .segment .num {
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1px;
    font-weight: bold;
    display: block !important;
    visibility: visible !important;
  }
  
  /* Ensure all segment labels are visible */
  .countdown .segment .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    display: block !important;
    visibility: visible !important;
  }
  
  #deadline-section h2 {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  
  #deadline-section .card {
    padding: 6px;
    margin: 1px;
    overflow: visible;
  }
  
  
}

/* Very small screens - vertical stack with compact spacing */
@media (max-width: 320px) {
  .countdown {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 4px 0;
    padding: 0 1px;
    max-width: 100%;
  }
  
  /* Ensure all segments are visible */
  .countdown .segment {
    min-width: 0;
    width: 100%;
    padding: 4px 6px;
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure all segment numbers are visible */
  .countdown .segment .num {
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1px;
    font-weight: bold;
    display: block !important;
    visibility: visible !important;
  }
  
  /* Ensure all segment labels are visible */
  .countdown .segment .label {
    font-size: 0.6rem;
    text-transform: uppercase;
    display: block !important;
    visibility: visible !important;
  }
  
  #deadline-section h2 {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }
  
  #deadline-section .card {
    padding: 4px;
    margin: 1px;
    overflow: visible;
  }
  
  
}

/* Navigation adaptations */
.left-nav {
  background: var(--card-bg, rgba(0, 0, 0, 0.8));
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
}

/* Button adaptations */
.primary, .secondary {
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.2));
}

/* Input field adaptations */
.input {
  background: var(--card-bg, rgba(255, 255, 255, 0.1));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.2));
  backdrop-filter: blur(10px);
  color: var(--text, #ffffff);
}

/* Modal adaptations */
.modal-content {
  background: var(--card-bg, rgba(0, 0, 0, 0.9));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.2));
  backdrop-filter: blur(20px);
}

/* Enhanced Quote Modal Styles */
.quote-modal-content {
  max-width: 600px;
  animation: slideInUp 0.3s ease-out;
}

.quote-modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.quote-category {
  margin-bottom: 16px;
  text-align: center;
}

.category-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.category-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quote-large {
  font-size: 1.4rem;
  line-height: 1.6;
  text-align: center;
  margin: 0 0 16px 0;
  padding: 20px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInScale 0.5s ease-out;
}

.quote-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.quote-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.quote-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: var(--accent-color);
  color: white;
}

.quote-action-btn.favorited {
  background: #ff4757;
  color: white;
  border-color: #ff4757;
}

/* Category Filter Modal */
.category-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px 0;
}

.category-filter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.category-filter-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: var(--accent-color);
  color: white;
}

.category-icon {
  font-size: 2rem;
}

.category-name {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* Animations */
@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

/* Mobile optimizations */
@media (max-width: 768px) {
  .quote-modal-content {
    margin: 10px;
    max-width: calc(100vw - 20px);
  }
  
  .quote-large {
    font-size: 1.2rem;
    padding: 16px 0;
  }
  
  .quote-actions {
    gap: 8px;
  }
  
  .quote-action-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .category-filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .category-filter-btn {
    padding: 16px 12px;
  }
}

/* Language Selector Styles */
.language-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 20px 0;
}

.language-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.language-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: var(--accent-color);
  color: white;
}

.language-flag {
  font-size: 1.5rem;
}

.language-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 768px) {
  .language-selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .language-btn {
    padding: 12px 8px;
  }
  
  .language-flag {
    font-size: 1.2rem;
  }
  
  .language-name {
    font-size: 0.8rem;
  }
}

/* Accent Color Support for All Elements */
.accent-border {
  border-color: var(--accent, #4a9eff) !important;
}

.accent-bg {
  background-color: var(--accent, #4a9eff) !important;
}

.accent-text {
  color: var(--accent, #4a9eff) !important;
}

.accent-shadow {
  box-shadow: 0 0 20px var(--accent, #4a9eff) !important;
}

/* Accent color for images and logos */
.logo, .brand-logo img, .loading-logo img {
  filter: drop-shadow(0 0 10px var(--accent, #4a9eff));
  transition: filter 0.3s ease;
}

.logo:hover, .brand-logo img:hover, .loading-logo img:hover {
  filter: drop-shadow(0 0 15px var(--accent, #4a9eff)) brightness(1.1);
}

/* Accent color for buttons and interactive elements */
button, .btn, .primary, .secondary {
  border-color: var(--accent, #4a9eff);
  transition: all 0.3s ease;
}

button:hover, .btn:hover, .primary:hover, .secondary:hover {
  background-color: var(--accent, #4a9eff);
  color: white;
  box-shadow: 0 0 15px var(--accent, #4a9eff);
}

/* Theme-based adaptations */
.dark-theme {
  --text: #ffffff;
  --text-muted: #e0e0e0;
  /* --accent: Keep user's custom accent color */
  --bg-primary: rgba(0, 0, 0, 0.7);
  --bg-secondary: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
  --shadow: rgba(0, 0, 0, 0.5);
}

.light-theme {
  --text: #1a1a1a;
  --text-muted: #4a4a4a;
  /* --accent: Keep user's custom accent color */
  --bg-primary: rgba(255, 255, 255, 0.9);
  --bg-secondary: rgba(0, 0, 0, 0.05);
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow: rgba(0, 0, 0, 0.1);
}

.vibrant-theme {
  --text: #ffffff;
  --text-muted: #f0f0f0;
  /* --accent: Keep user's custom accent color */
  --bg-primary: rgba(0, 0, 0, 0.8);
  --bg-secondary: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.3);
  --shadow: rgba(0, 0, 0, 0.4);
}

/* Enhanced readability for different themes */
.dark-theme .card {
  box-shadow: 0 8px 32px var(--shadow);
  background: var(--bg-primary);
  border-color: var(--border-color);
}

.light-theme .card {
  box-shadow: 0 8px 32px var(--shadow);
  background: var(--bg-primary);
  border-color: var(--border-color);
}

.vibrant-theme .card {
  box-shadow: 0 8px 32px var(--shadow), 0 0 20px rgba(255, 255, 255, 0.1);
  background: var(--bg-primary);
  border-color: var(--border-color);
}

/* Comprehensive UI Element Adaptations */
.dark-theme .left-nav,
.light-theme .left-nav,
.vibrant-theme .left-nav {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

.dark-theme .primary,
.dark-theme .secondary,
.light-theme .primary,
.light-theme .secondary,
.vibrant-theme .primary,
.vibrant-theme .secondary {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text);
}

.dark-theme .input,
.light-theme .input,
.vibrant-theme .input {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text);
}

.dark-theme .modal-content,
.light-theme .modal-content,
.vibrant-theme .modal-content {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

.dark-theme .nav-item,
.light-theme .nav-item,
.vibrant-theme .nav-item {
  color: var(--text-muted);
}

.dark-theme .nav-item:hover,
.light-theme .nav-item:hover,
.vibrant-theme .nav-item:hover {
  color: var(--text);
  background: var(--bg-secondary);
}

.dark-theme .nav-item.active,
.light-theme .nav-item.active,
.vibrant-theme .nav-item.active {
  color: var(--accent);
  background: var(--bg-secondary);
}

.dark-theme .bottom-brand,
.light-theme .bottom-brand,
.vibrant-theme .bottom-brand {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

.dark-theme .brand-text,
.light-theme .brand-text,
.vibrant-theme .brand-text {
  color: var(--text-muted);
}

.dark-theme .icon-btn,
.light-theme .icon-btn,
.vibrant-theme .icon-btn {
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.dark-theme .icon-btn:hover,
.light-theme .icon-btn:hover,
.vibrant-theme .icon-btn:hover {
  color: var(--text);
  background: var(--bg-primary);
}

.dark-theme .muted,
.light-theme .muted,
.vibrant-theme .muted {
  color: var(--text-muted);
}

.dark-theme .small,
.light-theme .small,
.vibrant-theme .small {
  color: var(--text-muted);
}

.dark-theme .bigger,
.light-theme .bigger,
.vibrant-theme .bigger {
  color: var(--text);
}

.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme h5,
.dark-theme h6,
.light-theme h1,
.light-theme h2,
.light-theme h3,
.light-theme h4,
.light-theme h5,
.light-theme h6,
.vibrant-theme h1,
.vibrant-theme h2,
.vibrant-theme h3,
.vibrant-theme h4,
.vibrant-theme h5,
.vibrant-theme h6 {
  color: var(--text);
}

.dark-theme .label,
.light-theme .label,
.vibrant-theme .label {
  color: var(--text-muted);
}

/* Additional UI Elements */
.dark-theme .section,
.light-theme .section,
.vibrant-theme .section {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

.dark-theme .row,
.light-theme .row,
.vibrant-theme .row {
  color: var(--text);
}

.dark-theme .toast,
.light-theme .toast,
.vibrant-theme .toast {
  background: var(--bg-primary);
  color: var(--text);
  border: 1px solid var(--border-color);
}

.dark-theme .dropdown,
.light-theme .dropdown,
.vibrant-theme .dropdown {
  background: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text);
}

.dark-theme .dropdown-item,
.light-theme .dropdown-item,
.vibrant-theme .dropdown-item {
  color: var(--text);
}

.dark-theme .dropdown-item:hover,
.light-theme .dropdown-item:hover,
.vibrant-theme .dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

.dark-theme .checkbox,
.light-theme .checkbox,
.vibrant-theme .checkbox {
  accent-color: var(--accent);
}

.dark-theme .progress-bar,
.light-theme .progress-bar,
.vibrant-theme .progress-bar {
  background: var(--bg-secondary);
}

.dark-theme .progress-fill,
.light-theme .progress-fill,
.vibrant-theme .progress-fill {
  background: var(--accent);
}

/* Countdown timer theme adaptations */
.dark-theme #deadline-section .segment {
  box-shadow: 0 8px 25px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: var(--bg-primary);
  border-color: var(--border-color);
}

.light-theme #deadline-section .segment {
  box-shadow: 0 8px 25px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: var(--bg-primary);
  border-color: var(--border-color);
}

.vibrant-theme #deadline-section .segment {
  box-shadow: 0 8px 25px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 15px rgba(245, 158, 11, 0.1);
  background: var(--bg-primary);
  border-color: var(--border-color);
}

/* Smooth transitions for theme changes */
body {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card, .left-nav, .modal-content, .primary, .secondary, .input {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image Upload Styling */
#upload-section, #preview-section {
  transition: all 0.3s ease;
}

#stg-upload-btn {
  cursor: pointer;
  transition: all 0.2s ease;
}

#stg-upload-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

#image-preview {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

#image-preview .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: none;
}

#image-preview:hover .remove-btn {
  display: block;
}

/* Uploaded image background */
body.background-uploaded-image {
  background-image: var(--uploaded-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.background-uploaded-image::before {
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* Enhanced Background Effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
  z-index: -2;
  pointer-events: none;
}

.big {
  font-size: 16px;
}

/* Layout */

/* Modular Layout */
.modular-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  background: transparent;
}

.main-content {
  flex: 1;
  padding-bottom: 80px; /* Space for bottom brand area */
  max-width: none;
  margin: 0;
  margin-left: 100px; /* Space for left sidebar */
  width: calc(100% - 100px);
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 0;
}

.content-sections {
  position: relative;
  min-height: 500px;
  max-height: calc(100vh - 120px);
  overflow: visible;
  background: transparent;
}


.content-section {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  margin-bottom: 0;
  height: calc(100vh - 60px);
  overflow: visible;
  display: flex;
  flex-direction: column;
  background: transparent;
  justify-content: flex-start;
  align-items: center;
  padding-top: 0;
  margin-top: 0;
}

.content-section.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  margin-bottom: 0;
  height: calc(100vh - 160px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 0;
  margin-top: 0;
  align-content: flex-start;
  align-items: flex-start;
}

.content-section.slide-out {
  transform: translateY(-20px);
  opacity: 0;
}

.content-section.slide-in {
  transform: translateY(20px);
  opacity: 0;
}

/* Bottom Brand Area */
.bottom-brand {
  position: fixed;
  bottom: 0;
  left: 100px; /* Start after left sidebar */
  right: 0;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(25px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 20px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-settings {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Button styling for brand-settings */
.btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 11px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text, #ffffff);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary {
  background: var(--accent, #4a9eff);
  border-color: var(--accent, #4a9eff);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover, #3b82f6);
  border-color: var(--accent-hover, #3b82f6);
}

.btn-danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.settings-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text, #ffffff);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
}

.settings-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.brand-controls .icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.brand-controls .icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo .logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.brand-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.8px;
}

/* Left Sidebar Navigation */
.left-nav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(25px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  z-index: 199;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100%;
}

.nav-container::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 60px;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-item:hover::before {
  opacity: 1;
}

.nav-item:hover {
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 12px rgba(255, 255, 255, 0.05),
    0 2px 6px rgba(255, 255, 255, 0.02);
}

.nav-item.active::before {
  opacity: 1;
}

.nav-icon {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-align: center;
}

/* Section Actions */
.section-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}



/* Enhanced Card Styling for Modular Layout */
.content-section .card {
  margin-bottom: 0;
  min-height: auto;
  height: calc(100vh - 180px);
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  padding: 8px;
  width: 100%;
  max-width: none;
  margin-top: 0;
  align-self: flex-start;
  position: relative;
  top: 0;
}


/* Welcome section spacing */
#welcome-section {
  margin-bottom: 0;
  margin-top: 20px;
}


/* Focus (Pomodoro) section specific styling */
#pomodoro-section {
  height: calc(100vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding-top: 0;
  margin-top: 0;
  width: 100%;
}

#pomodoro-section .card {
  min-height: auto;
  height: auto;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 10px 20px;
  width: 100%;
  max-width: none;
  margin-top: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}



/* Focus section internal spacing */
#pomodoro-section .card h2 {
  margin-bottom: 8px;
  font-size: 2rem;
  text-align: center;
}

#pomodoro-section .card > * {
  margin-bottom: 8px;
}

#pomodoro-section .card > *:last-child {
  margin-bottom: 0;
}

 


/* Laptop screen optimizations */
@media (min-width: 1024px) and (max-width: 1440px) {
  .content-section {
    height: calc(100vh - 40px);
    padding-top: 0;
  }
  
  .content-section .card {
    max-width: none;
    padding: 20px;
  }
  
}

/* Large laptop screens */
@media (min-width: 1441px) {
  .content-section {
    height: calc(100vh - 40px);
    padding-top: 0;
  }
  
  .content-section .card {
    max-width: none;
    padding: 25px;
  }
  
  .content-section .card h2 {
    font-size: 2.2rem;
  }
  
}

/* Small laptop screens */
@media (min-width: 768px) and (max-width: 1023px) {
  .content-section {
    height: calc(100vh - 100px);
  }
  
  .content-section .card {
    max-width: none;
    padding: 15px;
  }
  
}

 

.content-section .card h2 {
  margin-bottom: 6px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.5rem;
  text-align: center;
}

/* Internal spacing for all content sections */
.content-section .card > * {
  margin-bottom: 4px;
}

.content-section .card > *:last-child {
  margin-bottom: 0;
}


/* Language Selector Styles */
.language-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 16px 0;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--panel2);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.language-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-flag {
  font-size: 20px;
}

.language-name {
  font-weight: 600;
}

/* Category Filter Styles */
.category-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px 0;
}

.category-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--panel2);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  font-weight: 500;
}

.category-filter-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-icon {
  font-size: 16px;
}

.category-name {
  font-weight: 600;
}

/* Specific optimizations for notes section */
#notes-section .card {
  padding: 10px;
  padding-bottom: 60px;
}

#notes-section .row {
  margin-bottom: 8px;
}

#notes-section h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

#notes-section .section-actions {
  gap: 6px;
}

#notes-section .section-actions button {
  padding: 8px 12px;
  font-size: 0.9rem;
}

/* Notes controls optimization */
.notes-controls {
  margin-bottom: 6px;
  gap: 6px;
  display: flex;
}

.notes-controls input {
  padding: 6px 10px;
  font-size: 0.85rem;
  flex: 1;
}

.notes-controls select {
  padding: 6px 10px;
  font-size: 0.85rem;
  min-width: 100px;
}

/* Specific spacing for different section types */
.content-section .tabs {
  gap: 0;
  margin-bottom: 8px;
}

.content-section .tab {
  margin: 0;
}

 

/* Task Input Row Styling */
.task-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.task-input-row .input {
  flex: 1;
}


/* Mobile Responsiveness for Navigation */
@media (max-width: 768px) {
  .nav-container {
    gap: 8px;
    padding: 0;
  }
  
  .nav-item {
    padding: 10px 6px;
    width: 50px;
  }
  
  .nav-icon {
    font-size: 20px;
  }
  
  .nav-label {
    font-size: 9px;
  }
  
  .left-nav {
    width: 70px;
  }
  
  .main-content {
    margin-left: 80px;
    width: calc(100% - 80px);
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 0;
  }
  
  .content-section .card {
    min-height: auto;
    height: calc(100vh - 160px);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding: 6px;
  }
  
  /* Mobile viewport optimizations */
  .content-section.active {
    height: calc(100vh - 140px);
  }
  
  
  #notes-section .card {
    padding: 4px;
    padding-bottom: 20px;
    padding-top: 2px;
  }
  
  
  .notes-controls {
    margin-bottom: 4px;
  }
  
  .content-section .card h2 {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }
  
  .content-section .card > * {
    margin-bottom: 3px;
  }
}

/* Additional responsive breakpoints for smaller screens */
@media (max-width: 1200px) {
  .content-section.active {
    height: calc(100vh - 140px);
  }
  
  .content-section .card {
    height: calc(100vh - 160px);
    max-height: calc(100vh - 160px);
  }
}

@media (max-width: 900px) {
  .content-section.active {
    height: calc(100vh - 120px);
  }
  
  .content-section .card {
    height: calc(100vh - 140px);
    max-height: calc(100vh - 140px);
  }
}

@media (max-width: 600px) {
  .content-section.active {
    height: calc(100vh - 100px);
  }
  
  .content-section .card {
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
  }
}

/* For very small screens (50% zoom or small devices) */
@media (max-width: 500px) {
  .content-section.active {
    height: calc(100vh - 80px);
    justify-content: flex-start;
    align-items: stretch;
  }
  
  .content-section .card {
    height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    padding: 6px;
    margin: 0;
  }
  
  /* Ensure content starts at top */
  .content-section .card > *:first-child {
    margin-top: 0;
  }
}

/* Fix for zoomed out browsers (50% zoom) */
@media (max-height: 600px) {
  .content-section.active {
    height: calc(100vh - 100px);
    justify-content: flex-start;
  }
  
  .content-section .card {
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
    padding: 4px;
  }
  
  .content-section .card h2 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  
}

/* Fix for very small viewport heights */
@media (max-height: 500px) {
  .content-section.active {
    height: calc(100vh - 80px);
  }
  
  .content-section .card {
    height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    padding: 2px;
  }
  
  .content-section .card h2 {
    font-size: 1rem;
    margin-bottom: 1px;
  }
  
  
  .stat-box {
    padding: 4px;
  }
}

/* Extra compact buttons for very small screens */
@media (max-width: 480px) {
  .brand-settings {
    gap: 2px;
  }
  
  .btn-sm {
    padding: 2px 4px;
    font-size: 9px;
  }
  
  .settings-btn {
    padding: 2px 4px;
    font-size: 9px;
    min-width: 20px;
    height: 20px;
  }
  
  .bottom-brand {
    padding: 6px 8px;
  }
}
  
  
  /* Bottom brand area mobile */
  .bottom-brand {
    left: 80px;
    padding: 8px 12px;
    flex-direction: row;
    gap: 8px;
  }
  
  .brand-settings {
    gap: 4px;
  }
  
  .btn-sm {
    padding: 3px 6px;
    font-size: 10px;
  }
  
  .settings-btn {
    padding: 3px 6px;
    font-size: 10px;
    min-width: 24px;
    height: 24px;
  }
  
  .brand-controls {
    gap: 8px;
  }
  
  .brand-controls .icon-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .brand-logo .logo {
    width: 32px;
    height: 32px;
  }
  
  .brand-text {
    font-size: 1.1rem;
  }
  
  
  .stat-box {
    padding: 8px;
  }
  
  .stat-number {
    font-size: 1.2rem;
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .input-group:first-child {
    flex: 1;
  }
  

  .task-input-row {
    flex-direction: column;
    gap: 12px;
  }

  .task-input-row .input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-container {
    gap: 2px;
    padding: 0 12px;
  }
  
  .left-nav {
    width: 60px;
  }
  
  .nav-item {
    padding: 8px 4px;
    width: 45px;
  }
  
  .nav-icon {
    font-size: 18px;
  }
  
  .nav-label {
    font-size: 8px;
  }
  
  .main-content {
    margin-left: 70px;
    width: calc(100% - 70px);
  }

  .content-section .card {
    min-height: auto;
    padding: 20px;
  }

  .section-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .section-actions button {
    width: 100%;
  }
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
  .main-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .content-section .card {
    padding: 15px;
  }
}

/* Focus and Accessibility Improvements */
.nav-item:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.content-section:focus-within {
  outline: none;
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

/* Loading state for sections */
.content-section.loading {
  opacity: 0.7;
  pointer-events: none;
}

.content-section.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Prevent quote from overlapping controls on wide screens */
.motivational-quote {
  flex: 1;
  max-width: 50%;
  min-width: 200px;
}

.motivational-quote .quote-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}
.logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  margin-right: 12px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  filter: contrast(1.1) brightness(1.05) saturate(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.spacer {
  flex: 1;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
  .page {
    max-width: 100%;
    padding: 0 16px 16px 16px;
  }
  
  .grid {
    gap: 16px;
  }
  
  .card {
    padding: 18px;
  }
  
  .motivational-quote { 
    max-width: 60%; 
  }
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.section {
  margin-bottom: 0;
}

.card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transition: none;
  min-height: auto;
  width: auto;
  max-width: none;
  margin: 0;
}

.card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px 0;
  color: var(--text);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.bigger {
  font-size: 1.125rem;
}

.xxl {
  font-size: 1.25rem;
}

/* Form Elements */
.input {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--radius-8);
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
  flex: 1;
  transition: all 0.2s ease;
}

.input::placeholder {
  color: var(--muted);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  transform: translateY(-1px);
}

/* Buttons */
button {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--radius-8);
  padding: 8px 16px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

button:hover {
  background: var(--border);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

button:active {
  transform: translateY(0);
}

button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.primary {
  background: linear-gradient(135deg, #333333 0%, #000000 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 
    0 4px 16px rgba(255, 255, 255, 0.3),
    0 2px 8px rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.primary:hover::before {
  left: 100%;
}

.primary:hover {
  background: linear-gradient(135deg, #555555 0%, #333333 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(255, 255, 255, 0.4),
    0 4px 12px rgba(255, 255, 255, 0.3);
}

.secondary {
  background: var(--panel2);
  color: var(--text);
}

.icon-btn {
  padding: 8px;
  min-width: 36px;
}

/* Progress */
.progress {
  background: var(--panel2);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress #progress-bar {
  background: linear-gradient(90deg, var(--accent), var(--green));
  height: 100%;
  transition: width 0.3s ease;
  position: relative;
}

.progress #progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Enhanced Countdown Timer - moved to main countdown section above */

/* Deadline section improvements */
#deadline-section {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 12px 0;
  padding: 16px 0;
}

#deadline-section .row {
  margin-bottom: 8px;
}

#deadline-section .row:last-of-type {
  margin-bottom: 0;
}

.segment {
  text-align: center;
  background: var(--panel2, #f8fafc);
  border-radius: 8px;
  padding: 8px 6px;
  min-width: 50px;
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* General segment styling - overridden by specific countdown styles */
.segment .num {
  font-size: 1.2rem;
  font-weight: 600;
}

.segment .label {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Stack μs under SECS on mobile */
@media (max-width: 768px) {
  .countdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
  }
  /* Place μs under Secs (right column) and keep default Hours→Mins→Secs order */
  .countdown .segment:nth-child(7) {
    grid-column: 3;
    grid-row: 3;
    min-width: 60px;
  }
}

/* Deadline & Goals Section - Large Size */
#deadline-section .card {
  padding: 0;
  min-height: auto;
  display: block;
  justify-content: normal;
  align-items: normal;
  max-width: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  overflow: visible;
}

/* Removed blur effects from deadline card */

#deadline-section h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  text-align: center;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.5px;
}


/* Countdown grid layout moved to main countdown section above */

/* Segment styling moved to main countdown section above */

#deadline-section .segment.active {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: var(--panel);
}

/* Removed blur effects from segments */

#deadline-section .num {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 1px;
  line-height: 1;
  transition: all 0.2s ease;
  transform-origin: center;
}

#deadline-section .num.changing {
  transform: scale(1.05);
}


#deadline-section .label {
  font-size: 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
  transition: all 0.2s ease;
}

#deadline-section .segment.active .label {
  color: var(--text);
}

#deadline-section .muted {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin: 8px 0;
  font-weight: 500;
  transition: all 0.2s ease;
}

#deadline-section .small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  margin: 6px 0;
  transition: all 0.2s ease;
}

#deadline-section .bigger {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  margin: 6px 0;
  transition: all 0.2s ease;
}

#countdown-human {
  transition: opacity 0.2s ease-in-out;
}

/* Responsive adjustments for large section */

/* Extra Large screens - 7 columns - URGENCY MAXIMUM SIZE */
@media (min-width: 1920px) {
  #deadline-section .countdown {
    grid-template-columns: repeat(7, minmax(180px, 1fr));
    gap: 35px;
    padding: 0 100px;
    max-width: 98vw;
    margin: 40px auto;
  }
  
  #deadline-section .segment {
    min-width: 180px;
    max-width: 280px;
    padding: 60px 25px;
    min-height: 200px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
  }
  
  #deadline-section .num {
    font-size: 6rem;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  }
  
  #deadline-section .label {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
  }
  
  #deadline-section h2 {
    font-size: 5rem;
  }
  
  #deadline-section .muted {
    font-size: 2rem;
  }
  
  #deadline-section .bigger {
    font-size: 1.8rem;
  }
}

/* Large screens - 7 columns - URGENCY LARGE SIZE */
@media (min-width: 1600px) {
  #deadline-section .countdown {
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    gap: 28px;
    padding: 0 80px;
    max-width: 95vw;
    margin: 30px auto;
  }
  
  #deadline-section .segment {
    min-width: 150px;
    max-width: 240px;
    padding: 50px 20px;
    min-height: 170px;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25), 0 0 15px rgba(255, 255, 255, 0.08);
  }
  
  #deadline-section .num {
    font-size: 5rem;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  }
  
  #deadline-section .label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.8px;
  }
  
  #deadline-section h2 {
    font-size: 4.5rem;
  }
  
  #deadline-section .muted {
    font-size: 1.5rem;
  }
  
  #deadline-section .small {
    font-size: 1.8rem;
  }
  
  #deadline-section .bigger {
    font-size: 1.4rem;
  }
}

/* Desktop screens - 7 columns - URGENCY MEDIUM SIZE */
@media (min-width: 1200px) and (max-width: 1599px) {
  #deadline-section .countdown {
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: 22px;
    padding: 0 70px;
    max-width: 90vw;
    margin: 25px auto;
  }
  
  #deadline-section .segment {
    min-width: 130px;
    max-width: 200px;
    padding: 40px 15px;
    min-height: 140px;
    border-radius: 12px;
    box-shadow: 0 5px 24px rgba(0, 0, 0, 0.2), 0 0 12px rgba(255, 255, 255, 0.06);
  }
  
  #deadline-section .num {
    font-size: 4.2rem;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  }
  
  #deadline-section .label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.6px;
  }
  
  #deadline-section h2 {
    font-size: 4.2rem;
  }
  
  #deadline-section .muted {
    font-size: 1.4rem;
  }
  
  #deadline-section .small {
    font-size: 1.7rem;
  }
  
  #deadline-section .bigger {
    font-size: 1.3rem;
  }
}

/* Laptop screens - 7 columns - URGENCY COMPACT SIZE */
@media (min-width: 768px) and (max-width: 1199px) {
  #deadline-section .countdown {
    grid-template-columns: repeat(7, minmax(110px, 1fr));
    gap: 16px;
    padding: 0 60px;
    max-width: 85vw;
    margin: 22px auto;
  }
  
  #deadline-section .segment {
    min-width: 110px;
    max-width: 160px;
    padding: 32px 10px;
    min-height: 110px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 10px rgba(255, 255, 255, 0.04);
  }
  
  #deadline-section .num {
    font-size: 3.2rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
  }
  
  #deadline-section .label {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
  }
  
  #deadline-section h2 {
    font-size: 3.5rem;
  }
  
  #deadline-section .muted {
    font-size: 1.2rem;
  }
  
  #deadline-section .small {
    font-size: 1.5rem;
  }
  
  #deadline-section .bigger {
    font-size: 1.1rem;
  }
}

/* Tablet screens - 3 columns */
@media (max-width: 767px) {
  #deadline-section .card {
    padding: 20px;
    min-height: auto;
  }
  
  #deadline-section h2 {
    font-size: 2.5rem;
  }
  
  #deadline-section .countdown {
    grid-template-columns: repeat(7, minmax(65px, 1fr));
    gap: 8px;
    padding: 0 15px;
    max-width: 700px;
    margin: 16px auto;
  }
  
  #deadline-section .segment {
    min-width: 65px;
    max-width: 100px;
    padding: 16px 4px;
    min-height: 70px;
  }
  
  #deadline-section .num {
    font-size: 2rem;
  }
  
  #deadline-section .label {
    font-size: 0.8rem;
  }
  
  #deadline-section .muted {
    font-size: 1.1rem;
  }
  
  #deadline-section .small {
    font-size: 1.4rem;
  }
  
  #deadline-section .bigger {
    font-size: 1rem;
  }
}

/* Mobile screens - 7 columns */
@media (max-width: 480px) {
  #deadline-section .countdown {
    grid-template-columns: repeat(7, minmax(55px, 1fr));
    gap: 6px;
    padding: 0 10px;
    max-width: 500px;
    margin: 16px auto;
  }
  
  #deadline-section .segment {
    min-width: 55px;
    max-width: 80px;
    padding: 12px 3px;
    min-height: 60px;
  }
  
  #deadline-section .num {
    font-size: 1.8rem;
  }
  
  #deadline-section .label {
    font-size: 0.7rem;
  }
  
  #deadline-section h2 {
    font-size: 2.2rem;
  }
  
  #deadline-section .muted {
    font-size: 1rem;
  }
  
  #deadline-section .small {
    font-size: 1.3rem;
  }
  
  #deadline-section .bigger {
    font-size: 0.9rem;
  }
}

/* Mobile horizontal countdown layout - 3x3 grid */
@media (max-width: 768px) {
  #deadline-section .countdown {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  /* Position segments in grid */
  #deadline-section .countdown .segment:nth-child(1) { grid-column: 1; grid-row: 1; } /* Years */
  #deadline-section .countdown .segment:nth-child(2) { grid-column: 2; grid-row: 1; } /* Months */
  #deadline-section .countdown .segment:nth-child(3) { grid-column: 3; grid-row: 1; } /* Days */
  #deadline-section .countdown .segment:nth-child(4) { grid-column: 1; grid-row: 2; } /* Hours */
  #deadline-section .countdown .segment:nth-child(5) { grid-column: 2; grid-row: 2; } /* Minutes */
  #deadline-section .countdown .segment:nth-child(6) { grid-column: 3; grid-row: 2; } /* Seconds */
  #deadline-section .countdown .segment:nth-child(7) { grid-column: 1 / -1; grid-row: 3; } /* Milliseconds - spans all columns */
  
  /* Style all segments in mobile grid */
  #deadline-section .countdown .segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 8px 4px;
  }
  
  /* Special styling for milliseconds (centered in row 3) */
  #deadline-section .countdown .segment:nth-child(7) {
    min-width: 80px;
    padding: 8px 12px;
  }
  
  #deadline-section .countdown .num {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
  }
  
  #deadline-section .countdown .label {
    font-size: 0.7rem;
    margin-top: 2px;
    text-align: center;
  }
}

.segment::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-light, rgba(74, 158, 255, 0.15)), transparent);
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.segment:hover::before {
  left: 100%;
}

.segment:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 
    0 0 20px var(--accent-light, rgba(74, 158, 255, 0.6)),
    0 2px 4px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.02em;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  z-index: 1;
  line-height: 1;
  margin-bottom: 6px;
}

.label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

/* Clean Pomodoro Timer Design */
.pomo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  background: transparent;
  position: relative;
  width: 100%;
  min-height: 80vh;
  max-width: 800px;
  margin: 0 auto;
}

/* Timer Display */
.timer-display {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(45deg, 
    rgba(74, 158, 255, 0.3), 
    transparent, 
    rgba(74, 158, 255, 0.3)
  );
  z-index: -1;
  opacity: 0;
  transition: all 0.3s ease;
  animation: rotate 4s linear infinite;
}

.ring::after {
  content: '';
  position: absolute;
  inset: max(12px, calc(var(--pomo-size) * 0.06));
  border-radius: 50%;
  background: radial-gradient(circle, var(--pomo-inner-start) 0%, var(--pomo-inner-mid) 55%, var(--pomo-inner-end) 100%);
  z-index: 1;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ring:hover::before {
  opacity: 1;
}

.ring:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 20px rgba(74, 158, 255, 0.3),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
  border-color: var(--accent);
}

.time {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 100;
  color: var(--accent);
  text-shadow: 0 0 40px currentColor, 0 0 80px currentColor;
  letter-spacing: 12px;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: all 0.3s ease;
  text-align: center;
  display: block;
  width: 100%;
  white-space: nowrap;
  opacity: 1;
}

/* Timer automatically adapts to accent color via CSS variables */


/* Tighten spacing between digits and separator inside the timer */
.time .time-mins,
.time .time-secs { 
  letter-spacing: 0; 
  font-variant-numeric: tabular-nums; 
}
.time .time-sep {
  display: inline-block;
  padding: 0;
  margin: 0 -6px; /* negative margin reduces visible gap */
}


.controls {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.controls button {
  background: var(--accent, rgba(255, 255, 255, 0.1));
  border: 2px solid var(--accent, rgba(255, 255, 255, 0.3));
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-width: 100px;
}

.controls button:hover {
  background: var(--accent, rgba(255, 255, 255, 0.05));
  border-color: var(--accent, rgba(255, 255, 255, 0.1));
  transform: translateY(-1px);
  opacity: 0.8;
}

.controls button:active {
  transform: translateY(0);
}

.controls .primary {
  background: var(--accent, rgba(255, 215, 0, 0.8));
  color: white;
  border-color: var(--accent, rgba(255, 215, 0, 0.8));
  font-weight: 700;
  box-shadow: 0 0 20px var(--accent, rgba(255, 215, 0, 0.5));
}

.controls .primary:hover {
  background: var(--accent, rgba(255, 215, 0, 0.9));
  border-color: var(--accent, rgba(255, 215, 0, 0.9));
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--accent, rgba(255, 215, 0, 0.7));
  opacity: 0.9;
}


/* Remove focus ring on timer controls */
.controls button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .pomo {
    min-height: 70vh;
    gap: 30px;
    padding: 20px;
  }
  
  .time {
    font-size: clamp(8rem, 20vw, 16rem);
    letter-spacing: 8px;
    font-weight: 700;
  }
  
  .controls {
    gap: 15px;
  }
  
  .controls button {
    padding: 10px 20px;
    font-size: 13px;
    min-width: 90px;
  }
}

@media (max-width: 480px) {
  .pomo {
    min-height: 60vh;
    gap: 25px;
    padding: 15px;
  }
  
  .time {
    font-size: clamp(7rem, 18vw, 14rem);
    letter-spacing: 6px;
    font-weight: 700;
  }
  
  .controls {
    gap: 12px;
  }
  
  .controls button {
    padding: 8px 16px;
    font-size: 12px;
    min-width: 80px;
  }
}


/* Futuristic Timer States */
.ring.running {
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 
    0 0 25px rgba(74, 158, 255, 0.4),
    0 0 50px rgba(74, 158, 255, 0.2),
    inset 0 0 25px rgba(0, 0, 0, 0.4);
}

.ring.running::before {
  opacity: 1;
  animation: rotate 2s linear infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 
      0 0 25px rgba(74, 158, 255, 0.4),
      0 0 50px rgba(74, 158, 255, 0.2),
      inset 0 0 25px rgba(0, 0, 0, 0.4);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 
      0 0 35px rgba(74, 158, 255, 0.6),
      0 0 70px rgba(74, 158, 255, 0.3),
      inset 0 0 35px rgba(0, 0, 0, 0.5);
  }
}

.ring.break {
  background: conic-gradient(#ff6b6b 0deg, var(--border) 0deg);
  box-shadow: 
    0 0 20px rgba(255, 107, 107, 0.3),
    0 0 40px rgba(255, 107, 107, 0.1),
    inset 0 0 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 107, 107, 0.2);
}

.ring.break::before {
  background: linear-gradient(45deg, 
    rgba(255, 107, 107, 0.8), 
    transparent, 
    rgba(255, 107, 107, 0.8),
    transparent,
    rgba(255, 107, 107, 0.8)
  );
}

.ring.break:hover {
  box-shadow: 
    0 0 30px rgba(255, 107, 107, 0.5),
    0 0 60px rgba(255, 107, 107, 0.2),
    inset 0 0 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 107, 107, 0.4);
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--radius-8);
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
}

li:hover {
  transform: translateX(4px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

li.done {
  opacity: 0.7;
  text-decoration: line-through;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  background: var(--panel2);
  border-radius: var(--radius-8);
  padding: 4px;
  gap: 0;
}

.tab {
  background: none;
  border: none;
  padding: 12px 16px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-6);
  transition: all 0.2s ease;
  font-weight: 500;
  margin: 0;
}

.tab:hover {
  background: var(--panel);
  color: var(--text);
}

.tab.active {
  color: var(--accent);
  background: var(--panel);
  border-bottom-color: var(--accent);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-panel {
  display: block;
}

.tab-panel.hidden {
  display: none;
}

/* Drawer */
.drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--panel);
  border-left: 1px solid var(--border);
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

/* Notice component inside settings */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 165, 0, 0.06);
  border: 1px solid rgba(255, 165, 0, 0.25);
  border-radius: var(--radius-12);
  padding: 10px 12px;
}

.notice .notice-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffb44d, #ff8c1a);
  color: #111;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.notice .notice-body {
  color: var(--text);
  font-size: 0.92rem;
}

.notice.warning {
  background: rgba(255, 184, 0, 0.08);
  border-color: rgba(255, 184, 0, 0.35);
}

.drawer.open {
  right: 0;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.backdrop.show {
  opacity: 1;
  visibility: visible;
}


.motivational-quote {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.quote-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.2;
  text-align: left;
}


/* Priority and Category Styling */
.priority-select, .category-select, .time-estimate, .template-select {
  min-width: 100px;
  max-width: 120px;
}

.priority-high {
  border-left: 4px solid #ff4466;
  background: rgba(255, 68, 102, 0.1);
}

.priority-medium {
  border-left: 4px solid #ffaa00;
  background: rgba(255, 170, 0, 0.1);
}

.priority-low {
  border-left: 4px solid #00ff88;
  background: rgba(0, 255, 136, 0.1);
}

.task-category {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-right: 6px;
}

.category-work { background: #000; color: white; border: 1px solid rgba(255, 255, 255, 0.3); }
.category-personal { background: #000; color: white; border: 1px solid rgba(255, 255, 255, 0.3); }
.category-health { background: #000; color: white; border: 1px solid rgba(255, 255, 255, 0.3); }
.category-learning { background: #000; color: white; border: 1px solid rgba(255, 255, 255, 0.3); }
.category-project { background: #000; color: white; border: 1px solid rgba(255, 255, 255, 0.3); }

.task-time-info {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.time-estimate-badge {
  background: #000;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.task-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.task-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.priority-indicator {
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
}

.task-item {
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.task-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.task-item .row {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Enhanced Task Item Styling */
.task-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  width: 100%;
}

.task-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex: 1;
}

.task-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.task-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  color: white;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Task Creation Form Styling */
.task-creation-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.task-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.task-input-field {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 14px;
}

.task-input-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.add-task-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #333 0%, #111 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.add-task-btn:hover {
  background: linear-gradient(135deg, #444 0%, #222 100%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.task-options-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option-group label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.option-group select,
.option-group input {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 12px;
  min-width: 80px;
}

.option-group select:focus,
.option-group input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

/* Fix dropdown options styling */
.option-group select option {
  background: #1a1a1a;
  color: white;
  padding: 8px;
  border: none;
}

.option-group select option:hover,
.option-group select option:focus {
  background: #333;
  color: white;
}

.option-group select option:checked {
  background: #444;
  color: white;
}

/* Journal entry delete button styles */
.journal-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.delete-entry-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.delete-entry-btn:hover {
  background: #ff4444;
  color: white;
  opacity: 1;
}

.journal-btn.danger {
  background: #ff4444;
  color: white;
  border: 1px solid #ff4444;
}

.journal-btn.danger:hover {
  background: #cc3333;
  border-color: #cc3333;
}

.clear-warning {
  text-align: center;
  padding: 20px;
}

.clear-warning p {
  margin: 10px 0;
  color: #666;
}

.clear-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

/* Specific styling for all form selects */
select {
  background: #1a1a1a !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

select option {
  background: #1a1a1a !important;
  color: white !important;
  padding: 8px !important;
  border: none !important;
}

select option:hover {
  background: #333 !important;
  color: white !important;
}

select option:checked,
select option:focus,
select option[selected] {
  background: #333 !important;
  color: white !important;
}

/* Additional webkit specific styling for better cross-browser support */
select::-webkit-scrollbar {
  width: 8px;
}

select::-webkit-scrollbar-track {
  background: #1a1a1a;
}

select::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

select::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.12) 0%, 
    rgba(255, 255, 255, 0.06) 100%
  ), var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 32px rgba(255, 255, 255, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.6);
  color: var(--text);
  font-weight: 500;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  
  .motivational-quote {
    display: none;
  }
  
  /* Mobile Welcome Message Spacing */
  #welcome-section {
    margin-top: 20px;
    padding: 20px 16px;
  }
  
  .welcome-message {
    margin-top: 16px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .welcome-quote {
    margin-top: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .welcome-content .row {
    margin-top: 12px;
    gap: 8px;
  }
  
  .welcome-content .input {
    flex: 1;
    min-width: 0;
  }
  
  .welcome-content .primary {
    min-width: 80px;
  }
  
  
  .page {
    padding: 0 12px 12px 12px;
  }
  
  .card {
    padding: 12px;
    margin-bottom: 8px;
  }
  
  .drawer {
    width: 100%;
    right: -100%;
  }
  
  .countdown {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 14px 0;
  }
  
  .segment {
    min-width: 45px;
    padding: 10px 6px;
  }
  
  .segment .num {
    font-size: 1.4rem;
  }
  
  .segment .label {
    font-size: 0.7rem;
  }
  
  /* Mobile Pomodoro Timer */
  .pomo {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 30px 20px;
    margin: 20px 0;
    min-height: 80vh;
  }
  
  .ring {
    width: 400px;
    height: 400px;
    margin: 0 auto;
  }
  
  .time {
    font-size: clamp(8rem, 20vw, 16rem);
    letter-spacing: 4px;
    font-weight: 700;
  }
  
  .mode {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  
  .controls {
    justify-content: center;
    gap: 16px;
  }
  
  .controls button {
    padding: 16px 24px;
    font-size: 16px;
    min-width: 100px;
    gap: 20px;
  }
  
  .pomo-controls {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  
  .pomo-controls button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .tabs {
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .tab {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .task-item {
    padding: 12px;
  }
  
  .task-title {
    font-size: 0.95rem;
  }
  
  
  .primary {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .secondary {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  /* Mobile Dashboard */
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .dashboard-item {
    padding: 12px;
  }
  
  .dashboard-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .dashboard-label {
    font-size: 10px;
  }
  
  .dashboard-value {
    font-size: 16px;
  }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
  
  .page {
    padding: 0 8px 8px 8px;
  }
  
  /* Small Mobile Welcome Section */
  #welcome-section {
    margin-top: 16px;
    padding: 16px 12px;
  }
  
  .welcome-message {
    margin-top: 12px;
    padding: 8px 0;
    font-size: 1rem;
  }
  
  .welcome-quote {
    margin-top: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
  }
  
  .card {
    padding: 10px;
    border-radius: 8px;
  }
  
  /* Extra Small Mobile Pomodoro */
  .pomo {
    padding: 20px 16px;
    gap: 25px;
    min-height: 75vh;
  }
  
  .ring {
    width: 200px;
    height: 200px;
  }
  
  .time {
    font-size: 2.4rem;
    letter-spacing: 3px;
  }
  
  .mode {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }
  
  .controls {
    gap: 12px;
  }
  
  .controls button {
    padding: 14px 20px;
    font-size: 15px;
    min-width: 90px;
  }
  
  .segment {
    min-width: 40px;
    padding: 5px 3px;
  }
  
  .segment .num {
    font-size: 0.9rem;
  }
  
  .segment .label {
    font-size: 0.6rem;
  }
  
  .countdown {
    gap: 6px;
    margin: 12px 0;
  }
  
  .segment {
    min-width: 50px;
    padding: 10px 6px;
  }
  
  .segment .num {
    font-size: 1.5rem;
  }
  
  .card {
    padding: 12px;
    border-radius: 12px;
  }
  
  .ring {
    width: 180px;
    height: 180px;
  }
  
  .time {
    font-size: 2.2rem;
    letter-spacing: 2px;
  }
  
  .segment {
    min-width: 45px;
    padding: 6px 4px;
  }
  
  .segment .num {
    font-size: 1rem;
  }
  
  .segment .label {
    font-size: 0.65rem;
  }
  
  .task-item {
    padding: 8px;
  }
  
  
  .primary {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .secondary {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .countdown {
    gap: 4px;
  }
  
  .task-item {
    padding: 10px;
  }
  
  
  .primary {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .secondary {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .tab {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
  
  /* Extra Small Dashboard */
  .dashboard-grid {
    gap: 6px;
  }
  
  .dashboard-item {
    padding: 8px;
  }
  
  .dashboard-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .dashboard-label {
    font-size: 9px;
  }
  
  .dashboard-value {
    font-size: 14px;
  }
}

/* Extra Large Mobile Screens */
@media (max-width: 1024px) and (min-width: 769px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .pomo {
    gap: 20px;
  }
  
  .ring {
    width: 250px;
    height: 250px;
  }
  
  .time {
    font-size: 3.2rem;
    letter-spacing: 6px;
  }
  
  /* Tablet Countdown */
  .countdown {
    gap: 14px;
    margin: 18px 0;
  }
  
  .segment {
    min-width: 70px;
    padding: 14px 10px;
  }
  
  .segment .num {
    font-size: 2rem;
  }
  
  .segment .label {
    font-size: 0.8rem;
  }
}

/* Medium Mobile Screens */
@media (max-width: 600px) and (min-width: 481px) {
  .pomo {
    padding: 18px;
    gap: 18px;
  }
  
  .ring {
    width: 230px;
    height: 230px;
  }
  
  .time {
    font-size: 2.6rem;
    letter-spacing: 4px;
  }
  
  .mode {
    font-size: 1.15rem;
  }
  
  .controls button {
    padding: 11px 18px;
    font-size: 13px;
    min-width: 75px;
  }
  
  /* Medium Mobile Countdown */
  .countdown {
    gap: 8px;
    margin: 16px 0;
  }
  
  .segment {
    min-width: 60px;
    padding: 12px 8px;
  }
  
  .segment .num {
    font-size: 1.8rem;
  }
  
  .segment .label {
    font-size: 0.75rem;
  }
}

/* Ultra Small Screens */
@media (max-width: 360px) {
  .page {
    padding: 0 6px 6px 6px;
  }
  
  /* Ultra Small Welcome Section */
  #welcome-section {
    margin-top: 12px;
    padding: 12px 8px;
  }
  
  .welcome-message {
    margin-top: 8px;
    padding: 6px 0;
    font-size: 0.9rem;
  }
  
  .welcome-quote {
    margin-top: 6px;
    padding: 4px 0;
    font-size: 0.8rem;
  }
  
  .card {
    padding: 8px;
  }
  
  .pomo {
    padding: 12px;
    gap: 12px;
  }
  
  .ring {
    width: 200px;
    height: 200px;
  }
  
  .time {
    font-size: 2.2rem;
    letter-spacing: 3px;
  }
  
  .mode {
    font-size: 0.9rem;
  }
  
  .controls {
    gap: 6px;
  }
  
  .controls button {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 60px;
  }
  
  /* Ultra Small Countdown */
  .countdown {
    gap: 4px;
    margin: 12px 0;
  }
  
  .segment {
    min-width: 40px;
    padding: 8px 4px;
  }
  
  .segment .num {
    font-size: 1.1rem;
  }
  
  .segment .label {
    font-size: 0.6rem;
  }
  
  .dashboard-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  
  .task-input-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .task-input-row .input {
    width: 100%;
    font-size: 14px;
  }
  
  .task-input-row button {
    width: 100%;
    padding: 10px;
  }
  
  .section-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .section-actions button {
    width: 100%;
    padding: 10px;
  }
  
  .modal-content {
    margin: 10px;
    padding: 16px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .form-group {
    margin-bottom: 12px;
  }
  
  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }
  
  .form-group .input {
    padding: 8px;
    font-size: 14px;
  }
  
  .form-group select {
    padding: 8px;
    font-size: 14px;
  }
  
  .form-group button {
    padding: 10px;
    font-size: 14px;
  }
}

/* Additional Mobile Improvements */
@media (max-width: 600px) {
  /* Better touch targets */
  .nav-item {
    min-height: 44px;
    min-width: 44px;
  }
  
  .primary, .secondary {
    min-height: 44px;
    padding: 12px 16px;
  }
  
  .icon-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Better spacing for mobile */
  .content-section .card {
    margin-bottom: 16px;
  }
  
  .section h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  
  /* Better form layouts */
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .form-row .input-group {
    width: 100%;
  }
  
  /* Better modal experience */
  .modal {
    padding: 16px;
  }
  
  .modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  
  /* Better task cards */
  .task-card {
    padding: 12px;
    margin-bottom: 8px;
  }
  
  .task-card .task-title {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .task-card .task-meta {
    font-size: 0.8rem;
  }
  
  
  .dashboard-label {
    font-size: 8px;
  }
  
  .dashboard-value {
    font-size: 12px;
  }
}

/* Sanskrit Quote Styles */
.daily-quote {
  margin-top: 12px;
  padding: 12px;
  background: var(--panel2);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.sanskrit-quote {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  font-style: italic;
}

/* Journal Modal Styles */
.journal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.journal-modal-content {
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.journal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.close-journal-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
}

.journal-prompt {
  background: var(--panel2);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  border-left: 4px solid var(--green);
}

.journal-textarea {
  width: 100%;
  min-height: 200px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 16px;
}

.journal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.today-entries {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.journal-entry-preview {
  background: var(--panel2);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.entry-time {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.entry-content {
  font-size: 14px;
  line-height: 1.4;
}


/* Focus Mode Button */
.focus-btn {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-8);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.focus-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Focus Mode Overlay */
.focus-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0b1220 0%, #1e293b 100%);
  display: none !important;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.focus-container {
  max-width: 800px;
  width: 90%;
  text-align: center;
  padding: 40px;
}

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

.focus-title {
  font-size: 2.5rem;
  color: var(--text);
  margin: 0;
}

.focus-exit {
  background: none;
  border: 2px solid var(--border);
  color: var(--text);
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.focus-exit:hover {
  background: var(--accent);
  color: white;
}

.focus-timer-section {
  margin-bottom: 40px;
}

.focus-timer-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg, var(--border) 0deg);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  position: relative;
}

.focus-timer-display {
  font-size: 3rem;
  font-weight: bold;
  color: var(--text);
}

.focus-mode-label {
  font-size: 1.2rem;
  color: var(--muted);
}

.focus-task-section {
  margin-bottom: 40px;
}

.focus-current-task h3 {
  color: var(--text);
  margin-bottom: 15px;
}

.focus-task-text {
  background: var(--panel);
  padding: 20px;
  border-radius: var(--radius-12);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 15px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-quote-section {
  margin-bottom: 40px;
}

.focus-quote {
  font-size: 1.3rem;
  color: var(--accent);
  font-style: italic;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.focus-quote-translation {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  color: var(--muted);
  font-style: normal;
}

.focus-controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
}

.focus-btn.primary {
  background: linear-gradient(135deg, var(--green), #14b8a6);
  color: #0b1220;
  font-weight: 600;
}

.focus-btn.secondary {
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--border);
}

.focus-ambient-section {
  margin-bottom: 40px;
}

.focus-ambient-section h4 {
  color: var(--text);
  margin-bottom: 15px;
}

.ambient-controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.focus-select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-8);
}

.focus-slider {
  width: 150px;
}

.volume-label {
  font-size: 1.2rem;
}

.focus-progress-section {
  margin-top: 40px;
}

.focus-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

.focus-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  width: 0%;
  transition: width 0.3s ease;
}

.focus-stats {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}


/* Smart Suggestions Styles */
#smart-suggestions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.suggestion-group {
  margin-bottom: 20px;
}

.suggestion-group h4 {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 1rem;
}

.suggestion {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--radius-8);
  padding: 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.suggestion:hover {
  border-color: var(--accent);
  background: var(--panel);
}

.day-suggestion {
  border-left: 4px solid #3b82f6;
}

.karma-suggestion {
  border-left: 4px solid #ef4444;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.neglected-suggestion {
  border-left: 4px solid #f59e0b;
}

.suggestion-text {
  font-weight: 500;
  color: var(--text);
}

.suggestion-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.add-suggested-task {
  background: var(--accent);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.add-suggested-task:hover {
  background: #6d28d9;
}

/* Toast Enhancements */
.toast.motivation {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.toast.success {
  background: linear-gradient(135deg, var(--green), #059669);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness for New Features */
@media (max-width: 768px) {
  .focus-container {
    padding: 20px;
  }
  
  .focus-title {
    font-size: 2rem;
  }
  
  .focus-timer-ring {
    width: 150px;
    height: 150px;
  }
  
  .focus-timer-display {
    font-size: 2rem;
  }
  
  .focus-controls {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .ambient-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  
  .karma-suggestion {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}








.input-wrap {
  position: relative;
}

.input-wrap .input {
  width: 100%;
  padding-left: 34px;
}

.input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.8;
}


/* Priority Badges */
.priority-badge {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.priority-badge.priority-overdue {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.priority-badge.priority-critical {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
  animation: pulse-badge 1.5s infinite;
}

.priority-badge.priority-urgent {
  background: rgba(253, 126, 20, 0.2);
  color: #fd7e14;
  border: 1px solid rgba(253, 126, 20, 0.3);
}

.priority-badge.priority-high {
  background: rgba(111, 66, 193, 0.2);
  color: #6f42c1;
  border: 1px solid rgba(111, 66, 193, 0.3);
}

.priority-badge.priority-medium {
  background: rgba(32, 201, 151, 0.2);
  color: #20c997;
  border: 1px solid rgba(32, 201, 151, 0.3);
}

.priority-badge.priority-normal {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.3);
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Enhanced Goal Content */
.mini-goal-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  margin-left: 8px;
}

.mini-goal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-goal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-goal-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}

.mini-goal-text.done {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.7;
}

.mini-goal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-goal-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.date-icon {
  font-size: 10px;
  opacity: 0.8;
}

.auto-remove-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 193, 7, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 193, 7, 0.2);
  animation: pulse-gentle 3s infinite;
}

@keyframes pulse-gentle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Enhanced Toggle Button */
.mini-goal-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mini-goal-toggle:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.mini-goal-item.completed .mini-goal-toggle {
  background: var(--success);
  border-color: var(--success);
  color: white;
  transform: scale(1.1);
}

.toggle-icon {
  font-size: 16px;
  font-weight: bold;
}

/* Enhanced Delete Button */
.mini-goal-delete {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  opacity: 0.6;
}

.mini-goal-delete:hover {
  background: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.3);
  color: #dc3545;
  opacity: 1;
  transform: scale(1.1);
}

.delete-icon {
  font-size: 18px;
  font-weight: bold;
}

/* Priority-based styling */
.mini-goal-item.overdue {
  background: rgba(220, 53, 69, 0.05);
  border-color: rgba(220, 53, 69, 0.2);
}

.mini-goal-item.critical {
  background: rgba(255, 193, 7, 0.05);
  border-color: rgba(255, 193, 7, 0.2);
  animation: pulse-item 3s infinite;
}

.mini-goal-item.urgent {
  background: rgba(253, 126, 20, 0.05);
  border-color: rgba(253, 126, 20, 0.2);
}

.mini-goal-item.high-priority {
  background: rgba(111, 66, 193, 0.05);
  border-color: rgba(111, 66, 193, 0.2);
}

.mini-goal-item.completed {
  opacity: 0.6;
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.2);
}

/* Mini goal meta information */
.mini-goal-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}


.mini-goal-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--panel2);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-goal-points {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  font-weight: 600;
}

/* Mini goal form styling */
.mini-goal-form {
  margin-bottom: 8px;
}

.mini-goal-form .form-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 6px;
  align-items: end;
}

.mini-goal-form .input-group {
  display: flex;
  align-items: center;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.mini-goal-form .input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.1);
}

.mini-goal-form .input-icon {
  margin-right: 8px;
  font-size: 1rem;
  opacity: 0.7;
}

.mini-goal-form .input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}

.mini-goal-form .input::placeholder {
  color: var(--muted);
}

.mini-goal-form .primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mini-goal-form .primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

@keyframes pulse-item {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.3);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
  }
}

@media (max-width: 768px) {
  .mini-goal-form .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .mini-goal-form .primary {
    width: 100%;
    padding: 12px 20px;
  }
  
  .mini-goals-header h3 { margin-bottom: 0; }
  
  .mini-goal-item {
    padding: 12px;
  }
  
  .mini-goal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .priority-badge {
    font-size: 9px;
    padding: 3px 6px;
  }
  
  .mini-goal-content {
    gap: 8px;
  }
  
  .mini-goal-toggle {
    width: 28px;
    height: 28px;
  }
  
  .mini-goal-delete {
    width: 28px;
    height: 28px;
  }
  
  .mini-goal-text {
    font-size: 14px;
  }
  
  .mini-goal-date {
    font-size: 11px;
    padding: 3px 6px;
  }
}

.mini-goals-section h3 {
  color: var(--text);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.mini-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.progress-percentage {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

.progress-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.mini-goal-item {
  padding: 12px 0;
  transition: all 0.3s ease;
  border-radius: 6px;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
}

.mini-goal-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.mini-goal-item.urgent {
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid #ffc107;
  padding-left: 8px;
}

.mini-goal-item.overdue {
  background: rgba(220, 53, 69, 0.1);
  border-left: 3px solid #dc3545;
  padding-left: 8px;
}

.mini-goal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-goal-text {
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
}

.mini-goal-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.mini-goal-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--panel2);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.date-icon {
  font-size: 0.7rem;
  opacity: 0.8;
}

.mini-goal-countdown {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  border: 1px solid transparent;
}

.countdown-today {
  color: #ffc107;
  background: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.3);
}

.countdown-tomorrow {
  color: #fd7e14;
  background: rgba(253, 126, 20, 0.15);
  border-color: rgba(253, 126, 20, 0.3);
}

.countdown-overdue {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.3);
  animation: pulse 2s infinite;
}

.countdown-future {
  color: var(--muted);
  background: rgba(108, 117, 125, 0.1);
  border-color: rgba(108, 117, 125, 0.2);
}

.mini-goal-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-goal-toggle:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.mini-goal-item.completed .mini-goal-toggle {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.toggle-icon {
  font-size: 14px;
  font-weight: bold;
}

.mini-goal-delete {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  flex-shrink: 0;
}

.mini-goal-delete:hover {
  background: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.3);
  opacity: 1;
  transform: scale(1.1);
}

.delete-icon {
  font-size: 18px;
  color: #dc3545;
  font-weight: bold;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Progress bar enhancements */
.mini-progress-bar {
  background: var(--panel2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mini-progress-fill {
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.9));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.mini-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    transparent 25%, 
    rgba(255, 255, 255, 0.1) 25%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 50%, 
    transparent 75%, 
    rgba(255, 255, 255, 0.1) 75%);
  background-size: 20px 20px;
  animation: progressShine 2s linear infinite;
}

@keyframes progressShine {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}

/* Welcome Section Enhancements */
.welcome-content {
  text-align: center;
  padding: 8px 0;
}

.welcome-message {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 12px 0 8px 0;
  transition: all 0.3s ease;
}

.welcome-quote {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.4;
  opacity: 0.8;
}

/* Edit name button styles removed - users edit name via settings only */

/* No backlog message */
.no-backlog {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Backlog panel without tabs */
.backlog-panel {
  margin-top: 16px;
}

.backlog-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.backlog-panel li {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 12px;
  transition: all 0.3s ease;
}

.backlog-panel li:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

#name-input {
  text-align: center;
  font-weight: 500;
}

#name-input:focus {
  text-align: left;
}

/* Welcome section animation when name is saved */
.welcome-saved {
  animation: welcomeFadeIn 0.5s ease-out;
}

@keyframes welcomeFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Toast Styles */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 400px;
  backdrop-filter: blur(10px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: rgba(0, 255, 136, 0.02);
  border-color: rgba(0, 255, 136, 0.05);
  color: rgba(0, 255, 136, 0.3);
}

.toast.error {
  background: rgba(255, 68, 102, 0.02);
  border-color: rgba(255, 68, 102, 0.05);
  color: rgba(255, 68, 102, 0.3);
}

.toast.info {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
}

/* Toast mobile responsiveness */
@media (max-width: 768px) {
  .toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
    text-align: center;
  }
}

/* Mobile responsiveness for mini goals */
@media (max-width: 768px) {
  .mini-goal-item {
    padding: 10px 0;
  }
  
  .mini-goal-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .mini-goal-date {
    font-size: 0.75rem;
    padding: 2px 6px;
  }
  
  .mini-goal-countdown {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
  
  .mini-goal-text {
    font-size: 0.9rem;
  }
  
  .empty-icon {
    font-size: 2.5rem;
  }
  
  .empty-title {
    font-size: 1rem;
  }
  
  .empty-subtitle {
    font-size: 0.85rem;
  }
}

/* Journal Styles */
.journal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.journal-modal-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

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

.journal-header h2 {
  color: var(--text);
  margin: 0;
}

.journal-close {
  background: none;
  border: 2px solid var(--border);
  color: var(--text);
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.journal-close:hover {
  background: var(--accent);
  color: white;
}

.journal-prompt {
  margin-bottom: 20px;
}

.journal-prompt label {
  display: block;
  color: var(--text);
  margin-bottom: 5px;
  font-weight: 500;
}

.journal-select {
  width: 100%;
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-8);
}

.journal-textarea {
  width: 100%;
  min-height: 200px;
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-8);
  padding: 15px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

.journal-textarea::placeholder {
  color: var(--muted);
}

.journal-word-count {
  text-align: right;
  margin-top: 5px;
}

.journal-word-count span {
  font-size: 0.8rem;
  color: var(--muted);
}

.journal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.journal-btn {
  padding: 10px 20px;
  border-radius: var(--radius-8);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.journal-btn.primary {
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: white;
  border-color: var(--accent);
}

.journal-btn.secondary {
  background: var(--panel2);
  color: var(--text);
}

.journal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.journal-list {
  max-height: 300px;
  overflow-y: auto;
}

.journal-day {
  margin-bottom: 20px;
}

.journal-date {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

.journal-entry {
  background: var(--panel2);
  padding: 15px;
  border-radius: var(--radius-8);
  margin-bottom: 10px;
}

.journal-entry-prompt {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.journal-entry-content {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 8px;
}

.journal-entry-meta {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

.journal-actions-bottom {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.journal-empty {
  text-align: center;
  padding: 40px 20px;
}

.journal-empty p {
  color: var(--muted);
  margin-bottom: 15px;
}

/* Export & Backup Styles */
.export-section h3 {
  color: var(--text);
  margin-bottom: 15px;
}

.export-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.export-btn {
  padding: 12px 20px;
  border-radius: var(--radius-8);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: left;
}

.export-btn.primary {
  background: linear-gradient(135deg, var(--green), #059669);
  color: white;
  border-color: var(--green);
}

.export-btn.secondary {
  background: var(--panel2);
  color: var(--text);
}

.export-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.import-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.import-section h4 {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.backup-info {
  margin-top: 15px;
  padding: 10px;
  background: var(--panel2);
  border-radius: var(--radius-8);
}

.backup-info small {
  color: var(--muted);
  line-height: 1.4;
}

.backup-reminder-modal {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  padding: 20px;
  max-width: 350px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.backup-reminder-content h3 {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.backup-reminder-content p {
  color: var(--muted);
  margin-bottom: 15px;
  line-height: 1.4;
}

.backup-reminder-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.backup-btn {
  padding: 8px 16px;
  border-radius: var(--radius-8);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.backup-btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.backup-btn.secondary {
  background: var(--panel2);
  color: var(--text);
}

.backup-btn.text {
  background: none;
  color: var(--muted);
  border: none;
  text-decoration: underline;
}

/* Theme Customization Styles */
.theme-section h3 {
  color: var(--text);
  margin-bottom: 15px;
}

.theme-selector-group {
  margin-bottom: 20px;
}

.theme-selector-group label {
  display: block;
  color: var(--text);
  margin-bottom: 5px;
  font-weight: 500;
}

.theme-select {
  width: 100%;
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-8);
}

.theme-previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.theme-preview {
  background: var(--panel2);
  border: 2px solid var(--border);
  border-radius: var(--radius-8);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-preview:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.theme-preview-colors {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-preview-name {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
}

.theme-options {
  margin-bottom: 15px;
}

.theme-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  cursor: pointer;
}

.theme-checkbox input[type="checkbox"] {
  accent-color: var(--accent);
}

.theme-info {
  padding: 10px;
  background: var(--panel2);
  border-radius: var(--radius-8);
}

.theme-info small {
  color: var(--muted);
  line-height: 1.4;
}

/* Affirmations Styles */
.affirmations-section h3 {
  color: var(--text);
  margin-bottom: 15px;
}

.current-affirmation {
  background: var(--panel2);
  border-radius: var(--radius-8);
  padding: 15px;
  margin-bottom: 15px;
  text-align: center;
}

.affirmation-text {
  color: var(--accent);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 1rem;
}

.affirmation-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-6);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.affirmation-btn:hover {
  background: #6d28d9;
  transform: scale(1.05);
}

.affirmation-settings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.affirmation-settings label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.affirmation-settings input[type="checkbox"] {
  accent-color: var(--accent);
}

.affirmation-settings input[type="time"] {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: var(--radius-6);
}

/* Theme-specific styles */
.theme-lakshya {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

.theme-lakshya .focus-quote {
  font-family: 'Crimson Text', serif;
  font-size: 1.4rem;
}

.theme-lakshya .affirmation-text {
  font-family: 'Crimson Text', serif;
}

/* Mobile responsiveness for new features */
@media (max-width: 768px) {
  .journal-modal-content {
    padding: 20px;
    margin: 20px;
  }
  
  .journal-textarea {
    min-height: 150px;
  }
  
  .journal-actions {
    flex-direction: column;
  }
  
  .export-options {
    gap: 8px;
  }
  
  .theme-previews {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .backup-reminder-modal {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .mini-goal-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .mini-goal-content {
    width: 100%;
  }
}

/* Analytics Dashboard Styles */
.analytics-dashboard {
  padding: 0;
}

.analytics-dashboard h3 {
  color: var(--text);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 25px;
}

.analytics-card {
  background: var(--panel2);
  border-radius: var(--radius-8);
  padding: 15px;
  text-align: center;
  border: 1px solid var(--border);
}

.analytics-metric {
  margin-bottom: 8px;
}

.metric-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.2;
}

.metric-trend {
  font-size: 0.7rem;
  font-weight: 500;
}

.metric-trend.positive {
  color: var(--green);
}

.metric-trend.negative {
  color: #ef4444;
}

.progress-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.chart-container {
  background: var(--panel2);
  border-radius: var(--radius-8);
  padding: 15px;
  border: 1px solid var(--border);
}

.chart-container h4 {
  color: var(--text);
  margin-bottom: 15px;
  font-size: 0.9rem;
  text-align: center;
}

.weekly-chart {
  height: 120px;
}

.chart-bars {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 80px;
  margin-bottom: 10px;
}

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

.chart-bar-group {
  display: flex;
  align-items: flex-end;
  height: 60px;
  gap: 2px;
}

.chart-bar {
  width: 8px;
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  transition: all 0.2s ease;
}

.chart-bar.tasks {
  background: var(--border);
}

.chart-bar.completed {
  background: var(--green);
}

.chart-bar.pomodoros {
  background: var(--accent);
}

.chart-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

.chart-rate {
  font-size: 0.65rem;
  color: var(--text);
  font-weight: 600;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--muted);
}

.legend-color {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.legend-color.tasks {
  background: var(--border);
}

.legend-color.completed {
  background: var(--green);
}

.legend-color.pomodoros {
  background: var(--accent);
}

.pattern-chart {
  height: 120px;
}

.pattern-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  justify-content: space-around;
}

.pattern-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pattern-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.pattern-info {
  flex: 1;
}

.pattern-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.pattern-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.pattern-detail {
  font-size: 0.65rem;
  color: var(--muted);
}

.insights-section {
  background: var(--panel2);
  border-radius: var(--radius-8);
  padding: 15px;
  border: 1px solid var(--border);
}

.insights-section h4 {
  color: var(--text);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-6);
  font-size: 0.8rem;
  line-height: 1.4;
}

.insight-item.success {
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid var(--green);
}

.insight-item.warning {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
}

.insight-item.info {
  background: rgba(139, 92, 246, 0.1);
  border-left: 3px solid var(--accent);
}

.insight-icon {
  font-size: 1rem;
  margin-top: 1px;
}

.insight-text {
  color: var(--text);
  flex: 1;
}

/* Mobile responsiveness for analytics */
@media (max-width: 768px) {
  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .analytics-card {
    padding: 12px;
  }
  
  .metric-value {
    font-size: 1.4rem;
  }
  
  .metric-label {
    font-size: 0.7rem;
  }
  
  .progress-charts {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .chart-container {
    padding: 12px;
  }
  
  .weekly-chart {
    height: 100px;
  }
  
  .chart-bars {
    height: 60px;
  }
  
  .chart-bar-group {
    height: 45px;
  }
  
  .chart-bar {
    width: 6px;
  }
  
  .pattern-chart {
    height: 100px;
  }
  
  .pattern-items {
    gap: 12px;
  }
  
  .pattern-item {
    gap: 8px;
  }
  
  .insights-section {
    padding: 12px;
  }
  
  .insight-item {
    gap: 8px;
    padding: 6px;
  }
}

/* Mood Tracker Styles */
.mood-options, .energy-options {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  justify-content: center;
}

.mood-btn, .energy-btn {
  background: var(--panel2);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mood-btn:hover, .energy-btn:hover {
  border-color: var(--accent);
  transform: scale(1.1);
}

.mood-btn.selected, .energy-btn.selected {
  border-color: var(--green);
  background: var(--green);
  transform: scale(1.1);
}

.mood-week-view {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 8px;
}

.mood-day {
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  background: var(--panel2);
  flex: 1;
  min-width: 0;
}

.mood-day.has-data {
  background: var(--panel);
  border: 1px solid var(--border);
}

.mood-display, .energy-display {
  font-size: 16px;
  margin: 2px 0;
}

.mood-insight {
  background: var(--panel2);
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  font-size: 14px;
}

/* Achievement System Styles */
.level-display {
  background: var(--panel2);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.level-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.level-badge {
  background: linear-gradient(135deg, var(--accent), #9333ea);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}


.level-progress {
  background: var(--bg);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}



/* Light theme specific adjustments */
.theme-light {
  --matrix-color: rgba(59, 130, 246, 0.1);
}

/* Enhanced countdown segments - Light Theme */
.theme-light .segment {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #d1d5db;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-light .segment:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.02);
}

.theme-light .segment::before {
  background: linear-gradient(90deg, transparent, var(--accent-light, rgba(59, 130, 246, 0.15)), transparent);
}

.theme-light .num {
  color: var(--accent);
  text-shadow: 0 0 25px var(--accent-light, rgba(59, 130, 246, 0.4));
  font-weight: 900;
}

.theme-light .label {
  color: #475569;
  font-weight: 700;
}

/* Enhanced pomodoro styling */
.theme-light .pomo {
  --pomo-ring-track: #d1d5db;
  --pomo-text: #1e293b;
  --pomo-inner-start: #ffffff;
  --pomo-inner-mid: #ffffff;
  --pomo-inner-end: rgba(255,255,255,0);
}

.theme-light .pomo .time {
  color: var(--pomo-text);
  text-shadow: 0 0 8px var(--accent-light, rgba(59, 130, 246, 0.2));
  font-weight: 700;
}

.theme-light .pomo .mode {
  color: #475569;
  font-weight: 600;
}

/* Pomodoro inner circle and track adapt via variables in light theme */

/* Dashboard icon fixes */
.theme-light .dashboard-icon {
  background: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #d1d5db !important;
}

.theme-light .dashboard-icon.pomodoro-icon {
  background: #f0f9ff !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent-light, rgba(59, 130, 246, 0.2)) !important;
}

.theme-light .dashboard-icon.task-icon {
  background: #f0fdf4 !important;
  color: #059669 !important;
  border: 1px solid rgba(5, 150, 105, 0.2) !important;
}

.theme-light .dashboard-icon.trophy-icon {
  background: #fef3c7 !important;
  color: #d97706 !important;
  border: 1px solid rgba(217, 119, 6, 0.2) !important;
}

.theme-light .dashboard-icon.target-icon {
  background: #fce7f3 !important;
  color: #be185d !important;
  border: 1px solid rgba(190, 24, 93, 0.2) !important;
}

.theme-light .pomo .controls button {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  box-shadow: 0 2px 8px var(--accent-light, rgba(59, 130, 246, 0.2));
  transition: all 0.3s ease;
}

.theme-light .pomo .controls button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-light, rgba(59, 130, 246, 0.3));
}

.theme-light .pomo .controls button.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.theme-light .pomo .controls button.secondary:hover {
  background: var(--accent);
  color: white;
}

/* Enhanced card styling */
.theme-light .card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.theme-light .card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

/* Enhanced button styling */
.theme-light .primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 2px 8px var(--accent-light, rgba(59, 130, 246, 0.2));
  transition: all 0.3s ease;
}

.theme-light .primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-light, rgba(59, 130, 246, 0.3));
}

.theme-light .secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.theme-light .secondary:hover {
  background: var(--accent);
  color: white;
}

/* Enhanced input styling */
.theme-light .input {
  background: #ffffff;
  border: 2px solid #d1d5db;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.theme-light .input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light, rgba(59, 130, 246, 0.1));
  outline: none;
}

.theme-light .input::placeholder {
  color: #6b7280;
  font-weight: 400;
}

.theme-light textarea.input {
  color: #1e293b;
  font-weight: 500;
}

.theme-light textarea.input::placeholder {
  color: #6b7280;
  font-weight: 400;
}

/* Enhanced task card styling */
.theme-light .task-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.theme-light .task-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.theme-light .task-card.priority-high {
  border-left: 4px solid #ef4444;
}

.theme-light .task-card.priority-medium {
  border-left: 4px solid #f59e0b;
}

.theme-light .task-card.priority-low {
  border-left: 4px solid #10b981;
}

/* Task text visibility */
.theme-light .task-title {
  color: #1e293b;
  font-weight: 600;
}

.theme-light .task-description {
  color: #475569;
  font-weight: 400;
}

.theme-light .task-meta {
  color: #6b7280;
}

.theme-light .task-meta span {
  color: #6b7280;
  font-weight: 500;
}

/* Enhanced priority badges */
.theme-light .priority-badge {
  background: var(--accent-light, rgba(59, 130, 246, 0.1));
  color: var(--accent);
  border: 1px solid var(--accent-light, rgba(59, 130, 246, 0.2));
}

.theme-light .priority-badge.priority-high {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.theme-light .priority-badge.priority-medium {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.2);
}

.theme-light .priority-badge.priority-low {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.2);
}

/* Enhanced time range styling */
.theme-light .time-range {
  background: var(--accent-light, rgba(59, 130, 246, 0.1));
  color: var(--accent);
  border-color: var(--accent-light, rgba(59, 130, 246, 0.2));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Enhanced progress bars */
.theme-light .progress-bar {
  background: #e2e8f0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-light .progress-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Enhanced dashboard styling */
.theme-light .dashboard-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.theme-light .dashboard-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

/* Enhanced modal styling */
.theme-light .modal-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.theme-light .modal-header {
  border-bottom: 1px solid #e2e8f0;
}

.theme-light .modal-footer {
  border-top: 1px solid #e2e8f0;
}

/* Enhanced form styling */
.theme-light .form-group label {
  color: #374151;
  font-weight: 600;
}

.theme-light .form-row {
  gap: 16px;
}

/* Enhanced select styling */
.theme-light select {
  background: #ffffff;
  border: 2px solid #d1d5db;
  color: #1e293b;
  font-weight: 500;
}

.theme-light select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light, rgba(59, 130, 246, 0.1));
  outline: none;
}

/* General text visibility improvements */
.theme-light h1, .theme-light h2, .theme-light h3, .theme-light h4, .theme-light h5, .theme-light h6 {
  color: #1e293b;
  font-weight: 700;
}

.theme-light p, .theme-light span, .theme-light div {
  color: #1e293b;
}

.theme-light .muted {
  color: #6b7280 !important;
}

.theme-light .small {
  color: #6b7280 !important;
}

.theme-light .text-center {
  color: #1e293b;
}

/* Enhanced form labels */
.theme-light label {
  color: #374151;
  font-weight: 600;
}

/* Enhanced button text */
.theme-light button {
  color: #1e293b;
  font-weight: 600;
}

.theme-light .primary {
  color: white;
  font-weight: 600;
}

/* Enhanced modal text */
.theme-light .modal-content h2 {
  color: #1e293b;
  font-weight: 700;
}

.theme-light .modal-content p {
  color: #475569;
}

/* Enhanced dashboard text */
.theme-light .dashboard-label {
  color: #6b7280;
  font-weight: 600;
}

.theme-light .dashboard-value {
  color: #1e293b;
  font-weight: 700;
}

/* Enhanced progress text */
.theme-light .progress-text {
  color: #1e293b;
  font-weight: 600;
}

.theme-light .counts-text {
  color: #6b7280;
  font-weight: 600;
}

/* Enhanced deadline text */
.theme-light #deadline-status {
  color: #1e293b;
  font-weight: 600;
}

.theme-light #countdown-human {
  color: #6b7280;
  font-weight: 500;
}


/* Header and navigation fixes */
.theme-light .header {
  background: #f8fafc;
  border-bottom: 1px solid #d1d5db;
}

.theme-light .header .logo {
  color: #1e293b;
  font-weight: 700;
}

.theme-light .header .motivational-quote {
  color: #475569;
}

.theme-light .header .quote-text {
  color: #475569;
  font-weight: 500;
}

/* Button styling fixes */
.theme-light .primary {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  font-weight: 600;
}

.theme-light .primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.theme-light button:not(.primary) {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #d1d5db;
  font-weight: 600;
}

.theme-light button:not(.primary):hover {
  background: #e2e8f0;
  border-color: #9ca3af;
}

.theme-light .icon-btn {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #d1d5db;
}

.theme-light .icon-btn:hover {
  background: #e2e8f0;
  border-color: #9ca3af;
}

/* Section and card fixes */
.theme-light .section {
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.theme-light .card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Welcome section fixes */
.theme-light .welcome-content {
  color: #1e293b;
}

.theme-light .welcome-message {
  color: #1e293b;
  font-weight: 600;
}

.theme-light .welcome-quote {
  color: #475569;
  font-weight: 500;
}

/* Legacy dark-styled pills/badges fixed for light theme */
.theme-light .category-work,
.theme-light .category-personal,
.theme-light .category-health,
.theme-light .category-learning,
.theme-light .category-project,
.theme-light .time-estimate-badge {
  background: var(--panel, #ffffff) !important;
  color: var(--text, #1e293b) !important;
  border: 1px solid var(--border, #d1d5db) !important;
}

/* Ensure select option palettes are readable in light mode */
.theme-light .option-group select option {
  background: var(--panel, #ffffff) !important;
  color: var(--text, #1e293b) !important;
}
.theme-light .option-group select option:focus,
.theme-light .option-group select option:hover,
.theme-light .option-group select option[selected] {
  background: var(--panel2, #f1f5f9) !important;
  color: var(--text, #1e293b) !important;
}

/* Mini goals section fixes */
.theme-light .mini-goals-section h3 {
  color: #1e293b;
  font-weight: 700;
}

.theme-light .mini-goals-actions .primary {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}

.theme-light .input-wrap {
  background: #ffffff;
  border: 1px solid #d1d5db;
}

.theme-light .input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light, rgba(59, 130, 246, 0.1));
}

.theme-light .input-icon {
  color: #6b7280;
}

/* Task management fixes */
.theme-light .task-input-row {
  background: #ffffff;
  border: 1px solid #d1d5db;
}

.theme-light .task-input-row .input {
  color: #1e293b;
  font-weight: 500;
}

.theme-light .task-input-row .primary {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}

/* Today section fixes */
.theme-light #today-section h2 {
  color: #1e293b;
  font-weight: 700;
}

.theme-light #today-date {
  color: #6b7280;
  font-weight: 500;
}

/* Dashboard fixes */
.theme-light .dashboard h2 {
  color: #1e293b;
  font-weight: 700;
}

.theme-light .dashboard-item {
  background: #f8fafc;
  border: 1px solid #d1d5db;
  color: #1e293b;
}

.theme-light .dashboard-label {
  color: #6b7280;
  font-weight: 600;
}

.theme-light .dashboard-value {
  color: #1e293b;
  font-weight: 700;
}


/* Journal section fixes */
.theme-light .journal-section h2 {
  color: #1e293b;
  font-weight: 700;
}

.theme-light .journal-button {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}


/* Progress indicators */
.theme-light .progress-bar {
  background: #e2e8f0;
}

.theme-light .progress-fill {
  background: var(--accent);
}

.theme-light .progress-text {
  color: #1e293b;
  font-weight: 600;
}

/* Checkbox fixes */
.theme-light input[type="checkbox"] {
  border: 2px solid #d1d5db;
  background: #ffffff;
}

.theme-light input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

/* Dropdown fixes */
.theme-light .pomo-link select {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #1e293b;
  font-weight: 500;
}

.theme-light .pomo-link select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light, rgba(59, 130, 246, 0.1));
}

/* Priority dropdown fixes */
.theme-light #task-priority {
  background: #ffffff !important;
  border: 2px solid #d1d5db !important;
  color: #1e293b !important;
  font-weight: 500;
}

.theme-light #task-priority:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-light, rgba(59, 130, 246, 0.1)) !important;
  outline: none !important;
}

.theme-light #task-priority option {
  background: #ffffff !important;
  color: #1e293b !important;
  font-weight: 500;
}

/* Task link dropdown fixes */
.theme-light #pomo-task-select {
  background: #ffffff !important;
  border: 2px solid #d1d5db !important;
  color: #1e293b !important;
  font-weight: 500;
}

.theme-light #pomo-task-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-light, rgba(59, 130, 246, 0.1)) !important;
  outline: none !important;
}

.theme-light #pomo-task-select option {
  background: #ffffff !important;
  color: #1e293b !important;
  font-weight: 500;
}

/* Tab fixes */
.theme-light .tabs {
  background: #f8fafc;
  border: 1px solid #d1d5db;
}

.theme-light .tab {
  color: #6b7280;
  font-weight: 600;
}

.theme-light .tab.active {
  color: #1e293b;
  background: #ffffff;
}

/* List fixes */
.theme-light .task-list {
  background: #ffffff;
}

.theme-light .task-item {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #1e293b;
}

.theme-light .task-item:hover {
  background: #f8fafc;
  border-color: var(--accent);
}

/* Empty state fixes */
.theme-light .empty-state {
  color: #6b7280;
  font-weight: 500;
}

.theme-light .empty-state-icon {
  color: #9ca3af;
}

/* Additional specific fixes for remaining dark elements */
.theme-light .bigger {
  color: #1e293b;
  font-weight: 600;
}

.theme-light .text-center {
  color: #1e293b;
}

.theme-light .muted.bigger {
  color: #6b7280;
  font-weight: 600;
}

.theme-light .small.bigger {
  color: #6b7280;
  font-weight: 600;
}

/* Fix for any remaining dark text */
.theme-light * {
  color: inherit;
}

.theme-light .row {
  color: #1e293b;
}

.theme-light .grid {
  color: #1e293b;
}

.theme-light .page {
  color: #1e293b;
}

/* Original theme countdown segments */
.theme-original .segment {
  background: linear-gradient(135deg, #0b1220 0%, #1a1a2e 50%, #16213e 100%);
  border: 2px solid #4a9eff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(74, 158, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-original .segment:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 158, 255, 0.2);
  border-color: #3b82f6;
  transform: translateY(-4px) scale(1.02);
}

.theme-original .num {
  color: #4a9eff;
  text-shadow: 0 0 30px rgba(74, 158, 255, 0.8), 0 4px 8px rgba(0, 0, 0, 0.3);
  font-weight: 900;
}

.theme-original .label {
  color: #cbd5e1;
  font-weight: 700;
}

/* Specific fixes for elements that might be inheriting dark colors */
.theme-light .countdown .segment {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #d1d5db;
  color: #1e293b;
}

.theme-light .countdown .segment .num {
  color: var(--accent);
  font-weight: 900;
}

.theme-light .countdown .segment .label {
  color: #6b7280;
  font-weight: 700;
}

/* Fix for any remaining button text */
.theme-light button {
  color: #1e293b;
  font-weight: 600;
}

.theme-light .primary {
  color: white;
  font-weight: 600;
}

/* Fix for any remaining input text */
.theme-light input {
  color: #1e293b;
  font-weight: 500;
}

.theme-light input::placeholder {
  color: #6b7280;
  font-weight: 400;
}

/* Fix for any remaining select text */
.theme-light select {
  color: #1e293b;
  font-weight: 500;
}

/* Fix for any remaining textarea text */
.theme-light textarea {
  color: #1e293b;
  font-weight: 500;
}

.theme-light textarea::placeholder {
  color: #6b7280;
  font-weight: 400;
}

/* Fix for any remaining label text */
.theme-light label {
  color: #374151;
  font-weight: 600;
}

/* Fix for any remaining span text */
.theme-light span {
  color: #1e293b;
}

.theme-light span.muted {
  color: #6b7280;
}

.theme-light span.small {
  color: #6b7280;
}

/* Fix for any remaining div text */
.theme-light div {
  color: #1e293b;
}

.theme-light div.muted {
  color: #6b7280;
}

.theme-light div.small {
  color: #6b7280;
}

/* Fix for any remaining p text */
.theme-light p {
  color: #1e293b;
}

.theme-light p.muted {
  color: #6b7280;
}

.theme-light p.small {
  color: #6b7280;
}

/* Additional fixes for remaining dark elements */
.theme-light select {
  background: #ffffff !important;
  border: 2px solid #d1d5db !important;
  color: #1e293b !important;
  font-weight: 500;
}

.theme-light select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-light, rgba(59, 130, 246, 0.1)) !important;
  outline: none !important;
}

.theme-light select option {
  background: #ffffff !important;
  color: #1e293b !important;
  font-weight: 500;
}

/* Fix for any remaining dark backgrounds */
.theme-light .input {
  background: #ffffff !important;
  border: 2px solid #d1d5db !important;
  color: #1e293b !important;
}

.theme-light .input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-light, rgba(59, 130, 246, 0.1)) !important;
  outline: none !important;
}

/* Fix for any remaining dark text in forms */
.theme-light .form-row {
  color: #1e293b;
}

.theme-light .form-row label {
  color: #374151 !important;
  font-weight: 600;
}

.theme-light .form-row input {
  color: #1e293b !important;
  font-weight: 500;
}

.theme-light .form-row select {
  color: #1e293b !important;
  font-weight: 500;
}

/* Fix for any remaining dark elements in modals */
.theme-light .modal-content {
  background: #ffffff !important;
  color: #1e293b !important;
}

.theme-light .modal-content .input {
  background: #ffffff !important;
  color: #1e293b !important;
}

.theme-light .modal-content select {
  background: #ffffff !important;
  color: #1e293b !important;
}

/* Ensure modal content uses dark theme by default (override light theme) */
.modal-content {
  background: var(--panel, #111827) !important;
  color: var(--text, #ffffff) !important;
}

.modal-content .input {
  background: var(--panel2, #2d3748) !important;
  color: var(--text, #ffffff) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1)) !important;
}

.modal-content select {
  background: var(--panel2, #2d3748) !important;
  color: var(--text, #ffffff) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1)) !important;
}

.modal-content label {
  color: var(--text, #ffffff) !important;
}

.modal-content h2,
.modal-content h3 {
  color: var(--text, #ffffff) !important;
}

.modal-content .muted {
  color: var(--text-muted, #a0aec0) !important;
}

/* Additional modal element fixes */
.modal-content .form-group {
  color: var(--text, #ffffff) !important;
}

.modal-content .form-group .row {
  color: var(--text, #ffffff) !important;
}

.modal-content .form-group .row span {
  color: var(--text-muted, #a0aec0) !important;
}

.modal-content .form-group .row input[type="checkbox"] {
  accent-color: var(--accent, #4a9eff) !important;
}

.modal-content .form-group .row label {
  color: var(--text-muted, #a0aec0) !important;
}

/* Ensure all text in modal is visible */
.modal-content * {
  color: inherit !important;
}

.modal-content .small {
  color: var(--text-muted, #a0aec0) !important;
}

/* Custom scrollbar for content sections */
.content-section .card::-webkit-scrollbar {
  width: 6px;
}

.content-section .card::-webkit-scrollbar-track {
  background: var(--panel2, #2d3748);
  border-radius: 3px;
}

.content-section .card::-webkit-scrollbar-thumb {
  background: var(--border, rgba(255, 255, 255, 0.2));
  border-radius: 3px;
}

.content-section .card::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted, #a0aec0);
}

/* Fix for any remaining dark elements in task forms */
.theme-light .task-form {
  background: #ffffff !important;
  color: #1e293b !important;
}

.theme-light .task-form .input {
  background: #ffffff !important;
  color: #1e293b !important;
}

.theme-light .task-form select {
  background: #ffffff !important;
  color: #1e293b !important;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(1200px 600px at 50% 10%, rgba(74, 158, 255, 0.08), transparent 40%), rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--panel, #111827);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.modal-header h2 {
  margin: 0;
  color: var(--text, #ffffff);
  font-size: 1.25rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted, #a0aec0);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: var(--panel2, #2d3748);
  color: var(--text, #ffffff);
}

.modal-body {
  padding: 20px 24px;
}

/* Settings section styling */
.settings-section {
  margin-bottom: 24px;
}

.settings-section h3 {
  margin: 0 0 16px 0;
  color: var(--text, #ffffff);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text, #ffffff);
  font-size: 14px;
  font-weight: 500;
}

.form-group .input {
  width: 100%;
  box-sizing: border-box;
  background: var(--panel2, #2d3748);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  color: var(--text, #ffffff);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group .input:focus {
  outline: none;
  border-color: var(--accent, #4a9eff);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form-group .input::placeholder {
  color: var(--text-muted, #a0aec0);
}

.form-group select {
  width: 100%;
  box-sizing: border-box;
  background: var(--panel2, #2d3748);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  color: var(--text, #ffffff);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group select:focus {
  outline: none;
  border-color: var(--accent, #4a9eff);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

/* Checkbox styling */
.form-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent, #4a9eff);
  cursor: pointer;
}

/* Row styling for inline elements */
.form-group .row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Muted text styling */
.muted {
  color: var(--text-muted, #a0aec0);
}

.small {
  font-size: 12px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border, #e2e8f0);
}

.quote-large {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text, #1e293b);
  font-style: italic;
  margin: 0 0 12px 0;
}

/* Light theme modal fixes */
.theme-light .modal {
  background: rgba(0, 0, 0, 0.3);
}

.theme-light .modal-content {
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.theme-light .modal-header {
  border-bottom: 1px solid #d1d5db;
}

.theme-light .modal-header h2 {
  color: #1e293b;
  font-weight: 700;
}

.theme-light .close-btn {
  color: #6b7280;
}

.theme-light .close-btn:hover {
  background: #f8fafc;
  color: #1e293b;
}

.theme-light .modal-body {
  color: #1e293b;
}

.theme-light .modal-footer {
  border-top: 1px solid #d1d5db;
}

.theme-light .quote-large {
  color: #1e293b;
  font-weight: 500;
}

.theme-light .modal-body .muted {
  color: #6b7280;
}

/* Nature theme specific adjustments */
.theme-nature {
  --matrix-color: rgba(34, 197, 94, 0.1);
}

.theme-nature .segment {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  border: 2px solid #22c55e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 197, 94, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-nature .segment:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 197, 94, 0.2);
  border-color: #16a34a;
  transform: translateY(-4px) scale(1.02);
}

.theme-nature .num {
  color: #22c55e;
  text-shadow: 0 0 30px rgba(34, 197, 94, 0.8), 0 4px 8px rgba(0, 0, 0, 0.3);
  font-weight: 900;
}

.theme-nature .label {
  color: #a7f3d0;
  font-weight: 700;
}

.theme-nature .segment::before {
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.2), transparent);
}

.theme-nature .pomo {
  --pomo-ring-track: #365f36;
  --pomo-text: #e8f5e8;
  --pomo-inner-start: #0a1a0a;
  --pomo-inner-mid: #0f2912;
  --pomo-inner-end: rgba(10,26,10,0);
}

.theme-nature .pomo .time {
  color: #e8f5e8;
}

.theme-nature .pomo .mode {
  color: #a3c2a3;
}

.theme-nature .pomo .controls button {
  background: #22c55e;
  color: #0a1a0a;
  border: 1px solid #22c55e;
  font-weight: 600;
}

.theme-nature .pomo .controls button:hover {
  background: #16a34a;
  border-color: #16a34a;
}

.theme-nature .pomo .controls button.secondary {
  background: transparent;
  color: #22c55e;
  border-color: #22c55e;
}

.theme-nature .pomo .controls button.secondary:hover {
  background: #22c55e;
  color: #0a1a0a;
}

/* Standard Dark theme specific adjustments */
.theme-standardDark .time-range {
  background: rgba(74, 158, 255, 0.15);
  color: #4a9eff;
  border-color: rgba(74, 158, 255, 0.3);
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.1);
}

.theme-standardDark {
  --matrix-color: rgba(74, 158, 255, 0.1);
}

.theme-standardDark .segment {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #262626 100%);
  border: 2px solid #4a9eff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 158, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-standardDark .segment::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.2), transparent);
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.theme-standardDark .segment:hover::before {
  left: 100%;
}

.theme-standardDark .segment:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(74, 158, 255, 0.2);
  border-color: #3b82f6;
  transform: translateY(-4px) scale(1.02);
}

.theme-standardDark .num {
  color: #4a9eff;
  text-shadow: 0 0 30px rgba(74, 158, 255, 0.8), 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  font-weight: 900;
}

.theme-standardDark .label {
  color: #cbd5e1;
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.theme-standardDark .pomo {
  --pomo-ring-track: #333333;
  --pomo-text: #dbeafe;
  --pomo-inner-start: #070b12;
  --pomo-inner-mid: #0f1724;
  --pomo-inner-end: rgba(7,11,18,0);
}

.theme-standardDark .pomo .time {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(74, 158, 255, 0.3);
}

.theme-standardDark .pomo .mode {
  color: #a3a3a3;
}

.theme-standardDark .pomo .controls button {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.2);
  transition: all 0.3s ease;
}

.theme-standardDark .pomo .controls button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.theme-standardDark .pomo .controls button.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.theme-standardDark .pomo .controls button.secondary:hover {
  background: var(--accent);
  color: white;
}

/* Enhanced card styling for standard dark theme */
.theme-standardDark .card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid #333333;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.theme-standardDark .card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
}

/* Enhanced button styling */
.theme-standardDark .primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.2);
}

.theme-standardDark .primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

/* Dashboard styles */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg, var(--panel));
}

.stat-icon {
  font-size: 20px;
  line-height: 1;
}

.stat-content { flex: 1; }
.stat-number { font-size: 22px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-subtitle { font-size: 12px; color: var(--text-muted); }

.progress { height: 8px; background: var(--panel2); border-radius: 999px; overflow: hidden; }

.chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 12px; }

@media (max-width: 1024px) {
  .dashboard-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .dashboard-stats-grid { grid-template-columns: 1fr; }
}


/* Heatmap removed */

/* Modal Styles */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin: 0 0 16px 0;
  color: var(--text);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-bg);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.form-actions button {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-actions .primary {
  background: var(--accent);
  color: white;
  border: none;
}

.form-actions .primary:hover {
  background: var(--accent-hover);
}

.form-actions .secondary {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.form-actions .secondary:hover {
  background: var(--hover-bg);
}





.insight-icon {
  font-size: 1.2em;
}

.insight-text {
  color: var(--text);
  font-weight: 500;
}

/* ===== ROUTINE TRACKER STYLES ===== */

.routine-section {
  margin-bottom: 24px;
}

.routine-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.routine-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.routine-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.routine-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.routine-color-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.routine-details h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.routine-details p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.routine-time {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  margin-left: 12px;
}

.routine-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.routine-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.routine-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.routine-checkbox:hover {
  border-color: var(--accent);
}

.routine-edit-btn, .routine-delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.routine-edit-btn:hover {
  color: var(--accent);
  background: var(--accent-bg);
}

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

/* Enhanced Heatmap Styles */
.heatmap-container {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.heatmap-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #10b981);
  border-radius: 12px 12px 0 0;
}

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

.heatmap-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.heatmap-stats {
  display: flex;
  gap: 20px;
  align-items: center;
}

.heatmap-stat {
  text-align: center;
}

.heatmap-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.heatmap-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.heatmap-legend {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legend-color.less {
  background: #ebedf0;
  border: 1px solid #d1d5db;
}

.legend-color.more {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid #047857;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(53, 1fr);
  gap: 3px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.heatmap-day {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid transparent;
}

.heatmap-day:hover {
  transform: scale(1.3);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.heatmap-day.level-0 { 
  background: #ebedf0; 
  border-color: #d1d5db;
}
.heatmap-day.level-1 { 
  background: linear-gradient(135deg, #c6e48b, #7bc96f); 
  border-color: #68d391;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.heatmap-day.level-2 { 
  background: linear-gradient(135deg, #7bc96f, #239a3b); 
  border-color: #38a169;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.heatmap-day.level-3 { 
  background: linear-gradient(135deg, #239a3b, #196127); 
  border-color: #2f855a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.heatmap-day.level-4 { 
  background: linear-gradient(135deg, #196127, #0d4a1f); 
  border-color: #22543d;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.heatmap-day.today {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.heatmap-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.heatmap-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

/* Heatmap Month Labels */
.heatmap-months {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Heatmap Day Labels */
.heatmap-days {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  gap: 3px;
  margin-right: 8px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  padding-top: 16px;
}

.heatmap-layout {
  display: flex;
  gap: 8px;
}

.heatmap-content {
  flex: 1;
}

/* Routine Statistics */
.routine-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-change {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
}

.stat-change.positive {
  color: #10b981;
}

.stat-change.negative {
  color: #ef4444;
}

/* Streak Badges */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin: 4px;
}

.streak-badge.fire {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: fireGlow 2s ease-in-out infinite alternate;
}

@keyframes fireGlow {
  from { box-shadow: 0 0 5px rgba(239, 68, 68, 0.3); }
  to { box-shadow: 0 0 15px rgba(239, 68, 68, 0.6); }
}

/* Achievement Cards */
.achievement-card {
  background: linear-gradient(135deg, var(--card-bg), rgba(59, 130, 246, 0.05));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
}

.achievement-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.achievement-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Routine Templates */
.template-card {
  background: var(--card-bg);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.template-card:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}

.template-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

.template-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.template-description {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.template-tag {
  background: var(--accent-bg);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.quick-action-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-action-btn:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

/* Progress Rings */
.progress-ring {
  position: relative;
  width: 60px;
  height: 60px;
}

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

.progress-ring-circle {
  fill: none;
  stroke: var(--border);
  stroke-width: 4;
}

.progress-ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s ease;
}

.progress-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* Today's Routines */
.today-routines {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.today-routines h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.today-routine-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.today-routine-item:last-child {
  border-bottom: none;
}

.today-routine-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.today-routine-time {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  min-width: 80px;
}

.today-routine-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.today-routine-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.completed {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-badge.pending {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.status-badge.overdue {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.day-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.day-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: var(--text);
}

.day-option:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.day-option input[type="checkbox"] {
  margin: 0;
}

.day-option input[type="checkbox"]:checked + span {
  color: var(--accent);
  font-weight: 500;
}

.color-picker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-input {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.color-presets {
  display: flex;
  gap: 6px;
}

.color-preset {
  width: 24px;
  height: 24px;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-preset:hover {
  transform: scale(1.1);
}

.color-preset.active {
  border-color: var(--text);
  transform: scale(1.1);
}

/* Modal Debug Styles */
#routine-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#routine-modal.show {
  display: flex !important;
}

#routine-modal .modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
  .routine-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .routine-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .heatmap-grid {
    grid-template-columns: repeat(26, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .day-selector {
    justify-content: center;
  }
}

/* ===== SETTINGS ORGANIZATION STYLES ===== */

/* Settings Section Organization */
.settings-section {
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, var(--panel2, #1f2937) 0%, rgba(31, 41, 55, 0.8) 100%);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Section-specific color schemes */
.profile-section {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
  border-color: rgba(168, 85, 247, 0.3);
}

.account-section {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  border-color: rgba(34, 197, 94, 0.3);
}

.goals-section {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-color: rgba(239, 68, 68, 0.3);
}

.pomodoro-section {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

.appearance-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-color: rgba(59, 130, 246, 0.3);
}

.image-theme-section {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
  border-color: rgba(236, 72, 153, 0.3);
}

.app-settings-section {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.1) 0%, rgba(107, 114, 128, 0.05) 100%);
  border-color: rgba(107, 114, 128, 0.3);
}

.notifications-section {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
  border-color: rgba(168, 85, 247, 0.3);
}

.accent-section {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  border-color: rgba(34, 197, 94, 0.3);
}

.settings-section h3 {
  margin: 0 0 20px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent, #4a9eff);
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(74, 158, 255, 0.3);
  padding-bottom: 8px;
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-buttons .secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(74, 158, 255, 0.05) 100%);
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: 8px;
  color: var(--accent, #4a9eff);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.1);
}

.auth-buttons .secondary:hover {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(74, 158, 255, 0.1) 100%);
  border-color: rgba(74, 158, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

.auth-icon {
  font-size: 16px;
}

/* Data Management Buttons */
.data-management-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.data-management-buttons .secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #22c55e;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.data-management-buttons .secondary:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.data-icon {
  font-size: 16px;
}

/* Notification Status */
.notification-status {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.1);
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.status-item:last-child {
  margin-bottom: 0;
}

.status-label {
  font-size: 13px;
  color: #a855f7;
  font-weight: 600;
}

.status-value {
  font-size: 13px;
  color: var(--text, #ffffff);
  font-weight: 700;
  background: rgba(168, 85, 247, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Notification Buttons */
.notification-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.notification-buttons:last-child {
  margin-bottom: 0;
}

.notification-buttons .secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  color: #f59e0b;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.notification-buttons .secondary:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.notification-icon {
  font-size: 14px;
}

/* Color Picker Grid */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.color-picker-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.color-label {
  font-size: 12px;
  color: var(--text-muted, #9ca3af);
  font-weight: 500;
}

.color-picker-item input[type="color"] {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

/* Image Preview */
.image-preview {
  height: 80px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 6px;
  overflow: hidden;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--panel2, #1f2937);
  margin-bottom: 12px;
}

.image-preview.show {
  display: flex;
}

/* Slider Styles */
.slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--panel2, #1f2937);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 4px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent, #4a9eff);
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent, #4a9eff);
  cursor: pointer;
  border: none;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted, #9ca3af);
}

/* Mobile Settings Panel */
.mobile-settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg, #0b1220);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-settings-panel.show {
  transform: translateX(0);
}

.mobile-settings-header {
  position: relative;
  padding: 20px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: var(--panel, #111827);
}

.mobile-settings-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text, #ffffff);
}

.mobile-settings-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* Mobile Settings Close Button */
.mobile-settings-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text, #ffffff);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.mobile-settings-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.mobile-settings-close:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.3);
}

/* Mobile Navigation Panel */
.mobile-nav-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  background: var(--panel, #111827);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  padding: 16px;
}

.mobile-nav-panel.open {
  transform: translateY(0);
}

.mobile-nav-panel.closing {
  transform: translateY(100%);
}

.mobile-nav-items {
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--panel2, #1f2937);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  color: var(--text, #ffffff);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  min-width: 60px;
  text-align: center;
  position: relative;
}

.mobile-nav-item:hover {
  background: var(--accent, #4a9eff);
  border-color: var(--accent, #4a9eff);
  transform: translateY(-2px);
}

.mobile-nav-item.active {
  background: var(--accent, #4a9eff);
  border-color: var(--accent, #4a9eff);
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.3);
}

.mobile-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent, #4a9eff);
  border-radius: 1px;
}

.mobile-nav-icon {
  font-size: 20px;
  margin-bottom: 4px;
  text-align: center;
}

.mobile-nav-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Settings Organization */
.mobile-settings-section {
  margin-bottom: 20px;
  padding: 12px;
  background: var(--panel2, #1f2937);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 6px;
}

/* Mobile section-specific color schemes */
.mobile-settings-section.profile-section {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
  border-color: rgba(168, 85, 247, 0.3);
}

.mobile-settings-section.account-section {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  border-color: rgba(34, 197, 94, 0.3);
}

.mobile-settings-section.goals-section {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-color: rgba(239, 68, 68, 0.3);
}

.mobile-settings-section.pomodoro-section {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

.mobile-settings-section.appearance-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-color: rgba(59, 130, 246, 0.3);
}

.mobile-settings-section.image-theme-section {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
  border-color: rgba(236, 72, 153, 0.3);
}

.mobile-settings-section.app-settings-section {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.1) 0%, rgba(107, 114, 128, 0.05) 100%);
  border-color: rgba(107, 114, 128, 0.3);
}

.mobile-settings-section.notifications-section {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
  border-color: rgba(168, 85, 247, 0.3);
}

.mobile-settings-section.accent-section {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  border-color: rgba(34, 197, 94, 0.3);
}

.mobile-settings-section h4 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #ffffff);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-settings-section h5 {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text, #ffffff);
}

/* Mobile Quick Guide */
.mobile-quick-guide {
  background: var(--panel, #111827);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 6px;
  padding: 12px;
}

.mobile-guide-item {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text, #ffffff);
}

.mobile-guide-item:last-child {
  margin-bottom: 0;
}

.mobile-guide-item strong {
  color: var(--accent, #4a9eff);
}

/* Mobile Testing Controls */
.mobile-testing-controls {
  background: var(--panel, #111827);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 6px;
  padding: 12px;
}

.mobile-test-info {
  margin-top: 8px;
  text-align: center;
}

.mobile-test-info small {
  color: var(--text-muted, #9ca3af);
  font-size: 11px;
}

/* Mobile Color Picker Grid */
.mobile-color-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-color-picker-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-color-label {
  font-size: 11px;
  color: var(--text-muted, #9ca3af);
  font-weight: 500;
}

.mobile-color-picker-item input[type="color"] {
  width: 100%;
  height: 32px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

/* Mobile Image Preview */
.mobile-image-preview {
  height: 60px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 4px;
  overflow: hidden;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--panel2, #1f2937);
  margin-bottom: 8px;
}

.mobile-image-preview.show {
  display: flex;
}

/* Mobile Slider */
.mobile-slider {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--panel2, #1f2937);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 4px;
}

.mobile-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent, #4a9eff);
  cursor: pointer;
}

.mobile-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent, #4a9eff);
  cursor: pointer;
  border: none;
}

/* ===== AUTH MODAL IMPROVEMENTS ===== */

/* Login and Signup Modal Styling */
#login-modal .modal-content,
#signup-modal .modal-content {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.95) 100%);
  border: 2px solid rgba(74, 158, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(74, 158, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#login-modal .modal-header,
#signup-modal .modal-header {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(74, 158, 255, 0.05) 100%);
  border-bottom: 2px solid rgba(74, 158, 255, 0.3);
  border-radius: 16px 16px 0 0;
  padding: 20px;
  margin: -20px -20px 20px -20px;
}

#login-modal .modal-header h2,
#signup-modal .modal-header h2 {
  color: var(--accent, #4a9eff);
  font-weight: 700;
  font-size: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
}

#login-modal .modal-close,
#signup-modal .modal-close {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
}

#login-modal .modal-close:hover,
#signup-modal .modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Form Input Styling */
#login-modal .input,
#signup-modal .input {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.8) 100%);
  border: 2px solid rgba(74, 158, 255, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text, #ffffff);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#login-modal .input:focus,
#signup-modal .input:focus {
  border-color: rgba(74, 158, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1), 0 4px 12px rgba(74, 158, 255, 0.2);
  outline: none;
  transform: translateY(-1px);
}

#login-modal .input::placeholder,
#signup-modal .input::placeholder {
  color: rgba(156, 163, 175, 0.7);
  font-weight: 500;
}

/* Form Labels */
#login-modal .form-group label,
#signup-modal .form-group label {
  color: var(--accent, #4a9eff);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Submit Buttons */
#login-modal .primary,
#signup-modal .primary {
  background: linear-gradient(135deg, #4a9eff 0%, #3b82f6 100%);
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

#login-modal .primary:hover,
#signup-modal .primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

#login-modal .primary:active,
#signup-modal .primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

/* Form Group Spacing */
#login-modal .form-group,
#signup-modal .form-group {
  margin-bottom: 20px;
}

/* Link Styling */
#login-modal a,
#signup-modal a {
  color: var(--accent, #4a9eff);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

#login-modal a:hover,
#signup-modal a:hover {
  color: #3b82f6;
  text-shadow: 0 1px 2px rgba(74, 158, 255, 0.3);
}

/* Enhanced Mobile Responsive for Mini Goals and Tasks */
@media (max-width: 768px) {
  /* Mini Goals Mobile Improvements */
  .mini-goal-item {
    padding: 10px 12px;
    margin-bottom: 4px;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .mini-goal-text {
    font-size: 13px;
    min-width: 50px;
  }
  
  .mini-goal-date,
  .mini-goal-countdown {
    font-size: 10px;
    padding: 2px 4px;
  }
  
  .mini-goal-points {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .mini-goal-delete {
    width: 18px;
    height: 18px;
    font-size: 14px;
  }
  
  /* Daily Tasks Mobile Improvements */
  .task-item {
    padding: 16px;
    margin-bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .task-item .row {
    width: 100%;
  }
  
  .task-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .task-main {
    width: 100%;
    margin-bottom: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .task-badges {
    width: 100%;
    justify-content: flex-start;
    margin-top: 8px;
  }
  
  .task-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  
  .action-btn {
    padding: 8px 12px;
    font-size: 12px;
    flex: 1;
    min-width: 0;
  }
}

/* Funny Guide Styles */
.funny-guide {
  max-height: 60vh;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg, #0b1220);
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.guide-section {
  margin-bottom: 24px;
  padding: 16px;
  background: var(--panel, #111827);
  border-radius: 8px;
  border-left: 4px solid var(--accent, #4a9eff);
}

.guide-section h4 {
  margin: 0 0 12px 0;
  color: var(--accent, #4a9eff);
  font-size: 1.1rem;
  font-weight: 600;
}

.guide-item {
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--panel2, #1f2937);
  border-radius: 6px;
  border-left: 3px solid var(--border, rgba(255, 255, 255, 0.1));
  transition: all 0.2s ease;
}

.guide-item:hover {
  background: var(--panel, #111827);
  border-left-color: var(--accent, #4a9eff);
  transform: translateX(4px);
}

.guide-item strong {
  color: var(--accent, #4a9eff);
  font-weight: 600;
}

.guide-item.funny {
  border-left-color: #10b981; /* Green for funny tips */
}

.guide-item.roasting {
  border-left-color: #ef4444; /* Red for roasting */
  background: rgba(239, 68, 68, 0.1);
}

.guide-item.roasting:hover {
  background: rgba(239, 68, 68, 0.2);
  border-left-color: #dc2626;
}

.guide-section.roasting {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.guide-section.roasting h4 {
  color: #ef4444;
}

/* Full Screen Guide Modal */
.guide-modal-content {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10000 !important;
}

.guide-modal-content .modal-body {
  height: calc(100vh - 120px) !important;
  overflow-y: auto !important;
  padding: 20px !important;
}

.guide-modal-content .modal-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10001 !important;
  background: var(--panel, #111827) !important;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1)) !important;
  padding: 20px !important;
}

.guide-modal-content .modal-footer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 10001 !important;
  background: var(--panel, #111827) !important;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.1)) !important;
  padding: 20px !important;
}

/* Full screen guide content */
.guide-modal-content .funny-guide {
  max-height: none !important;
  height: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

