/* Load documentation styles */
/* ==================== DOCUMENTATION STYLES ==================== */
/* Elegant, sober styling for Colombia Soundmap documentation */
:root {
    --doc-color-primary: #2c3e50;
    --doc-color-secondary: #34495e;
    --doc-color-accent: #3498db;
    --doc-color-text: #2c3e50;
    --doc-color-text-light: #7f8c8d;
    --doc-color-background: #ffffff;
    --doc-color-background-alt: #f8f9fa;
    --doc-color-border: #e9ecef;
    --doc-color-border-light: #f1f3f4;
    
    --doc-font-family: 'darkmode-on', Georgia, 'Times New Roman', Times, serif;
    --doc-font-family-mono: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    
    --doc-spacing-xs: 0.5rem;
    --doc-spacing-sm: 1rem;
    --doc-spacing-md: 1.5rem;
    --doc-spacing-lg: 2rem;
    --doc-spacing-xl: 3rem;
    
    --doc-border-radius: 0.375rem;
    --doc-shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --doc-shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
/* Base typography */
html {
    font-size: 16px;
    line-height: 1.6;
}
body {
    font-family: var(--doc-font-family);
    color: var(--doc-color-text);
    background-color: var(--doc-color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Main content container */
.doc-content,
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--doc-spacing-xl) var(--doc-spacing-lg);
    line-height: 1.7;
}
@media (max-width: 768px) {
    .doc-content,
    .content-wrapper {
        padding: var(--doc-spacing-lg) var(--doc-spacing-md);
    }
}
/* Header styling */
.doc-header {
    text-align: center;
    margin-bottom: var(--doc-spacing-xl);
    padding-bottom: var(--doc-spacing-lg);
    border-bottom: 2px solid var(--doc-color-border-light);
}
.doc-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--doc-color-primary);
    margin: 0 0 var(--doc-spacing-sm) 0;
    letter-spacing: -0.025em;
}
.doc-subtitle {
    font-size: 1.125rem;
    color: var(--doc-color-text-light);
    font-weight: 400;
    margin: 0;
    font-style: italic;
}
/* Section styling */
.doc-section {
    margin-bottom: var(--doc-spacing-xl);
}
.doc-section:last-child {
    margin-bottom: 0;
}
/* Typography */
h2 {
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--doc-color-primary);
    margin: var(--doc-spacing-lg) 0 var(--doc-spacing-md) 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
