* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Variables for theming */
:root {
  /* Dark theme (default) - Cyan Neon (WCAG AA compliant) */
  --bg-color: #000;
  --text-color: #00D4D4;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --primary-color: #00D4D4;
  --accent-color: #ffffff;
  --overlay-bg: rgba(0, 212, 212, 0.2);
  --overlay-bg-light: rgba(0, 212, 212, 0.05);
  --border-color: #00D4D4;
  --shadow-color: rgba(0, 212, 212, 0.4);
  --map-tiles: 'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png';
}

body.light-theme {
  /* Light theme variables */
  --bg-color: #ffffff;
  --text-color: #0066cc;
  --text-secondary: rgba(0, 0, 0, 0.8);
  --primary-color: #0066cc;
  --accent-color: #333333;
  --overlay-bg: rgba(0, 102, 204, 0.2);
  --overlay-bg-light: rgba(0, 102, 204, 0.05);
  --border-color: #0066cc;
  --shadow-color: rgba(0, 102, 204, 0.4);
  --map-tiles: 'https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png';
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-color);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  position: fixed;
  touch-action: pan-x pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: background-color 0.3s ease;
}

#root {
  height: 100vh;
  width: 100vw;
  position: relative;
}

/* Enable zoom gestures */
html {
  -ms-touch-action: pan-x pan-y pinch-zoom;
  touch-action: pan-x pan-y pinch-zoom;
}

/* Loading spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Leaflet map styling */
.leaflet-container {
  height: 100vh;
  width: 100vw;
  background: var(--bg-color);
  transition: background-color 0.3s ease;
}

