body {
  padding: 50px;
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

a {
  color: #00b7ff;
}

/* Building Search Box Styles */
.building-search-container {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 300px;
  z-index: 10000;
  font-family: Arial, sans-serif;
}

.building-search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.building-search-input:focus {
  border-color: #007bff;
  box-shadow: 0 2px 12px rgba(0, 123, 255, 0.15);
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 2px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10001;
}

.search-dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover {
  background-color: #f8f9fa;
}

.search-dropdown-item.no-results {
  cursor: default;
  color: #6c757d;
  font-style: italic;
}

.search-dropdown-item.no-results:hover {
  background-color: white;
}

/* Hide all Cesium default toolbar elements */
.cesium-viewer-toolbar,
.cesium-button,
.cesium-toolbar-button,
.cesium-navigation-help-button,
.cesium-home-button,
.cesium-scene3DPickerWrapper,
.cesium-baseLayerPickerDropDown,
.cesium-vrButton {
  display: none !important;
}

/* Ensure our custom controls have proper z-index */
.building-search-container,
.sidebar-toggle-btn,
.map-sidebar {
  z-index: 10000 !important;
}

/* State Management UI Effects */
.view-2d-button.attention {
  animation: attention-pulse 0.6s ease-in-out 3;
  border-color: #ff6b35 !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

.view-2d-button.processing {
  opacity: 0.7;
  cursor: not-allowed;
}

.view-2d-button.processing::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid #ccc;
  border-top: 2px solid #007acc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes attention-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
