:root {
  /* Modern Tech Palette */
  /* Primary Colors */
  --primary-blue: #2563EB; /* Vibrant Blue */
  --primary-blue-light: #3B82F6;
  --primary-blue-lighter: #60A5FA;
  --primary-blue-dark: #1D4ED8;
  --accent-glow: rgba(37, 99, 235, 0.2);
  
  /* Status Colors */
  --status-safe: #10B981; /* Emerald */
  --status-safe-bg: rgba(16, 185, 129, 0.1);
  --status-warning: #F59E0B; /* Amber */
  --status-warning-bg: rgba(245, 158, 11, 0.1);
  --status-danger: #EF4444; /* Red */
  --status-danger-bg: rgba(239, 68, 68, 0.1);
  
  /* Neutral Colors */
  --bg-primary: #F3F4F6; /* Cool Gray 100 */
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-primary: #111827; /* Cool Gray 900 */
  --text-secondary: #374151; /* Cool Gray 700 */
  --text-muted: #6B7280; /* Cool Gray 500 */
  --border-color: #E5E7EB;
  --border-light: #F3F4F6;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
  --gradient-safe: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-warning: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --gradient-danger: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  
  /* Shadows */
  --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);
  --shadow-glow: 0 0 15px var(--accent-glow);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-md);
  line-height: 1.5;
}

/* Typography */
h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Layout */
.container {
  max-width: 600px; /* Optimized for mobile focus */
  width: 100%;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
}

/* Mode Switcher - Floating Pill Style */
.mode-switcher {
  display: flex;
  background: white;
  padding: 0.35rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 10;
}

.mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mode-btn.active {
  background: var(--primary-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Cards - Modern Surface */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: var(--spacing-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  background: var(--gradient-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Compass Section - Focal Point */
.compass-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  border-radius: var(--radius-full);
  margin: var(--spacing-md) 0;
  position: relative;
}

.compass-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  background: white;
  box-shadow: 
    0 10px 30px -10px rgba(37, 99, 235, 0.3),
    inset 0 0 20px rgba(37, 99, 235, 0.05);
}

.compass-arrow {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy spring */
  will-change: transform;
  filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.25));
}

.compass-arrow svg {
  width: 100%;
  height: 100%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.compass-label {
  position: absolute;
  top: -12px;
  background: var(--primary-blue);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.direction-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

#safe-distance {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
}

/* Info Cards - Clean List */
.info-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.info-header {
  padding: 1rem;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.info-content {
  padding: 0 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Align to top for multi-line */
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  gap: 1rem; /* Add gap between label and value */
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  flex-shrink: 0; /* Prevent label from shrinking */
  margin-top: 2px; /* Align with text baseline */
}

.detail-val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  word-break: break-word; /* Ensure long text wraps nicely */
  max-width: 70%; /* Limit width to prevent overcrowding label */
}

.eta-badge {
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  display: flex;
  flex-direction: column; /* Stack items if needed or keep inline */
  align-items: flex-end;
  gap: 0.25rem;
}

/* Forms - Modern Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-primary);
  border: 2px solid transparent;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
  background: white;
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Results - Dashboard Style */
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-box {
  background: var(--bg-primary);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.result-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.result-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Status Badges */
.zone-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zone-badge.safe { background: var(--status-safe-bg); color: var(--status-safe); }
.zone-badge.warning { background: var(--status-warning-bg); color: var(--status-warning); }
.zone-badge.danger { background: var(--status-danger-bg); color: var(--status-danger); }

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
  flex-direction: column;
}

.loading-screen.fade-out { opacity: 0; pointer-events: none; }

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  padding: 2rem;
}

.loading-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.loading-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-blue);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.loading-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 500;
  text-align: center;
}

.warning-message {
  background: #FEF2F2;
  color: #DC2626;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  border: 1px solid #FECACA;
  box-shadow: var(--shadow-sm);
  animation: pulse 2s infinite;
}

.loading-spinner {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 2rem;
}

.spinner-ring {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 40px;
  height: 40px;
  margin: 4px;
  border: 4px solid var(--primary-blue);
  border-radius: 50%;
  animation: spinner-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--primary-blue) transparent transparent transparent;
}

.spinner-ring:nth-child(1) { animation-delay: -0.45s; }
.spinner-ring:nth-child(2) { animation-delay: -0.3s; }
.spinner-ring:nth-child(3) { animation-delay: -0.15s; }

@keyframes spinner-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-tip {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 240px;
  line-height: 1.5;
  opacity: 0.8;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

/* Utilities */
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 640px) {
  .result-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.5rem; }
  .compass-ring { width: 140px; height: 140px; }
  .compass-arrow { width: 80px; height: 80px; }
}

