/* HCMUT 3D Map Theme — Clean Light Matte Surface (Made by Nhật Trung) */
:root {
  --bg-canvas: #0f172a;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --border: #e2e8f0;
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg-canvas);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

#viewport.crosshair-cursor {
  cursor: crosshair;
}

#viewport:active {
  cursor: grabbing;
}

.panel-surface {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.14);
}

.segmented {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.seg-btn {
  flex: 1;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.seg-btn:hover {
  color: #0f172a;
}

.seg-btn.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.nav-tab {
  position: relative;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  transition: color 0.15s ease;
}

.nav-tab:hover {
  color: #0f172a;
}

.nav-tab.active {
  color: #0f172a;
  font-weight: 600;
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: var(--accent);
}

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

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

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#sidebarDrawer {
  transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.18s ease;
}

#sidebarDrawer.collapsed {
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 639px) {
  #sidebarDrawer.collapsed {
    transform: translateY(115%);
  }
}

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

input[type="range"] {
  accent-color: #2563eb;
}