/* Futuristic zoom controls styling */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.leaflet-control-zoom a {
  background: radial-gradient(circle, var(--overlay-bg), var(--overlay-bg-light)) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 8px !important;
  backdrop-filter: blur(10px) !important;
  color: var(--primary-color) !important;
  width: 40px !important;
  height: 40px !important;
  line-height: 36px !important;
  text-align: center !important;
  text-decoration: none !important;
  font-weight: bold !important;
  font-size: 20px !important;
  display: block !important;
  margin-bottom: 8px !important;
  
  box-shadow: 
    0 0 15px var(--shadow-color),
    inset 0 0 15px var(--overlay-bg-light) !important;
  
  transition: all 0.3s ease !important;
  
  /* Remove default focus states */
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.leaflet-control-zoom a:hover {
  background: radial-gradient(circle, var(--overlay-bg), var(--overlay-bg-light)) !important;
  box-shadow: 
    0 0 20px var(--shadow-color),
    inset 0 0 20px var(--overlay-bg) !important;
  transform: scale(1.05) !important;
  color: var(--primary-color) !important;
}

.leaflet-control-zoom a:active {
  transform: scale(0.95) !important;
}

.leaflet-control-zoom a:focus {
  outline: none !important;
  box-shadow: 
    0 0 15px var(--shadow-color),
    inset 0 0 15px var(--overlay-bg-light) !important;
}

/* Remove the connecting border between zoom buttons */
.leaflet-control-zoom a:first-child {
  margin-bottom: 8px !important;
}

.leaflet-control-zoom a:last-child {
  margin-bottom: 0 !important;
}

/* Zoom to Fit Button - positioned right of zoom controls */
.zoom-to-fit-button {
  position: absolute;
  top: 70px;
  left: 110px;
  z-index: 1000;
  
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  background: radial-gradient(circle, var(--overlay-bg), var(--overlay-bg-light));
  backdrop-filter: blur(10px);
  
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  
  box-shadow: 
    0 0 15px var(--shadow-color),
    inset 0 0 15px var(--overlay-bg-light);
  
  transition: all 0.3s ease;
  
  /* Remove button selection/focus states */
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.zoom-to-fit-button:hover:not(:disabled) {
  background: radial-gradient(circle, var(--overlay-bg), var(--overlay-bg-light));
  box-shadow: 
    0 0 20px var(--shadow-color),
    inset 0 0 20px var(--overlay-bg);
  transform: scale(1.05);
}

.zoom-to-fit-button:active:not(:disabled) {
  transform: scale(0.95);
}

.zoom-to-fit-button:focus {
  outline: none !important;
  box-shadow: 
    0 0 15px var(--shadow-color),
    inset 0 0 15px var(--overlay-bg-light);
}

.zoom-to-fit-button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.zoom-to-fit-icon {
  width: 20px;
  height: 20px;
  fill: var(--primary-color);
  filter: drop-shadow(0 0 5px var(--shadow-color));
  transition: all 0.3s ease;
}

.zoom-to-fit-button.disabled .zoom-to-fit-icon {
  opacity: 0.5;
}

/* Theme Toggle Component */
.theme-toggle {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: radial-gradient(circle, var(--overlay-bg), var(--overlay-bg-light));
  backdrop-filter: blur(10px);
  
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  
  box-shadow: 
    0 0 15px var(--shadow-color),
    inset 0 0 15px var(--overlay-bg-light);
  
  transition: all 0.3s ease;
  
  /* Remove button selection/focus states */
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.theme-toggle:hover {
  background: radial-gradient(circle, var(--overlay-bg), var(--overlay-bg-light));
  box-shadow: 
    0 0 20px var(--shadow-color),
    inset 0 0 20px var(--overlay-bg);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle:focus {
  outline: none !important;
}

.theme-toggle-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.theme-icon {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
  stroke: var(--primary-color);
  color: var(--primary-color);
  filter: drop-shadow(0 0 8px var(--shadow-color));
  transition: all 0.3s ease;
}

.auto-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--shadow-color);
}

/* Futuristic button styling */
.pling-button {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border-color, #00D4D4);
  background: radial-gradient(circle, var(--overlay-bg, rgba(0, 212, 212, 0.2)), var(--overlay-bg-light, rgba(0, 212, 212, 0.05))) !important;
  backdrop-filter: blur(10px);
  
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  
  box-shadow: 
    0 0 20px var(--shadow-color, rgba(0, 212, 212, 0.4)),
    inset 0 0 20px var(--overlay-bg-light, rgba(0, 212, 212, 0.05));
  
  transition: all 0.3s ease;
  visibility: visible !important;
  
  /* Remove button selection/focus states */
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.pling-button:hover {
  background: radial-gradient(circle, var(--overlay-bg), var(--overlay-bg-light));
  box-shadow: 
    0 0 30px var(--shadow-color),
    inset 0 0 30px var(--overlay-bg);
  transform: translateX(-50%) scale(1.05);
}

.pling-button:active {
  transform: translateX(-50%) scale(0.95);
}

.pling-button:focus {
  outline: none !important;
  box-shadow: 
    0 0 20px var(--shadow-color),
    inset 0 0 20px var(--overlay-bg-light);
}

.pling-button-inner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--shadow-color);
  animation: pulse 2s infinite ease-in-out;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cooldown timer styling */
.cooldown-timer {
  font-family: 'Courier New', Courier, monospace;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: bold;
  color: var(--bg-color);
  white-space: nowrap;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 10;
  width: 60px;
  text-align: center;
  background-color: var(--accent-color);
  border-radius: 5px;
  padding: 5px;
}

/* Disable pulse animation when cooldown is active */
.pling-button.disabled .pling-button-inner {
  animation: none;
  opacity: 0.5;
  background: var(--border-color);
}

/* Adjust button appearance when disabled */
.pling-button.disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.pling-button.disabled:hover {
  transform: translateX(-50%) scale(1);
  box-shadow: 
    0 0 20px var(--shadow-color),
    inset 0 0 20px var(--overlay-bg-light);
}

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

/* Futuristic marker styling */
.custom-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-color), var(--overlay-bg));
  border: 2px solid var(--accent-color);
  position: relative;
  box-shadow: 
    0 0 15px var(--shadow-color),
    inset 0 0 10px var(--overlay-bg);
}

/* Blue dot marker for current GPS position */
.blue-dot-container {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.blue-dot-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #007acc, #0066aa);
  box-shadow: 
    0 0 8px rgba(0, 122, 204, 0.6),
    inset 0 0 6px rgba(255, 255, 255, 0.4);
  animation: blueDotPulse 2s infinite ease-in-out;
}

@keyframes blueDotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Radio wave animation */
.radio-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.radio-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--shadow-color);
  border-radius: 50%;
  animation: expandFade 3s 5 ease-out;
  opacity: 0;
  
  /* Force hardware acceleration and improve mobile rendering */
  will-change: transform, opacity, width, height;
  -webkit-transform: translate3d(-50%, -50%, 0);
  transform: translate3d(-50%, -50%, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  
  /* Ensure proper layering on mobile */
  z-index: 1;
}

.radio-wave:nth-child(1) {
  animation-delay: 0s;
}

.radio-wave:nth-child(2) {
  animation-delay: 1s;
}

.radio-wave:nth-child(3) {
  animation-delay: 2s;
}