h3 {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--doc-color-secondary);
    margin: var(--doc-spacing-md) 0 var(--doc-spacing-sm) 0;
    line-height: 1.4;
}
p {
    margin: var(--doc-spacing-sm) 0;
    color: var(--doc-color-text);
    font-size: 1rem;
    line-height: 1.7;
}
/* Lists */
ul, ol {
    margin: var(--doc-spacing-sm) 0;
    padding-left: var(--doc-spacing-lg);
}
li {
    margin: var(--doc-spacing-xs) 0;
    line-height: 1.6;
}
ul li {
    list-style-type: disc;
}
/* Special list styles */
.equipment-list li {
    margin: var(--doc-spacing-sm) 0;
    padding: var(--doc-spacing-xs) 0;
}
/* Specification table */
.spec-table {
    background: var(--doc-color-background-alt);
    border: 1px solid var(--doc-color-border);
    border-radius: var(--doc-border-radius);
    padding: var(--doc-spacing-md);
    margin: var(--doc-spacing-md) 0;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--doc-spacing-xs) 0;
    border-bottom: 1px solid var(--doc-color-border-light);
}
.spec-row:last-child {
    border-bottom: none;
}
.spec-label {
    font-weight: 500;
    color: var(--doc-color-secondary);
    font-size: 0.9rem;
}
.spec-value {
    font-family: var(--doc-font-family-mono);
    font-size: 0.875rem;
    color: var(--doc-color-accent);
    font-weight: 500;
}
/* Tech stack grid */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--doc-spacing-lg);
    margin: var(--doc-spacing-md) 0;
}
.tech-category {
    background: var(--doc-color-background-alt);
    border: 1px solid var(--doc-color-border);
    border-radius: var(--doc-border-radius);
    padding: var(--doc-spacing-md);
}
.tech-category h3 {
    margin-top: 0;
    color: var(--doc-color-primary);
    font-size: 1.125rem;
}
.tech-category ul {
    margin-bottom: 0;
}
.tech-category li {
    font-size: 0.9rem;
    line-height: 1.5;
}
/* Contribution methods */
.contribution-methods {
    display: grid;
    gap: var(--doc-spacing-lg);
    margin: var(--doc-spacing-md) 0;
}
.contribution-item {
    background: var(--doc-color-background-alt);
    border-left: 4px solid var(--doc-color-accent);
    padding: var(--doc-spacing-md);
    border-radius: 0 var(--doc-border-radius) var(--doc-border-radius) 0;
}
.contribution-item h3 {
    margin-top: 0;
    color: var(--doc-color-primary);
    font-size: 1.125rem;
}
.contribution-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}
/* Guide items */
.guide-item {
    margin: var(--doc-spacing-lg) 0;
    padding: var(--doc-spacing-md);
    background: var(--doc-color-background-alt);
    border-radius: var(--doc-border-radius);
    border: 1px solid var(--doc-color-border);
}
.guide-item h3 {
    margin-top: 0;
    color: var(--doc-color-primary);
    font-size: 1.125rem;
}
.guide-item p:last-child,
.guide-item ul:last-child {
    margin-bottom: 0;
}
/* Contact info */
.contact-info {
    background: var(--doc-color-background-alt);
    border: 1px solid var(--doc-color-border);
    border-radius: var(--doc-border-radius);
    padding: var(--doc-spacing-md);
    margin: var(--doc-spacing-md) 0;
}
.contact-info p {
    margin: var(--doc-spacing-xs) 0;
    font-size: 0.95rem;
}
.contact-info p:last-child {
    margin-bottom: 0;
}
/* Emphasis and strong text */
strong {
    font-weight: 600;
    color: var(--doc-color-secondary);
}
em {
    font-style: italic;
    color: var(--doc-color-text-light);
}
/* Links */
a {
    color: var(--doc-color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}
a:hover {
    border-bottom-color: var(--doc-color-accent);
}
/* Code elements */
code {
    font-family: var(--doc-font-family-mono);
    font-size: 0.875rem;
    background: var(--doc-color-background-alt);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    color: var(--doc-color-secondary);
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .doc-header h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--doc-spacing-xs);
    }
}
/* Print styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .doc-content {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .doc-header {
        border-bottom: 2px solid #000;
    }
    
    h2 {
        page-break-after: avoid;
    }
    
    .doc-section {
        page-break-inside: avoid;
    }
}
/* ==================== BASE LAYOUT ==================== */
/* Fixed Header */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 50px;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid #d4d4d8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  display: block;
  visibility: visible;
}
.header-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}
.header-left,
.header-right {
  display: flex;
  align-items: center;
  height: 100%;
}
.header-left {
  flex: 1;
}
.header-right {
  padding-right: 0;
  gap: 0;
}
/* Fixed Side Panel */
.fixed-side-panel {
  position: fixed;
  top: 50px;
  left: 0;
  width: 50px;
  height: 50px;
  z-index: 9998;
  background: rgba(26, 32, 44, 0.95);
  border-right: none;
  transition: width 0.3s ease;
  pointer-events: auto;
  display: block;
  /* ✅ FIX: Optimize transitions to prevent layout shifts in mobile viewports */
  will-change: width;
  transform: translateZ(0); /* Force hardware acceleration */
  contain: layout; /* Prevent layout impact on other elements */
  visibility: visible;
  border-radius: 0 0 8px 0;
}
.fixed-side-panel[data-collapsed='false'] {
  width: min(35vw, 350px);
  max-width: 350px;
  min-width: 280px;
}
.side-panel-action-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  background: rgba(26, 32, 44, 0.95);
  border-right: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0 0 0 8px;
}
.side-panel-content {
  position: absolute;
  top: 0;
  left: 50px;
  width: calc(100% - 50px);
  height: auto;
  max-height: calc(100vh - 150px);
  background: rgba(26, 32, 44, 0.95);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  border-radius: 0 0 8px 0;
}
.fixed-side-panel[data-collapsed='false'] .side-panel-content {
  opacity: 1;
  visibility: visible;
}
/* Mobile override for panel content visibility */
.side-panel-content.mobile-force-visible {
  opacity: 1 !important;
  visibility: visible !important;
}
/* Dropdown System */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  z-index: 1000;
  top: 100%;
  left: 0;
}
.dropdown.show .dropdown-content {
  display: block;
}
.dropdown-item {
  color: #374151;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}
.dropdown-item:hover {
  background-color: #f3f4f6;
}
/* Hamburger Button */
.hamburger-button {
  display: flex;
  align-items: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #374151;
  font-size: 16px;
  font-weight: 500;
  gap: 12px;
}
.hamburger-icon {
  font-size: 18px;
}
.hamburger-bars {
  color: #374151;
}
.app-title {
  color: #374151;
  font-size: 20px;
  font-weight: 500;
}
/* Language Button */
.language-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  color: #374151;
  transition: background-color 0.2s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.language-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.language-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.language-icon img {
  filter: brightness(0) saturate(100%);
  transition: filter 0.2s ease;
}
/* Action Button */
.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #374151;
  transition: background-color 0.2s ease;
  width: 100%;
}
.action-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.action-button.active {
  background-color: #3b82f6;
  color: #ffffff;
}
/* SAB (Side Action Bar) specific styling for dark mode */
.side-panel-action-bar .action-button {
  color: #ffffff;
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.side-panel-action-bar .action-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
/* SAB active state - use same color as hover instead of blue */
.side-panel-action-bar .action-button.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.side-panel-action-bar .action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0; /* Override general action-icon margin */
}
.side-panel-action-bar .action-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* Make SVGs white for dark background */
}
.action-icon {
  font-size: 16px;
  margin-bottom: 4px;
}
.action-text {
  font-size: 10px;
  text-align: center;
}
/* Panel System */
.panel {
  width: 100%;
  height: auto;
  background: #ffffff;
  border: none;
  display: flex;
  flex-direction: column;
}
.panel[hidden] {
  display: none;
}
.panel-header {
  height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid #4b5563;
  background: rgba(26, 32, 44, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}
.panel-body {
  padding: 16px;
  overflow-y: auto;
  background: rgba(26, 32, 44, 0.95);
  color: #ffffff;
}
.notice {
  padding: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  font-size: 14px;
}
/* Map Controls */
.map-controls-container {
  position: fixed;
  top: 50%;
  right: 20px;
  z-index: 9997;
  transform: translateY(-50%);
}
.map-controls {
  display: flex;
  flex-direction: column;
  background: rgba(26, 32, 44, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #374151;
  overflow: visible;
  position: relative;
}
.map-control-button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.map-control-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.map-control-button:active {
  background-color: rgba(255, 255, 255, 0.2);
}
/* Layers dropdown specific styling */
.map-controls .dropdown {
  position: relative;
}
.map-controls .dropdown-content {
  right: 0;
  left: auto;
  min-width: 180px;
  top: 100%;
  margin-left: 0;
  z-index: 1;
  animation: none;
  transition: none;
  position: absolute;
  background-color: rgba(26, 32, 44, 0.95);
  border: 1px solid #374151;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.map-controls .dropdown-item {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}
.map-controls .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.map-controls .dropdown-item img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1); /* Make SVGs white for dark background */
}
.control-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.control-icon img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1); /* Make SVGs white for dark background */
}
/* Language switcher at extreme right */
.language-switcher-container {
  margin-left: 8px;
}
.donate-button {
  background: transparent;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
  font-family:
    'darkmode-on',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Helvetica Neue',
    Arial,
    sans-serif;
}
.donate-button::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  height: 1px;
  background-color: #374151;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.donate-button:hover {
  color: #111827;
}
.donate-button:hover::after {
  transform: scaleX(1);
}
.share-button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #374151;
  transition: background-color 0.2s ease;
  width: 50px;
  height: 50px;
}
.share-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.share-button img {
  filter: brightness(0) saturate(100%);
  transition: filter 0.2s ease;
}
/* Ensure navigation right section uses flexbox for proper alignment */
.navigation-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* ==================== DOCUMENTATION SHELL PANEL ==================== */
/* Documentation panel styling */
.docs-panel-header {
  padding: 8px 16px;
  border-bottom: 1px solid #e5e7eb;
}
.docs-panel-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* Documentation menu */
.docs-menu {
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
}
#docs-menu-list {
  margin: 0;
}
.doc-menu-item {
  cursor: pointer;
}
.doc-menu-item:hover {
  background-color: #f8f9fa;
}
.doc-menu-item[selected] {
  background-color: #3b82f6;
  color: white;
}
/* Documentation viewer */
.docs-viewer {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #ffffff;
}
.docs-placeholder {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
}
.docs-placeholder p {
  margin: 0;
  font-size: 0.875rem;
}
.docs-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  padding: 2rem;
}
.docs-error {
  padding: 1rem;
}
/* Documentation content styling within the panel */
.docs-viewer .doc-content-wrapper {
  padding: 0;
  max-width: none;
}
.docs-viewer .doc-content-wrapper .content-wrapper {
  padding: 0;
  max-width: none;
  line-height: 1.6;
}
.docs-viewer .doc-content-wrapper h1 {
  font-size: 1.75rem;
  margin: 0 0 1.5rem 0;
  color: #2c3e50;
  font-weight: 500;
}
.docs-viewer .doc-content-wrapper h2 {
  font-size: 1.375rem;
  margin: 2rem 0 1rem 0;
  color: #2c3e50;
  font-weight: 500;
}
.docs-viewer .doc-content-wrapper p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  color: #2c3e50;
}
.docs-viewer .doc-content-wrapper em {
  font-style: italic;
  color: #374151;
}
.docs-viewer .doc-content-wrapper strong {
  font-weight: 600;
  color: #2c3e50;
}
/* Responsive adjustments removed */
/* ==================== BASE LAYOUT ==================== */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: transparent !important;
  font-family:
    'darkmode-on',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Helvetica Neue',
    Arial,
    sans-serif;
  /* ✅ FIX: Prevent document overflow that allows unwanted pinch-zoom-out */
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}
/* Map on bottom layer - always visible */
#map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}
/* ==================== LEAFLET MAP STYLES ==================== */
/* Override default Leaflet control styles to match our design */
.leaflet-control-container {
  display: none; /* Hide default Leaflet controls - we use custom ones */
}
/* Custom marker cluster styles */
.marker-cluster {
  background-color: rgba(181, 226, 140, 0.6);
  border: 2px solid rgba(181, 226, 140, 0.8);
  border-radius: 20px;
  text-align: center;
  color: #333;
  font-weight: bold;
  font-size: 12px;
  width: 40px;
  height: 40px;
  line-height: 36px;
}
.marker-cluster-small {
  background-color: rgba(181, 226, 140, 0.6);
  border-color: rgba(181, 226, 140, 0.8);
}
.marker-cluster-medium {
  background-color: rgba(241, 211, 87, 0.6);
  border-color: rgba(241, 211, 87, 0.8);
}
.marker-cluster-large {
  background-color: rgba(253, 156, 115, 0.6);
  border-color: rgba(253, 156, 115, 0.8);
}
/* Custom marker styles - minimal base styling */
.custom-marker {
  cursor: pointer;
}
/* Custom marker styling is handled inline by JavaScript for precise control */
/* Selected state styling is handled by JavaScript icon recreation */
.custom-marker.playback div {
  /* Playback animation will be handled by JavaScript */
  animation: marker-pulse 2s infinite;
}
@keyframes marker-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}
/* ==================== FIXED LAYOUT STRUCTURE ==================== */
/* Shell structure removed - using fixed divs */
/* ==================== HEADER STYLES ==================== */
/* Header styles now applied to .fixed-header in arcgis-styles.css */
/* Custom navigation to control exact height */
.custom-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 50px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  position: relative; /* Add positioning context for hamburger menu */
}
.navigation-left {
  display: flex;
  align-items: center;
  height: 50px;
  gap: 0;
  flex: 1;
}
.navigation-right {
  display: flex;
  align-items: center;
  height: 50px;
  padding-right: 16px;
  gap: 8px;
}
#share-button {
  min-width: auto;
  padding: 4px 8px;
}
/* Unified menu button spanning hamburger icon + title */
.unified-menu-button {
  display: flex;
  align-items: center;
  height: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.unified-menu-button:hover {
  background: rgba(59, 130, 246, 0);
}
/* Hamburger icon section */
.hamburger-icon {
  width: 50px;
  height: 50px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.unified-menu-button:hover .hamburger-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
/* Title section */
.unified-menu-button .app-title {
  font-size: 16px;
  font-weight: 500;
  color: #151515;
  height: 49px;
  display: flex;
  align-items: center;
  padding-left: 12px;
}
/* ==================== SIDE PANEL STYLES ==================== */
/* Side panel styles now handled in arcgis-styles.css */
/* ==================== BOTTOM ACTION BAR ==================== */
.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 50px;
  z-index: 30;
  background: rgba(26, 32, 44, 0.95);
  border-top: 1px solid #374151;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  /* Fixed positioning - no transforms */
}
.action-bar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 100%;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  transition: max-width 0.3s ease;
}
.bottom-action-bar.labels-expanded .action-bar-container {
  max-width: 600px;
}
.bottom-action-bar .action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.2s ease;
  border-radius: 6px;
  width: 48px;
  height: 100%;
  position: relative;
}
.bottom-action-bar .action-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.bottom-action-bar .action-button.active {
  background-color: #3b82f6;
  color: #ffffff;
}
.bottom-action-bar .action-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottom-action-bar .action-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* Make SVGs white */
}
/* Remove the visible class behavior since BAB is always visible */
/* BAB Actions disabled state when no marker selected */
.bottom-action-bar.no-marker .action-button {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}
/* ✅ FIX: Optimize opacity changes to prevent layout shifts in mobile viewports */
.bottom-action-bar .action-button {
  will-change: opacity;
  transform: translateZ(0); /* Force hardware acceleration */
}
/* Panel collapse button - 5th icon in BAB */
.bottom-action-bar .panel-collapse-btn {
  color: #6b7280 !important;
}
.bottom-action-bar .panel-collapse-btn:hover {
  color: #3b82f6 !important;
}
/* BAB Labels and Toggle */
.action-label {
  font-size: clamp(12px, 2.5vw, 16px);
  font-weight: 300;
  color: #d1d5db;
  margin-left: 6px;
  white-space: nowrap;
  display: none;
  transition: opacity 0.3s ease;
}
.bottom-action-bar.labels-expanded .action-label {
  display: inline;
}
.bottom-action-bar.labels-expanded .action-button {
  flex-direction: row;
  align-items: center;
  padding: 8px 12px 8px 8px;
  min-width: auto;
  width: auto;
  white-space: nowrap;
}
.bab-toggle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.2s ease;
  border-radius: 6px;
  width: 48px;
  height: 100%;
  position: relative;
  margin-left: 0;
}
.bab-toggle-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.bab-toggle-button img {
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
  width: 24px;
  height: 24px;
}
.bab-toggle-button .action-label {
  display: none !important;
}
.bottom-action-bar.labels-expanded .bab-toggle-button img {
  transform: rotate(180deg);
}
/* ==================== MAP CONTROLS ACTION PAD ==================== */
.map-controls-container {
  position: fixed;
  top: 50%; /* Use % instead of vh to avoid viewport shifts */
  right: 20px; /* Fixed right margin */
  z-index: 30;
  pointer-events: auto;
  transform: translateY(-50%);
}
.basemap-option {
  cursor: pointer;
}
/* Clustering controls */
.clustering-controls {
  padding: 16px;
  width: 280px;
}
.clustering-presets {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* ==================== BAB SYSTEM ==================== */
/* BAB Fixed Footer (outside shell) */
.bab-fixed-footer {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  height: 50px !important;
  z-index: 1000 !important;
  background: #2b2b2b;
  border-top: 1px solid #444;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Mobile viewport fixes */
  transform: translateZ(0) !important; /* Force hardware acceleration */
  -webkit-transform: translateZ(0) !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Prevent any layout shifts */
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  /* Isolate from Calcite Shell positioning */
  contain: layout style !important;
  isolation: isolate !important;
  /* Override any Calcite transforms */
  transform-origin: center bottom !important;
}
/* BAB Action Bar (Fixed Footer) */
.bab-footer-bar {
  height: 50px !important;
  width: auto;
  max-width: fit-content;
  background: #2b2b2b;
  border-top: 1px solid #444;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}
/* Center the actions within the action bar */
.bab-footer-bar {
  display: flex !important;
  justify-content: center !important;
}
/* BAB Bottom Panel (Independent - True 100vw) */
.bab-bottom-panel {
  position: fixed !important;
  bottom: 50px !important; /* Position bottom edge at 50px (top of BAB) */
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important; /* Use native viewport width to prevent shifting */
  height: var(
    --viewport-22vh,
    22vh
  ) !important; /* Use viewport manager's stable 22vh calculation */
  margin: 0 !important;
  padding: 0 !important;
  background: #2b2b2b;
  border-top: 1px solid #444;
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* Prevent any dimension changes during transitions */
  will-change: opacity, transform;
  z-index: 25; /* Below BAB (z-index: 30) but above map content */
  box-sizing: border-box !important;
  transform: translateY(100%); /* Hidden by default */
  opacity: 0;
  /* Force correct positioning - override any conflicts */
  top: auto !important;
}
/* Show state for bottom panel */
.bab-bottom-panel.visible {
  transform: translateY(0);
  opacity: 1;
}
/* BAB Content Panel styling */
.bab-content-panel {
  width: 100% !important;
  height: 100% !important;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
}
/* Panel content containers should be full width and height */
.spectrogram-container,
.waveform-container,
.equalizer-container,
#realtime-spectrogram-container {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  overflow: hidden;
  max-height: none !important;
  box-sizing: border-box !important;
}
/* Shell padding removed - using fixed layout */
/* Panel content sections */
.panel-content {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
/* Spectrogram container - fills entire panel */
.spectrogram-container {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  height: 250px; /* Full panel height - no header */
  background: #1a1a1a;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box !important;
}
/* Static spectrogram (24h image) - fills container completely */
.static-spectrogram {
  position: absolute;
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box !important;
}
/* Time scale overlay - superposed on spectrogram */
.time-scale {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  z-index: 5;
  box-sizing: border-box;
}
/* Time markers for 24h spectrogram */
.time-marker {
  position: absolute;
  top: 2px;
  font-size: 11px;
  color: #d1d5db;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.hour-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.hour-stroke {
  width: 1px;
  background: #ffffff;
  opacity: 0.8;
}
.major-stroke {
  height: 8px;
  opacity: 1;
  width: 2px;
}
.minor-stroke {
  height: 4px;
  opacity: 0.6;
}
.hour-label {
  color: #ffffff;
  font-size: 12px;
  font-family:
    'darkmode-on',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin-top: 1px;
  line-height: 1;
}
/* ==================== CUSTOM BAB ICONS ==================== */
/* Icons are now handled via inline SVG in HTML - no CSS overrides needed */
/* Responsive BAB collapse behavior removed */
/* Device-specific fixes removed */
/* Spectrogram image - stretch to fill entire space */
.spectrogram-image {
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  object-fit: fill; /* Stretch to fill entire container */
  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box !important;
}
/* Time indicator line - dynamically positioned */
.time-indicator {
  position: absolute;
  top: 0;
  left: 0%;
  width: 2px;
  height: 100%;
  background: #22d3ee;
  z-index: 10;
  pointer-events: none;
  opacity: 0.8;
  box-shadow: 0 0 4px rgba(34, 211, 238, 0.5);
  transition: left 1s ease;
}
/* Real-time spectrogram canvas */
.realtime-spectrogram {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.realtime-canvas {
  width: 100%;
  height: 100%;
  background: #000000;
}
/* Ensure all BAB canvas elements stay within bounds */
.bab-content-panel canvas {
  max-width: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
}
/* ==================== HAMBURGER MENU STYLES ==================== */
#hamburger-menu .hamburger-container {
  display: flex;
  align-items: center;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
}
#hamburger-menu .hamburger-button {
  display: flex;
  align-items: center;
  height: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
}
#hamburger-menu .hamburger-button:hover {
  background: none;
}
#hamburger-menu .hamburger-icon {
  width: 50px;
  height: 50px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
