/* Toolbar */
.toolbar {
    background-color: white;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    width: fit-content;
    border-top: 2px solid lightskyblue;
    position: absolute;
    z-index: 4;
    bottom: 15px;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    left: 50%;
  }
  
  .toolbar-item {
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
  }
  
  .toolbar-item:hover {
    background-color: #f0f0f0;
  }
  
  .toolbar-item.selected {
    background-color: lightskyblue;
    color: white;
  }
  
  /* New style for flight/orbit controls */
  .toolbar-item.control-selected {
    background-color: rgba(0, 150, 255, 0.3);
    color: #00ffff;
  }
  
  .toggle-switch {
    width: 40px;
    height: 20px;
    background-color: lightgreen;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
  }
  
  .toggle-switch::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: left 0.2s;
  }
  
  .toggle-switch.active {
    background-color: green;
  }
  
  .toggle-switch.active::after {
    left: 22px;
  }

  /* Tooltip styles */
  .toolbar-item .tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    margin-bottom: 8px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s;
  }

  .toolbar-item .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
  }

  .toolbar-item:hover .tooltip {
    visibility: visible;
    opacity: 1;
  }

  .toolbar-item .tooltip-title {
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
  }

  .toolbar-item .tooltip-description {
    font-size: 12px;
    opacity: 0.9;
  }

  .toolbar-item .toolbar-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  .toolbar-item .toolbar-icon svg {
    width: 100%;
    height: 100%;
  }