@keyframes expandFade {
  0% {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transform: translate3d(-50%, -50%, 0) scale(1);
    -webkit-transform: translate3d(-50%, -50%, 0) scale(1);
  }
  70% {
    width: 140px;
    height: 140px;
    opacity: 0.1;
    transform: translate3d(-50%, -50%, 0) scale(1);
    -webkit-transform: translate3d(-50%, -50%, 0) scale(1);
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(1);
    -webkit-transform: translate3d(-50%, -50%, 0) scale(1);
    /* Explicitly hide at the end to prevent mobile rendering glitches */
    visibility: hidden;
  }
}

/* Additional mobile-specific fixes */
@media (max-width: 768px) {
  .radio-waves {
    /* Ensure proper positioning on mobile */
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
  }
  
  .radio-wave {
    /* Reduce animation iterations on mobile to improve performance */
    animation: expandFade 3s 3 ease-out;
    
    /* Additional mobile optimizations */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
}

/* Other users' marker styling */
.other-user-marker-container {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.other-user-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff8c00, #ff4500); /* Orange gradient for other users */
  border: 2px solid #ffffff;
  position: relative;
  box-shadow: 
    0 0 15px rgba(255, 140, 0, 0.6),
    inset 0 0 10px rgba(255, 140, 0, 0.3);
}

/* Orange radio waves for other users */
.other-user-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.other-user-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 140, 0, 0.4);
  border-radius: 50%;
  animation: otherUserExpandFade 3s 5 ease-out;
  opacity: 0;
  
  /* Force hardware acceleration and improve mobile rendering */
  will-change: transform, opacity, width, height;
  -webkit-transform: translate3d(-50%, -50%, 0);
  transform: translate3d(-50%, -50%, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  
  /* Ensure proper layering on mobile */
  z-index: 1;
}

.other-user-wave:nth-child(1) {
  animation-delay: 0s;
}

.other-user-wave:nth-child(2) {
  animation-delay: 1s;
}

.other-user-wave:nth-child(3) {
  animation-delay: 2s;
}

@keyframes otherUserExpandFade {
  0% {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transform: translate3d(-50%, -50%, 0) scale(1);
    -webkit-transform: translate3d(-50%, -50%, 0) scale(1);
  }
  70% {
    width: 140px;
    height: 140px;
    opacity: 0.1;
    transform: translate3d(-50%, -50%, 0) scale(1);
    -webkit-transform: translate3d(-50%, -50%, 0) scale(1);
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(1);
    -webkit-transform: translate3d(-50%, -50%, 0) scale(1);
    /* Explicitly hide at the end to prevent mobile rendering glitches */
    visibility: hidden;
  }
}

