* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1e1e1e;
}

/* Header & Tabs */
.app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(31, 78, 121, 0.95);
  backdrop-filter: blur(5px);
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.brand {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 6px;
}

.tab-container {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.tab-btn {
  flex: 1;
  max-width: 120px;
  padding: 6px 0;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.tab-btn.active {
  background: #ffc000;
  color: #000;
  border-color: #ffc000;
}

/* Map */
#map {
  width: 100%;
  height: 100%;
}

/* GPS Button */
.gps-btn {
  position: absolute;
  right: 16px;
  bottom: 240px;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-size: 20px;
  cursor: pointer;
}

/* Bottom Sheet */
.bottom-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: #ffffff;
  z-index: 1000;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}

.panel-header {
  padding: 8px 16px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.drag-handle {
  width: 40px;
  height: 4px;
  background: #ccc;
  border-radius: 2px;
  margin: 0 auto 6px;
}

.panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f4e79;
}

.panel-body {
  flex: 1;
  padding: 8px 12px;
  overflow-y: auto;
}

/* Chart Canvas Responsive */
.chart-container {
  position: relative;
  width: 100%;
  height: 140px;
}