#hamburger-menu .hamburger-icon img {
  filter: brightness(0) saturate(100%);
  transition: filter 0.2s ease;
}
#hamburger-menu .hamburger-button:hover .hamburger-icon {
  background-color: #e5e5e5;
}
#hamburger-menu .hamburger-button:hover .hamburger-icon img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%) hue-rotate(204deg)
    brightness(97%) contrast(96%);
}
#hamburger-menu .app-title {
  font-size: 20px;
  font-weight: 500;
  color: #151515;
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 12px;
}
#hamburger-menu .hamburger-container {
  position: relative;
}
#hamburger-menu .dropdown-content {
  position: absolute !important;
  top: 50px !important;
  left: 0 !important;
  width: 200px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #d4d4d8 !important;
  border-top: none !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}
/* ==================== MAGNIFYING GLASS STYLES ==================== */
.magnifying-glass {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}
/* Mobile magnifying glass - smaller size */
@media (max-width: 768px) {
  .magnifying-glass {
    width: 200px;
    height: 200px;
    border: 3px solid #ffffff;
    box-shadow:
      0 0 15px rgba(0, 0, 0, 0.5),
      inset 0 0 15px rgba(0, 0, 0, 0.2);
  }
}
.magnifying-glass.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.magnifying-glass .mini-map {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.magnifying-glass-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.magnifying-glass-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
/* ==================== MODAL STYLES ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  cursor: default;
}
.modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}
.modal-close img {
  filter: brightness(0) saturate(100%) invert(1);
  transition: filter 0.2s ease;
  width: 20px;
  height: 20px;
}
.close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
.close-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.close-button img {
  filter: brightness(0) saturate(100%);
  transition: filter 0.2s ease;
}
/* =============================================================================
   Interactive Tutorial System Styling
   ============================================================================= */
.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  pointer-events: none;
}
.tutorial-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  transition: clip-path 0.5s ease;
  /* Will be dynamically updated with clip-path to create spotlight cutout */
}
.tutorial-spotlight {
  position: absolute;
  background: transparent;
  border-radius: 8px;
  transition: all 0.5s ease;
  pointer-events: none;
  z-index: 10001;
  /* Remove box-shadow overlay to keep highlighted areas at full brightness */
}
.tutorial-tooltip {
  position: absolute;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  min-width: 300px;
  pointer-events: auto;
  z-index: 10002;
  border: 1px solid #e5e7eb;
}
.tutorial-content {
  padding: 24px;
}
.tutorial-title {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
}
.tutorial-text {
  margin: 0 0 20px 0;
  line-height: 1.5;
  color: #374151;
}
.tutorial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tutorial-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tutorial-step-counter {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
}
/* Responsive tutorial adjustments removed */
/* ==================== DOCUMENTATION MODAL ==================== */
/* Modal backdrop */
.docs-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.docs-modal-backdrop.visible {
  opacity: 1;
  visibility: visible;
}
/* Modal container */
.dropdown-docs-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 800px;
  max-width: 95vw;
  max-height: 85vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  z-index: 1001;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown-docs-panel.visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}