/* Additional mobile-specific fixes for other user markers */
@media (max-width: 768px) {
  .other-user-waves {
    /* Ensure proper positioning on mobile */
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
  }
  
  .other-user-wave {
    /* Reduce animation iterations on mobile to improve performance */
    animation: otherUserExpandFade 3s 3 ease-out;
    
    /* Additional mobile optimizations */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
}

/* Follow Me Button */
.follow-me-button {
  position: absolute;
  top: 70px;
  left: 60px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  background: radial-gradient(circle, var(--overlay-bg), var(--overlay-bg-light));
  backdrop-filter: blur(10px);
  
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  
  box-shadow: 
    0 0 15px var(--shadow-color),
    inset 0 0 15px var(--overlay-bg-light);
  
  transition: all 0.3s ease;
  
  /* Remove button selection/focus states */
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.follow-me-button:hover {
  background: radial-gradient(circle, var(--overlay-bg), var(--overlay-bg-light));
  box-shadow: 
    0 0 20px var(--shadow-color),
    inset 0 0 20px var(--overlay-bg);
  transform: scale(1.05);
}

.follow-me-button:active {
  transform: scale(0.95);
}

.follow-me-button:focus {
  outline: none !important;
}

.follow-me-button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.follow-me-button.disabled .follow-me-icon {
  opacity: 0.5;
}

.follow-me-icon {
  width: 20px;
  height: 20px;
  fill: var(--primary-color);
  filter: drop-shadow(0 0 5px var(--shadow-color));
}

/* Update Notification Styling */
.update-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 2000;
  
  background: radial-gradient(circle, var(--overlay-bg-light), var(--overlay-bg-light));
  border: 2px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  
  box-shadow: 
    0 0 30px var(--shadow-color),
    inset 0 0 30px var(--overlay-bg-light);
  
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  max-width: 320px;
  width: 90vw;
  
  /* Remove selection states */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.update-notification.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.update-notification-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.update-icon {
  width: 48px;
  height: 48px;
  color: var(--primary-color);
  filter: drop-shadow(0 0 8px var(--shadow-color));
  animation: updateIconPulse 2s infinite ease-in-out;
}

@keyframes updateIconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.update-text h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  text-shadow: 0 0 8px var(--shadow-color);
}

.update-text p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.update-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.update-btn {
  padding: 10px 20px;
  border: 2px solid;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* Remove default button styling */
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  
  flex: 1;
  max-width: 100px;
}

.update-later {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.update-later:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: var(--overlay-bg-light);
}

.update-now {
  border-color: var(--border-color);
  color: var(--primary-color);
  background: radial-gradient(circle, var(--overlay-bg-light), var(--overlay-bg-light));
  
  box-shadow: 
    0 0 15px var(--shadow-color),
    inset 0 0 15px var(--overlay-bg-light);
}

.update-now:hover {
  background: radial-gradient(circle, var(--overlay-bg), var(--overlay-bg-light));
  box-shadow: 
    0 0 20px var(--shadow-color),
    inset 0 0 20px var(--overlay-bg);
  transform: scale(1.02);
}

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

/* Additional styling for better mobile experience */
@media (max-width: 768px) {
  .follow-me-button {
    top: 10px;
    left: 60px;
    width: 40px;
    height: 40px;
  }
  
  .follow-me-icon {
    width: 18px;
    height: 18px;
  }
  
  /* Mobile zoom controls styling */
  .leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 32px !important;
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }
  
  /* Mobile zoom-to-fit button styling */
  .zoom-to-fit-button {
    top: 10px;
    left: 110px;
    width: 40px;
    height: 40px;
  }
  
  .zoom-to-fit-icon {
    width: 18px;
    height: 18px;
  }
  
  /* Mobile update notification styling */
  .update-notification {
    max-width: 280px;
  }
  
  .update-notification-content {
    padding: 20px;
    gap: 14px;
  }
  
  .update-icon {
    width: 40px;
    height: 40px;
  }
  
  .update-text h3 {
    font-size: 16px;
  }
  
  .update-text p {
    font-size: 13px;
  }
  
  .update-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Notification Toggle Button - similar to theme toggle */
.notification-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: radial-gradient(circle, var(--overlay-bg), var(--overlay-bg-light));
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  
  box-shadow: 
    0 0 15px var(--shadow-color),
    inset 0 0 15px var(--overlay-bg-light);
  
  /* Remove button selection/focus states */
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.notification-toggle:hover {
  background: radial-gradient(circle, var(--overlay-bg), var(--overlay-bg-light));
  box-shadow: 
    0 0 20px var(--shadow-color),
    inset 0 0 20px var(--overlay-bg);
  transform: scale(1.05);
}

.notification-toggle:active {
  transform: scale(0.95);
}

.notification-toggle:focus {
  outline: none !important;
}

.notification-toggle.enabled {
  border-color: var(--primary-color);
  box-shadow: 
    0 0 20px var(--shadow-color),
    0 0 10px var(--shadow-color),
    inset 0 0 15px var(--overlay-bg-light);
}

.notification-toggle.enabled:hover {
  box-shadow: 
    0 0 25px var(--shadow-color),
    0 0 15px var(--shadow-color),
    inset 0 0 20px var(--overlay-bg);
}

.notification-toggle.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.notification-toggle.processing {
  opacity: 0.6;
  cursor: wait;
}

.notification-toggle-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.notification-icon {
  width: 20px;
  height: 20px;
  fill: var(--primary-color);
  filter: drop-shadow(0 0 5px var(--shadow-color));
  transition: all 0.3s ease;
}

.notification-toggle.enabled .notification-icon {
  fill: var(--primary-color);
}

.notification-toggle.disabled .notification-icon {
  opacity: 0.5;
}

.notification-icon.spinning {
  animation: spin 1s linear infinite;
}

/* Keyframe animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mobile adjustments for notification toggle */
@media (max-width: 768px) {
  .notification-toggle {
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
  .notification-icon {
    width: 18px;
    height: 18px;
  }
}

/* Version Display Styles */
.version-display {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  z-index: 9999;
  opacity: 0.6;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.version-display:hover {
  opacity: 1;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.version-display:active {
  transform: translateY(0);
}

.version-text {
  display: block;
  letter-spacing: 0.5px;
}

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

/* Light theme adjustments for version display */
body.light-theme .version-display {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Mobile adjustments for version display */
@media (max-width: 768px) {
  .version-display {
    bottom: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 10px;
  }
}

/* Ensure version display doesn't interfere with map controls */
@media (max-width: 480px) {
  .version-display {
    bottom: 10px;
    right: 10px;
    font-size: 9px;
    padding: 5px 10px;
  }
}