.nav-header-card {
  background: var(--status-safe);
  color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-md);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.nav-instruction-box {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-turn-icon-small {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.nav-text-content {
  display: flex;
  flex-direction: column;
}

.nav-instruction {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.nav-distance {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
}

.nav-display-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--border-light);
}

.compass-container.nav-mode {
  background: transparent;
  padding: var(--spacing-sm);
  margin: 0;
}

.compass-container.nav-mode .compass-ring {
  width: 180px;
  height: 180px;
  border-width: 4px;
  margin-bottom: var(--spacing-lg);
}

.compass-container.nav-mode .compass-arrow {
  font-size: 5rem;
}

/* Alternative Routes */
.alternatives-section {
  margin-top: var(--spacing-lg);
  animation: fadeIn 0.6s ease-out;
}

.section-title {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.alternatives-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.alt-route-card {
  background: var(--bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.alt-route-card:hover {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-blue-light);
}

.alt-route-info {
  display: flex;
  flex-direction: column;
}

.alt-route-label {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.alt-route-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.alt-route-arrow {
  color: var(--primary-blue);
  font-size: 1.2rem;
  background: rgba(30, 136, 229, 0.1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Collapsible Info Card */
.info-card.collapsed .info-content {
  display: none;
}

.info-card.collapsed .info-header {
  margin-bottom: 0;
  cursor: pointer;
}

.info-header {
  cursor: pointer;
  user-select: none;
}

.info-header:hover {
  opacity: 0.8;
}

/* Route Info */
.route-info {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-light);
}

/* Route Map Visualization */
.route-map-box {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-light);
}

.map-overlay-info {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.map-badge {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Street-like background pattern for SVG */
#route-svg rect {
  fill: #eef2f6;
}


/* Navigation Styles (Google Maps Inspired) */

.header-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.header-logo {
  height: 48px;
  width: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.subtitle-small {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  color: var(--text-muted);
}

.nav-display-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
}

.compass-container.nav-mode {
  background: transparent;
  padding: 0;
  margin: 0 0 1.5rem 0;
  box-shadow: none;
}

.card-icon.icon-detail {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  max-width: 400px;
  width: 100%;
  text-align: center;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.15), rgba(30, 136, 229, 0.25));
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--primary-blue-lighter);
  animation: pulseIcon 3s infinite;
}

@keyframes pulseIcon {
  0% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(30, 136, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0); }
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.modal-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-btn {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
  border-color: var(--text-muted);
}

/* Status Colors for 5 Categories */
.status-very-safe { 
  color: #059669 !important;  /* Dark Emerald */
  font-weight: 800;
}

.status-safe { 
  color: #10B981 !important;  /* Emerald */
  font-weight: 800;
}

.status-warning { 
  color: #F59E0B !important;  /* Amber */
  font-weight: 800;
}

.status-danger { 
  color: #EF4444 !important;  /* Red */
  font-weight: 800;
}

.status-very-danger { 
  color: #DC2626 !important;  /* Dark Red */
  font-weight: 800;
}

/* Legacy status classes for backward compatibility */
.status-eligible { 
  color: var(--status-safe) !important; 
}

.status-ineligible { 
  color: var(--status-danger) !important; 
}

/* ====================================
   REAL-TIME UPDATE ANIMATIONS
   ==================================== */

/* Pulse animation for updated values */
@keyframes valuePulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

.value-updated {
  animation: valuePulse 0.3s ease-out;
}

/* Real-time updating indicator */
@keyframes realtimePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.realtime-updating {
  animation: realtimePulse 2s infinite;
  border-radius: var(--radius-sm);
}

/* Approaching safe zone animation */
@keyframes approachingSafe {
  0% { 
    background: transparent;
    transform: scale(1);
  }
  50% { 
    background: rgba(16, 185, 129, 0.15);
    transform: scale(1.02);
  }
  100% { 
    background: transparent;
    transform: scale(1);
  }
}

.approaching-safe {
  animation: approachingSafe 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
  padding: 4px 8px;
}

/* Smooth transition for ETA badge */
.eta-badge {
  transition: all 0.3s ease;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Speed indicator styles */
.speed-indicator {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.speed-indicator.moving {
  color: var(--status-safe);
}

/* Distance countdown animation */
@keyframes distanceCountdown {
  from { 
    color: var(--text-primary);
  }
  to { 
    color: var(--status-safe);
  }
}

.distance-close {
  animation: distanceCountdown 0.5s ease forwards;
  font-weight: 700;
}

/* GPS accuracy indicator in compass */
#compass-status {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Live data refresh indicator */
@keyframes liveIndicator {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.live-data::before {
  content: '●';
  color: var(--status-safe);
  margin-right: 0.5rem;
  animation: liveIndicator 1s infinite;
}