.docs-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
}
.docs-panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}
#close-dropdown-docs {
  background: white;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  transition: all 0.2s ease;
}
#close-dropdown-docs:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #9ca3af;
}
.docs-panel-content {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(var(--viewport-height, 100vh) * 0.85 - 80px);
  line-height: 1.6;
  color: #374151;
}
.docs-panel-content h1 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
  color: #1f2937;
  font-weight: 700;
}
.docs-panel-content h2 {
  margin-top: 28px;
  margin-bottom: 16px;
  font-size: 18px;
  color: #374151;
  font-weight: 600;
}
.docs-panel-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}
.docs-panel-content a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}
.docs-panel-content a:hover {
  text-decoration: underline;
}
.docs-panel-content .buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  justify-content: center;
  align-items: center;
}
.docs-panel-content .buttons form,
.docs-panel-content .buttons a {
  flex-shrink: 0;
}
/* Close button for panels */
.panel-close-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-width: 32px;
  min-height: 32px;
}
.panel-close-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}
.panel-close-button img {
  opacity: 1;
  transition: opacity 0.2s ease;
  filter: brightness(0) invert(1);
}
.panel-close-button:hover img {
  opacity: 1;
  filter: brightness(0) invert(1);
}
/* Responsive Design */
/* Large tablets and smaller desktops */
@media (max-width: 1024px) {
  #hamburger-menu .app-title {
    font-size: 18px;
  }

  .app-title {
    font-size: 18px;
  }
}
/* Medium tablets */
@media (max-width: 900px) {
  #hamburger-menu .app-title {
    font-size: 16px;
  }

  .app-title {
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  /* Hide BAB toggle button on small screens to prevent overflow */
  .bab-toggle-button {
    display: none !important;
  }

  /* Hide SAB (Side Action Bar) completely on mobile */
  .fixed-side-panel {
    display: none !important;
  }

  /* Show mobile info button in BAB on mobile */
  #info-action-mobile {
    display: flex !important;
  }

  /* Hide info button label on mobile - show only icon */
  #info-action-mobile .action-label {
    display: none !important;
  }

  /* Ensure BAB canvas is positioned correctly on mobile */
  .bab-bottom-panel {
    bottom: 50px !important; /* Force positioning above BAB */
    top: auto !important;
    height: var(--viewport-22vh, 22vh) !important; /* Use viewport manager's stable calculation */
    transition: none !important; /* Disable transitions on mobile to prevent shifts */
  }

  /* Ensure BAB labels are hidden on small screens */
  .bottom-action-bar.labels-expanded .action-label {
    display: none !important;
  }

  /* Force BAB to stay collapsed on small screens */
  .bottom-action-bar.labels-expanded .action-bar-container {
    width: auto !important;
  }

  /* ✅ UPDATED: Use 35vw as requested - map controls are now properly locked */
  .fixed-side-panel[data-collapsed='false'] {
    width: 35vw !important;
    max-width: 350px !important;
    min-width: 250px !important;
  }

  /* ✅ FIX: Disable width transitions in mobile to prevent position shifting */
  .fixed-side-panel {
    transition: none !important;
  }

  /* Responsive typography for information panel - reduce all font sizes */
  .panel-header h3 {
    font-size: 12px !important;
  }

  /* Override inline styles for dynamic content - smaller fonts */
  .panel-body h3,
  .panel-body [style*='font-size: 18px'] {
    font-size: 14px !important;
  }

  .panel-body div,
  .panel-body [style*='font-size: 14px'] {
    font-size: 11px !important;
  }

  /* Force smaller fonts on all text elements */
  .panel-body * {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  /* Reduce padding and margins significantly */
  .panel-body {
    padding: 8px !important;
    overflow-y: hidden !important; /* Prevent scrolling */
  }

  .panel-body > div {
    margin-bottom: 6px !important;
  }

  .panel-body [style*='padding: 12px'] {
    padding: 4px !important;
  }

  /* Ensure icons and images are smaller */
  .panel-body img {
    width: 16px !important;
    height: 16px !important;
  }

  /* BAB Info Container - reduce all font sizes significantly */
  .info-container-bab * {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .info-container-bab h3 {
    font-size: 12px !important;
    margin: 4px 0 !important;
  }

  .info-container-bab h4 {
    font-size: 11px !important;
    margin: 3px 0 !important;
  }

  .info-container-bab div {
    margin-bottom: 4px !important;
    padding: 2px !important;
  }

  .info-container-bab {
    padding: 8px !important;
  }

  /* BAB panel content - reduce all text elements */
  .bab-content-panel * {
    font-size: 10px !important;
  }

  .bab-content-panel h3 {
    font-size: 12px !important;
  }

  .bab-content-panel h4 {
    font-size: 11px !important;
  }

  /* Responsive map controls positioning */
  .map-controls-container {
    right: 2vw !important;
  }

  /* Responsive title font size for mobile */
  #hamburger-menu .app-title {
    font-size: 14px !important;
  }

  .app-title {
    font-size: 14px !important;
  }

  /* Responsive donate button font size for mobile */
  .donate-button {
    font-size: 14px !important;
  }

  /* Reduce spacing between header buttons on mobile */
  .header-right {
    gap: 0 !important;
  }
}
@media (max-width: 480px) {
  /* Hide SAB (Side Action Bar) completely on small mobile too */
  .fixed-side-panel {
    display: none !important;
  }

  /* Show mobile info button in BAB on small mobile */
  #info-action-mobile {
    display: flex !important;
  }

  /* Hide info button label on small mobile - show only icon */
  #info-action-mobile .action-label {
    display: none !important;
  }

  /* Ensure BAB canvas is positioned correctly on small mobile */
  .bab-bottom-panel {
    bottom: 50px !important; /* Force positioning above BAB */
    top: auto !important;
    height: var(--viewport-22vh, 22vh) !important; /* Use viewport manager's stable calculation */
    transition: none !important; /* Disable transitions on small mobile to prevent shifts */
  }

  /* Smaller fonts for mobile */
  .panel-header h3 {
    font-size: 12px !important;
  }

  .panel-body h3,
  .panel-body [style*='font-size: 18px'],
  .panel-body [style*='font-size: 16px'] {
    font-size: 14px !important;
  }

  .panel-body div,
  .panel-body [style*='font-size: 14px'],
  .panel-body [style*='font-size: 12px'] {
    font-size: 11px !important;
  }

  /* Even smaller padding for mobile */
  .panel-body > div {
    margin-bottom: 8px !important;
  }

  .panel-body [style*='padding: 12px'],
  .panel-body [style*='padding: 8px'] {
    padding: 6px !important;
  }

  /* BAB Info Container - extra small fonts for tiny screens */
  .info-container-bab * {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  .info-container-bab h3 {
    font-size: 11px !important;
    margin: 2px 0 !important;
  }

  .info-container-bab h4 {
    font-size: 10px !important;
    margin: 2px 0 !important;
  }

  /* Force 4:3 aspect ratio for BAB info container image */
  .info-container-bab .info-image {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: 4/3 !important;
  }

  .info-container-bab .info-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 4px !important;
  }

  .info-container-bab {
    padding: 6px !important;
  }

  /* BAB panel content - extra small fonts */
  .bab-content-panel * {
    font-size: 9px !important;
  }

  .bab-content-panel h3 {
    font-size: 11px !important;
  }

  .bab-content-panel h4 {
    font-size: 10px !important;
  }

  /* Responsive title font size for small mobile */
  #hamburger-menu .app-title {
    font-size: 12px !important;
  }

  .app-title {
    font-size: 12px !important;
  }

  /* Responsive donate button font size for small mobile */
  .donate-button {
    font-size: 12px !important;
  }

  /* Reduce spacing between header buttons on small mobile */
  .header-right {
    gap: 0 !important;
  }
}
/* Responsive adjustments removed */
/* Smooth transitions for theme changes */
.bab-bottom-panel {
  transition:
    border-top-color 0.5s ease,
    box-shadow 0.5s ease !important;
}
.bab-bottom-panel::before {
  transition: background 0.5s ease;
}
/* Canvas positioning adjustments for different themes */
.bab-bottom-panel[data-canvas-theme='forest'] {
  transform: translateY(-2px);
}
.bab-bottom-panel[data-canvas-theme='urban'] {
  transform: translateY(2px);
}
.bab-bottom-panel[data-canvas-theme='water'] {
  transform: translateY(0px);
}
/* ==================== EDITOR MODE TIME CONTROLS ==================== */
.editor-time-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: rgba(26, 32, 44, 0.95);
  border-radius: 6px;
  height: 44px;
  margin-left: 12px;
  border: 1px solid rgba(96, 202, 255, 0.3);
}
.time-label {
  font-size: 13px;
  color: #d1d5db;
  font-weight: 500;
  white-space: nowrap;
}
.time-input {
  width: 95px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: #ffffff;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 14px;
  text-align: center;
  transition: all 0.2s ease;
}
.time-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.time-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}
.seek-button {
  padding: 8px 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}
