/* Modern, Bootstrap-inspired styles for the vertical level selection bar */

.level-bar-bootstrap {
  position: absolute;
  top: 100px;
  left: 32px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(42, 42, 42, 0.85);
  /* Cesium infoBox dark background */
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid #444;
  padding: 1.2rem 0.8rem;
  min-width: 60px;
  max-width: 120px;
  backdrop-filter: blur(4px);
  /* Restrict height to avoid overlapping with bottom controls */
  max-height: calc(100vh - 450px);
  /* Enable vertical scrolling if content exceeds max-height */
  overflow-y: auto;
  /* Thin scrollbar for Firefox */
  scrollbar-width: thin;
}

/* Custom scrollbar styling for Webkit browsers (Chrome, Safari) */
.level-bar-bootstrap::-webkit-scrollbar {
  width: 6px;
}

.level-bar-bootstrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.level-bar-bootstrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.level-bar-bootstrap::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.level-bar-bootstrap .level-btn {
  margin: 0.3rem 0;
  width: 100%;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  color: #fff;
  background: rgba(60, 60, 60, 0.85);
  border: 1px solid #666;
}

.level-bar-bootstrap .level-btn.active,
.level-bar-bootstrap .level-btn:focus {
  background: #00bfff;
  color: #fff;
  border-color: #00bfff;
  box-shadow: 0 2px 8px rgba(0, 191, 255, 0.15);
}

.level-bar-bootstrap .level-btn:hover {
  background: #222;
  color: #00bfff;
}

@media (max-width: 600px) {
  .level-bar-bootstrap {
    left: 8px;
    top: 8px;
    padding: 0.5rem 0.3rem;
    min-width: 40px;
    max-width: 80px;
  }
}
