/* ==========================================================================
   BLIPIP MONITOR - DESIGN SYSTEM (WCAG 2.1 AA/AAA & W3C COMPLIANT)
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-base: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-surface-hover: #334155;
  --bg-glass: rgba(17, 24, 39, 0.85);

  /* Borders & Dividers */
  --border-subtle: #1e293b;
  --border-muted: #334155;
  --border-focus: #38bdf8;

  /* Typography Colors (High Contrast WCAG AAA >= 7:1) */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0b0f19;

  /* Accent Colors */
  --color-brand: #6366f1;
  --color-brand-hover: #4f46e5;
  --color-brand-light: #818cf8;
  --color-brand-glow: rgba(99, 102, 241, 0.25);

  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.15);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.15);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.15);

  /* Layout Dimensions */
  --sidebar-width: 330px;
  --sidebar-collapsed-width: 80px;
  --header-height: 72px;

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme overrides */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.9);

  --border-subtle: #e2e8f0;
  --border-muted: #cbd5e1;
  --border-focus: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --color-brand: #4f46e5;
  --color-brand-hover: #4338ca;
  --color-brand-light: #6366f1;
  --color-brand-glow: rgba(79, 70, 229, 0.15);

  --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 -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* --- Global Reset & Accessibility Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Accessible Focus Rings (WCAG 2.4.7 & 2.4.11) */
:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
}

/* Skip link for keyboard users (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-brand);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* --- Layout Structure --- */
.app-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  position: relative;
}

/* --- Left Sidebar (Menu) --- */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow-x: hidden;
  transition: transform var(--transition-normal), width var(--transition-normal);
}

.sidebar-header {
  height: var(--header-height);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-brand), #a855f7);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 15px var(--color-brand-glow);
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--color-brand-glow);
  color: var(--color-brand-light);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  margin-left: 0.25rem;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-muted) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border-muted);
  border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0 0.75rem 0.5rem 0.75rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-link:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.nav-link.active {
  background: linear-gradient(90deg, var(--color-brand-glow), transparent);
  color: var(--color-brand-light);
  border-left: 3px solid var(--color-brand);
  border-color: rgba(99, 102, 241, 0.3);
  font-weight: 600;
}

[data-theme="light"] .nav-link.active {
  color: var(--color-brand);
  background: rgba(79, 70, 229, 0.08);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-badge.badge-danger {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
}

.nav-badge.badge-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--color-success);
}

/* --- Right Main Area (Dashboard) --- */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
}

/* Top Navigation Bar */
.topbar {
  height: var(--header-height);
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-muted);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.view-breadcrumb {
  display: flex;
  flex-direction: column;
}

.view-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.view-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.825rem;
  font-weight: 600;
  line-height: 1.2;
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --- Dashboard Content Canvas (Empty State & Workspace) --- */
.content-area {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.canvas-panel {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.canvas-panel.active {
  display: flex;
  animation: fadeIn 0.25s ease-in-out;
}

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

/* Empty Canvas Card (Ready for User-Directed Modules) */
.empty-canvas {
  background-color: var(--bg-surface);
  border: 2px dashed var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  min-height: 480px;
}

.empty-canvas-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-light);
}

.empty-canvas-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-canvas-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.6;
}

.suggestions-box {
  margin-top: 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  max-width: 650px;
  text-align: left;
}

.suggestions-title {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand-light);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.suggestions-list {
  list-style-position: inside;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* --- Mobile Drawer Backdrop --- */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 90;
}

.drawer-backdrop.active {
  display: block;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 260px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .topbar {
    padding: 0 1rem;
  }

  .content-area {
    padding: 1.25rem;
  }

  .user-info {
    display: none;
  }
}

/* ==========================================================================
   MOTION & POSITION DETECTION MODULE STYLES
   ========================================================================== */
.motion-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.motion-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.motion-device-select-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.motion-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.motion-select {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-muted);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
}

.motion-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-full);
}

.motion-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.motion-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.motion-card-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.activity-badge-container {
  margin-bottom: 1rem;
}

.activity-badge {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.activity-still {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid #10b981;
}

.activity-walking {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid #38bdf8;
}

.activity-running {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.activity-vehicle {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid #a855f7;
}

.activity-fall {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border: 2px solid #ef4444;
  animation: pulse-danger 1s infinite alternate;
}

@keyframes pulse-danger {
  from { opacity: 0.8; }
  to { opacity: 1; transform: scale(1.02); }
}

.motion-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-surface-elevated);
  padding: 0.875rem;
  border-radius: var(--radius-sm);
}

.motion-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.motion-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.motion-stat-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: monospace;
}

.orientation-display-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.orientation-badge {
  background: #1e293b;
  color: #38bdf8;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.orientation-subtext {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.motion-tip-box {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Axis Meters */
.axis-meter-group {
  margin-bottom: 1rem;
}

.axis-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}

.axis-name {
  color: var(--text-secondary);
  font-weight: 600;
}

.axis-num {
  color: var(--text-primary);
  font-weight: 700;
  font-family: monospace;
}

.axis-bar-track {
  height: 12px;
  background: var(--bg-surface-elevated);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.axis-center-mark {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-muted);
  z-index: 2;
}

.axis-bar-fill {
  position: absolute;
  height: 100%;
  border-radius: 6px;
  transition: width 0.1s linear, left 0.1s linear;
}

.bar-x { background: #38bdf8; }
.bar-y { background: #34d399; }
.bar-z { background: #f59e0b; }

/* Gyro Tiles */
.gyro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gyro-tile {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gyro-axis {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.gyro-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #38bdf8;
  font-family: monospace;
}

.gyro-unit {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Table */
.motion-table-wrapper {
  overflow-x: auto;
}

.motion-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.motion-table th {
  text-align: left;
  padding: 0.75rem 0.875rem;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.motion-table td {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.table-empty {
  text-align: center;
  padding: 2rem !important;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   GPS TRACKING, LEAFLET MAP & REPLAY CONTROLS
   ========================================================================== */
.gps-map-container {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #090d16;
  box-shadow: var(--shadow-lg);
}

#gps-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gps-map-overlay-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.gps-map-mode-badge {
  position: absolute;
  top: 12px;
  left: 54px;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fafc;
}

.gps-map-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.gps-map-btn:hover {
  background: #334155;
  border-color: #38bdf8;
  color: #38bdf8;
}

.gps-map-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.gps-replay-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
}

.gps-timeline-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1rem 0;
}

.gps-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  cursor: pointer;
}

.gps-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  border: 2px solid #ffffff;
  transition: transform 0.1s ease;
}

.gps-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.gps-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 1rem;
}

.gps-stat-tile {
  background: var(--bg-surface-elevated);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

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

.gps-stat-number {
  font-size: 1.25rem;
  font-weight: 900;
  color: #38bdf8;
  font-family: monospace;
  margin-top: 0.2rem;
}

.gps-poi-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
}

.poi-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #1e293b;
  font-size: 0.825rem;
}

.poi-item:last-child {
  border-bottom: none;
}

.poi-tag-hotel {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.poi-tag-building {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Custom Leaflet Dark Popup */
.leaflet-popup-content-wrapper {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid #38bdf8 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7) !important;
}

.leaflet-popup-tip {
  background: #0f172a !important;
}