.seek-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}
.seek-button:active {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(0px);
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.3);
}
.seek-button svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.current-time-display {
  font-size: 15px;
  font-family: 'Courier New', Consolas, monospace;
  color: #10b981;
  font-weight: 600;
  min-width: 85px;
  text-align: center;
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.time-input.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  animation: shake 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}
/* Responsive editor controls for mobile */
@media (max-width: 768px) {
  .editor-time-controls {
    gap: 6px;
    padding: 0 10px;
    height: 40px;
    margin-left: 8px;
  }

  .time-label {
    font-size: 11px;
  }

  .time-input {
    width: 75px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .seek-button {
    padding: 6px 8px;
  }

  .seek-button svg {
    width: 16px;
    height: 16px;
  }

  .current-time-display {
    font-size: 13px;
    min-width: 70px;
    padding: 5px 8px;
  }
}
/* ==================== DOCUMENTATION STYLES ==================== */
/* Elegant, sober styling for Colombia Soundmap documentation */

:root {
    --doc-color-primary: #2c3e50;
    --doc-color-secondary: #34495e;
    --doc-color-accent: #3498db;
    --doc-color-text: #2c3e50;
    --doc-color-text-light: #7f8c8d;
    --doc-color-background: #ffffff;
    --doc-color-background-alt: #f8f9fa;
    --doc-color-border: #e9ecef;
    --doc-color-border-light: #f1f3f4;
    
    --doc-font-family: 'darkmode-on', Georgia, 'Times New Roman', Times, serif;
    --doc-font-family-mono: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    
    --doc-spacing-xs: 0.5rem;
    --doc-spacing-sm: 1rem;
    --doc-spacing-md: 1.5rem;
    --doc-spacing-lg: 2rem;
    --doc-spacing-xl: 3rem;
    
    --doc-border-radius: 0.375rem;
    --doc-shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --doc-shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Base typography */
html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: var(--doc-font-family);
    color: var(--doc-color-text);
    background-color: var(--doc-color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main content container */
.doc-content,
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--doc-spacing-xl) var(--doc-spacing-lg);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .doc-content,
    .content-wrapper {
        padding: var(--doc-spacing-lg) var(--doc-spacing-md);
    }
}

/* Header styling */
.doc-header {
    text-align: center;
    margin-bottom: var(--doc-spacing-xl);
    padding-bottom: var(--doc-spacing-lg);
    border-bottom: 2px solid var(--doc-color-border-light);
}

.doc-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--doc-color-primary);
    margin: 0 0 var(--doc-spacing-sm) 0;
    letter-spacing: -0.025em;
}

.doc-subtitle {
    font-size: 1.125rem;
    color: var(--doc-color-text-light);
    font-weight: 400;
    margin: 0;
    font-style: italic;
}

/* Section styling */
.doc-section {
    margin-bottom: var(--doc-spacing-xl);
}

.doc-section:last-child {
    margin-bottom: 0;
}

/* Typography */
h2 {
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--doc-color-primary);
    margin: var(--doc-spacing-lg) 0 var(--doc-spacing-md) 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--doc-color-secondary);
    margin: var(--doc-spacing-md) 0 var(--doc-spacing-sm) 0;
    line-height: 1.4;
}

p {
    margin: var(--doc-spacing-sm) 0;
    color: var(--doc-color-text);
    font-size: 1rem;
    line-height: 1.7;
}

/* Lists */
ul, ol {
    margin: var(--doc-spacing-sm) 0;
    padding-left: var(--doc-spacing-lg);
}

li {
    margin: var(--doc-spacing-xs) 0;
    line-height: 1.6;
}

ul li {
    list-style-type: disc;
}

/* Special list styles */
.equipment-list li {
    margin: var(--doc-spacing-sm) 0;
    padding: var(--doc-spacing-xs) 0;
}

/* Specification table */
.spec-table {
    background: var(--doc-color-background-alt);
    border: 1px solid var(--doc-color-border);
    border-radius: var(--doc-border-radius);
    padding: var(--doc-spacing-md);
    margin: var(--doc-spacing-md) 0;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--doc-spacing-xs) 0;
    border-bottom: 1px solid var(--doc-color-border-light);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: var(--doc-color-secondary);
    font-size: 0.9rem;
}

.spec-value {
    font-family: var(--doc-font-family-mono);
    font-size: 0.875rem;
    color: var(--doc-color-accent);
    font-weight: 500;
}

/* Tech stack grid */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--doc-spacing-lg);
    margin: var(--doc-spacing-md) 0;
}

.tech-category {
    background: var(--doc-color-background-alt);
    border: 1px solid var(--doc-color-border);
    border-radius: var(--doc-border-radius);
    padding: var(--doc-spacing-md);
}

.tech-category h3 {
    margin-top: 0;
    color: var(--doc-color-primary);
    font-size: 1.125rem;
}

.tech-category ul {
    margin-bottom: 0;
}

.tech-category li {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contribution methods */
.contribution-methods {
    display: grid;
    gap: var(--doc-spacing-lg);
    margin: var(--doc-spacing-md) 0;
}

.contribution-item {
    background: var(--doc-color-background-alt);
    border-left: 4px solid var(--doc-color-accent);
    padding: var(--doc-spacing-md);
    border-radius: 0 var(--doc-border-radius) var(--doc-border-radius) 0;
}

.contribution-item h3 {
    margin-top: 0;
    color: var(--doc-color-primary);
    font-size: 1.125rem;
}

.contribution-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Guide items */
.guide-item {
    margin: var(--doc-spacing-lg) 0;
    padding: var(--doc-spacing-md);
    background: var(--doc-color-background-alt);
    border-radius: var(--doc-border-radius);
    border: 1px solid var(--doc-color-border);
}

.guide-item h3 {
    margin-top: 0;
    color: var(--doc-color-primary);
    font-size: 1.125rem;
}

.guide-item p:last-child,
.guide-item ul:last-child {
    margin-bottom: 0;
}

/* Contact info */
.contact-info {
    background: var(--doc-color-background-alt);
    border: 1px solid var(--doc-color-border);
    border-radius: var(--doc-border-radius);
    padding: var(--doc-spacing-md);
    margin: var(--doc-spacing-md) 0;
}

.contact-info p {
    margin: var(--doc-spacing-xs) 0;
    font-size: 0.95rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Emphasis and strong text */
strong {
    font-weight: 600;
    color: var(--doc-color-secondary);
}

em {
    font-style: italic;
    color: var(--doc-color-text-light);
}

/* Links */
a {
    color: var(--doc-color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

a:hover {
    border-bottom-color: var(--doc-color-accent);
}

/* Code elements */
code {
    font-family: var(--doc-font-family-mono);
    font-size: 0.875rem;
    background: var(--doc-color-background-alt);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    color: var(--doc-color-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .doc-header h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--doc-spacing-xs);
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .doc-content {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .doc-header {
        border-bottom: 2px solid #000;
    }
    
    h2 {
        page-break-after: avoid;
    }
    
    .doc-section {
        page-break-inside: avoid;
    }
}