body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: sans-serif;
  background: #000;
}

#map {
  width: 100%;
  height: 100%;
  background: #000;
}

/* Loading Indicator */
#loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 16px;
  display: none;
  pointer-events: none;
  border: 1px solid #555;
}

#loading-indicator.visible {
  display: block;
}

/* Controls Sidebar */
#controls {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.95);
  color: #eee;
  padding: 0;
  border-radius: 4px;
  width: 300px;
  max-height: calc(100% - 60px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border: 1px solid #444;
  transition: transform 0.3s ease;
}

#controls.collapsed {
  transform: translateX(-310px);
}

/* Sidebar Toggle Button */
#sidebar-toggle {
  position: absolute;
  top: 10px;
  left: 320px;
  z-index: 1001;
  background: #333;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: left 0.3s ease;
}

#sidebar-toggle.collapsed {
  left: 10px;
}

.welcome-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
}

.welcome-modal {
  background: #111;
  color: #eee;
  border: 1px solid #444;
  border-radius: 8px;
  width: 420px;
  max-width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  padding: 20px;
  text-align: center;
}

.welcome-modal img {
  height: 64px;
  margin-bottom: 10px;
}

.welcome-modal h2 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.welcome-modal p {
  margin: 6px 0;
  font-size: 14px;
  color: #ccc;
}

.welcome-modal a {
  color: #8ec5ff;
  text-decoration: none;
}

.welcome-modal button {
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.control-header {
  padding: 12px;
  background: #333;
  border-bottom: 1px solid #444;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Layer List */
#layer-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.layer-item-container {
  border-bottom: 1px solid #333;
  padding: 6px 0;
}

.layer-item-container:last-child {
  border-bottom: none;
}

.layer-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
  padding-bottom: 4px;
}

.layer-item input {
  margin-right: 10px;
  cursor: pointer;
}

.layer-item:hover {
  color: #fff;
}

.layer-slider {
  padding-left: 24px;
  padding-right: 10px;
}

.layer-slider input {
  width: 100%;
  cursor: pointer;
}

.error-msg {
  color: #ff6b6b;
  padding: 10px;
  font-size: 12px;
}

/* Tools Section */
.tool-section {
  padding: 10px;
}

.tool-section.border-bottom {
  border-bottom: 1px solid #444;
}

.tool-btn {
  width: 100%;
  padding: 8px;
  background: #444;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 5px;
}

.tool-btn:hover {
  background: #555;
}

.tool-btn.active {
  background: #1098ad;
  /* Default active color, can be overridden */
}

/* North Arrow */
.north-arrow-control {
  width: var(--north-arrow-size, 72px);
  height: var(--north-arrow-size, 72px);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.15));
  border: 1px solid #555;
  border-radius: 8px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  margin-bottom: 6px;
  margin-right: 6px;
}

.north-arrow-rose {
  width: 80%;
  height: 80%;
}

.north-arrow-needle {
  fill: #f03e3e;
}

.north-arrow-ring {
  stroke: #ddd;
  stroke-width: 2;
  fill: rgba(0, 0, 0, 0.25);
}

.north-arrow-cardinal {
  font: 700 14px 'Segoe UI', sans-serif;
  fill: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.north-arrow-reset {
  margin-top: 6px;
  font: 12px 'Segoe UI', sans-serif;
  color: #ddd;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #555;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}

.north-arrow-reset:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Style Editor */
#style-editor {
  position: absolute;
  z-index: 2000;
  background: #222;
  border: 1px solid #555;
  padding: 10px;
  color: #fff;
  display: none;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  width: 200px;
}

.style-field {
  margin-bottom: 5px;
  font-size: 12px;
}

.style-field label {
  display: block;
  margin-bottom: 2px;
}

.style-field input[type="color"] {
  width: 100%;
  height: 25px;
  border: none;
}

.style-field input[type="range"] {
  width: 100%;
}

/* Search Bar */
.search-bar-wrapper {
  position: relative;
  display: flex;
  gap: 5px;
}

#jmars-search-input {
  flex: 1;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
}

#jmars-bookmark-btn {
  padding: 6px 10px;
  background: #444;
  border: 1px solid #555;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

#jmars-search-results {
  position: absolute;
  top: 35px;
  left: 0;
  right: 0;
  background: #222;
  border: 1px solid #555;
  border-radius: 4px;
  display: none;
  z-index: 3000;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-header {
  padding: 5px 10px;
  background: #333;
  font-size: 11px;
  color: #aaa;
}

.search-result-item {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #333;
}

.search-result-item:hover {
  background: #444;
}

/* Crater Table */
.crater-table-container {
  max-height: 200px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  padding: 5px;
}

.crater-table {
  width: 100%;
  border-collapse: collapse;
}

.crater-table th {
  border-bottom: 1px solid #555;
  text-align: left;
}

.crater-table tr {
  border-bottom: 1px solid #333;
}

.crater-btn-group {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.crater-action-btn {
  flex: 1;
  padding: 4px;
  color: #fff;
  border: 1px solid #555;
  cursor: pointer;
  font-size: 11px;
}

/* Accordion Styles */
.accordion-section {
  border-bottom: 1px solid #444;
  display: flex;
  flex-direction: column;
  /* Default collapsed state handled by content visibility */
}

.accordion-section:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 12px;
  background: #333;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.accordion-header:hover {
  background: #3a3a3a;
}

.accordion-header::after {
  content: '+';
  font-weight: normal;
  color: #aaa;
}

.accordion-section.expanded .accordion-header::after {
  content: '-';
}

.accordion-content {
  display: none;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  /* Allow it to grow if parent is flex column */
  background: rgba(0, 0, 0, 0.2);
}

.accordion-section.expanded .accordion-content {
  display: block;
  /* If we want it to fill remaining height, we need the parent #controls to handle flex correctly */
}

/* Adjust #controls to support full height expansion */
#controls {
  /* Existing styles... */
  display: flex;
  flex-direction: column;
}

/* When a section is expanded, make it take available space */
.accordion-section.expanded {
  flex: 1;
  overflow: hidden;
  /* Contain the scrollable content */
}

.accordion-section.expanded .accordion-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.mosaic-catalog {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mosaic-header {
  font-weight: bold;
  font-size: 13px;
  color: #eee;
}

.mosaic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mosaic-card {
  display: flex;
  gap: 10px;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 8px;
}

.mosaic-thumb {
  width: 72px;
  height: 72px;
  background: #222 center center / cover no-repeat;
  border-radius: 4px;
  flex-shrink: 0;
}

.mosaic-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mosaic-title {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.mosaic-desc {
  font-size: 12px;
  color: #aaa;
  line-height: 1.2;
}

.mosaic-activate-btn {
  align-self: flex-start;
  font-size: 11px;
  padding: 4px 8px;
}

.bookmarks-block {
  padding: 10px 0;
  border-top: 1px solid #333;
  margin-top: 10px;
}

.bookmarks-block h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #eee;
}

/* Status Bar */
#status-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: rgba(20, 20, 20, 0.95);
  border-top: 1px solid #444;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #eee;
  font-size: 12px;
  z-index: 1000;
  gap: 20px;
}

.status-item {
  width: 100%;
  height: 25px;
  border: none;
}

.style-field input[type="range"] {
  width: 100%;
}

/* Search Bar */
.search-bar-wrapper {
  position: relative;
  display: flex;
  gap: 5px;
}

#jmars-search-input {
  flex: 1;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
}

#jmars-bookmark-btn {
  padding: 6px 10px;
  background: #444;
  border: 1px solid #555;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

#jmars-search-results {
  position: absolute;
  top: 35px;
  left: 0;
  right: 0;
  background: #222;
  border: 1px solid #555;
  border-radius: 4px;
  display: none;
  z-index: 3000;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-header {
  padding: 5px 10px;
  background: #333;
  font-size: 11px;
  color: #aaa;
}

.search-result-item {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #333;
}

.search-result-item:hover {
  background: #444;
}

/* Crater Table */
.crater-table-container {
  max-height: 200px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  padding: 5px;
}

.crater-table {
  width: 100%;
  border-collapse: collapse;
}

.crater-table th {
  border-bottom: 1px solid #555;
  text-align: left;
}

.crater-table tr {
  border-bottom: 1px solid #333;
}

.crater-btn-group {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.crater-action-btn {
  flex: 1;
  padding: 4px;
  color: #fff;
  border: 1px solid #555;
  cursor: pointer;
  font-size: 11px;
}

/* Accordion Styles */
.accordion-section {
  border-bottom: 1px solid #444;
  display: flex;
  flex-direction: column;
  /* Default collapsed state handled by content visibility */
}

.accordion-section:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 12px;
  background: #333;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.accordion-header:hover {
  background: #3a3a3a;
}

.accordion-header::after {
  content: '+';
  font-weight: normal;
  color: #aaa;
}

.accordion-section.expanded .accordion-header::after {
  content: '-';
}

.accordion-content {
  display: none;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  /* Allow it to grow if parent is flex column */
  background: rgba(0, 0, 0, 0.2);
}

.accordion-section.expanded .accordion-content {
  display: block;
  /* If we want it to fill remaining height, we need the parent #controls to handle flex correctly */
}

/* Adjust #controls to support full height expansion */
#controls {
  /* Existing styles... */
  display: flex;
  flex-direction: column;
}

/* When a section is expanded, make it take available space */
.accordion-section.expanded {
  flex: 1;
  overflow: hidden;
  /* Contain the scrollable content */
}

.accordion-section.expanded .accordion-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

/* Status Bar */
#status-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: rgba(20, 20, 20, 0.95);
  border-top: 1px solid #444;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #eee;
  font-size: 12px;
  z-index: 1000;
  gap: 20px;
}

.status-item {
  display: flex;
  align-items: center;
}

/* Adjust map height to account for status bar */
#map {
  height: calc(100% - 30px);
}

/* Search Bar */
.search-bar-wrapper {
  position: relative;
  display: flex;
  gap: 5px;
}

#jmars-search-input {
  flex: 1;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
}

#jmars-bookmark-btn {
  padding: 6px 10px;
  background: #444;
  border: 1px solid #555;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

#jmars-search-results {
  position: absolute;
  top: 35px;
  left: 0;
  right: 0;
  background: #222;
  border: 1px solid #555;
  border-radius: 4px;
  display: none;
  z-index: 3000;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-header {
  padding: 5px 10px;
  background: #333;
  font-size: 11px;
  color: #aaa;
}

.search-result-item {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #333;
}

.search-result-item:hover {
  background: #444;
}

/* Crater Table */
.crater-table-container {
  max-height: 200px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  padding: 5px;
}

.crater-table {
  width: 100%;
  border-collapse: collapse;
}

.crater-table th {
  border-bottom: 1px solid #555;
  text-align: left;
}

.crater-table tr {
  border-bottom: 1px solid #333;
}

.crater-btn-group {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.crater-action-btn {
  flex: 1;
  padding: 4px;
  color: #fff;
  border: 1px solid #555;
  cursor: pointer;
  font-size: 11px;
}

/* Accordion Styles */
.accordion-section {
  border-bottom: 1px solid #444;
  display: flex;
  flex-direction: column;
  /* Default collapsed state handled by content visibility */
}

.accordion-section:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 12px;
  background: #333;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.accordion-header:hover {
  background: #3a3a3a;
}

.accordion-header::after {
  content: '+';
  font-weight: normal;
  color: #aaa;
}

.accordion-section.expanded .accordion-header::after {
  content: '-';
}

.accordion-content {
  display: none;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  /* Allow it to grow if parent is flex column */
  background: rgba(0, 0, 0, 0.2);
}

.accordion-section.expanded .accordion-content {
  display: block;
  /* If we want it to fill remaining height, we need the parent #controls to handle flex correctly */
}

/* Adjust #controls to support full height expansion */
#controls {
  /* Existing styles... */
  display: flex;
  flex-direction: column;
}

/* When a section is expanded, make it take available space */
.accordion-section.expanded {
  flex: 1;
  overflow: hidden;
  /* Contain the scrollable content */
}

.accordion-section.expanded .accordion-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

/* Status Bar */
#status-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: rgba(20, 20, 20, 0.95);
  border-top: 1px solid #444;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #eee;
  font-size: 12px;
  z-index: 1000;
  gap: 20px;
}

.status-item {
  display: flex;
  align-items: center;
}

/* Adjust map height to account for status bar */
#map {
  height: calc(100% - 30px);
}

/* Panner (Overview Map) */
#jmars-panner {
  position: absolute;
  bottom: 60px;
  right: 20px;
  width: 240px;
  height: 170px;
  padding: 8px;
  background: #000;
  border: 1px solid #555;
  border-radius: 6px;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

#jmars-panner.visible {
  display: block;
}

/* Custom Leaflet Controls */
.leaflet-bar a.reset-view-btn,
.leaflet-bar a.north-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #fff;
  border-bottom: 1px solid #ccc;
  color: #333;
  text-decoration: none;
}

display: none;
z-index: 3000;
max-height: 300px;
overflow-y: auto;
}

.search-result-header {
  padding: 5px 10px;
  background: #333;
  font-size: 11px;
  color: #aaa;
}

.search-result-item {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #333;
}

.search-result-item:hover {
  background: #444;
}

/* Crater Table */
.crater-table-container {
  max-height: 200px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  padding: 5px;
}

.crater-table {
  width: 100%;
  border-collapse: collapse;
}

.crater-table th {
  border-bottom: 1px solid #555;
  text-align: left;
}

.crater-table tr {
  border-bottom: 1px solid #333;
}

.crater-btn-group {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.crater-action-btn {
  flex: 1;
  padding: 4px;
  color: #fff;
  border: 1px solid #555;
  cursor: pointer;
  font-size: 11px;
}

/* Accordion Styles */
.accordion-section {
  border-bottom: 1px solid #444;
  display: flex;
  flex-direction: column;
  /* Default collapsed state handled by content visibility */
}

.accordion-section:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 12px;
  background: #333;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.accordion-header:hover {
  background: #3a3a3a;
}

.accordion-header::after {
  content: '+';
  font-weight: normal;
  color: #aaa;
}

.accordion-section.expanded .accordion-header::after {
  content: '-';
}

.accordion-content {
  display: none;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  /* Allow it to grow if parent is flex column */
  background: rgba(0, 0, 0, 0.2);
}

.accordion-section.expanded .accordion-content {
  display: block;
  /* If we want it to fill remaining height, we need the parent #controls to handle flex correctly */
}

/* Adjust #controls to support full height expansion */
#controls {
  /* Existing styles... */
  display: flex;
  flex-direction: column;
}

/* When a section is expanded, make it take available space */
.accordion-section.expanded {
  flex: 1;
  overflow: hidden;
  /* Contain the scrollable content */
}

.accordion-section.expanded .accordion-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

/* Status Bar */
#status-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: rgba(20, 20, 20, 0.95);
  border-top: 1px solid #444;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #eee;
  font-size: 12px;
  z-index: 1000;
  gap: 20px;
}

.status-item {
  display: flex;
  align-items: center;
}

/* Adjust map height to account for status bar */
#map {
  height: calc(100% - 30px);
}

/* Custom Leaflet Controls */
.leaflet-bar a.reset-view-btn,
.leaflet-bar a.north-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #fff;
  border-bottom: 1px solid #ccc;
  color: #333;
  text-decoration: none;
}

.leaflet-bar a.reset-view-btn:hover,
.leaflet-bar a.north-arrow-btn:hover {
  background: #f4f4f4;
}

.leaflet-bar a.reset-view-btn svg,
.leaflet-bar a.north-arrow-btn svg {
  display: block;
}

/* Collapsible Sections */
.layer-section {
  margin-bottom: 10px;
}

#tools-list {
    margin-top: 10px;
}

.layer-section-header {
  background: #333;
  padding: 5px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px;
  gap: 6px;
  position: relative;
}

.layer-section-header:hover {
  background: #3a3a3a;
}

.layer-title {
  flex: 1;
}

.tool-info-btn {
  background: transparent;
  border: 1px solid #555;
  color: #ddd;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tool-info-btn:hover {
  background: #444;
  border-color: #777;
}

.tool-info-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 260px;
  max-width: calc(100vw - 40px);
  background: #1c1c1c;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.tool-info-popover.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tool-info-title {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 6px;
  color: #fff;
}

.tool-info-body {
  font-size: 12px;
  color: #ddd;
  line-height: 1.4;
  margin-bottom: 8px;
}

.tool-info-close {
  background: #444;
  border: 1px solid #666;
  color: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
}

.tool-info-close:hover {
  background: #555;
}

.tool-btn.active {
    background: #1971c2; /* Blue */
}

.crater-table-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #444;
    margin-bottom: 10px;
}

.crater-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.crater-table th, .crater-table td {
    text-align: left;
    padding: 4px;
    border-bottom: 1px solid #333;
}

.crater-table th {
    background: #333;
    position: sticky;
    top: 0;
}

.crater-btn-group {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.crater-action-btn {
    flex: 1;
    padding: 4px;
    border: 1px solid #555;
    color: white;
    cursor: pointer;
    font-size: 11px;
    border-radius: 3px;
}

.chart-container {
    margin-top: 10px;
    width: 100%;
    height: 150px;
    background: #222;
    border: 1px solid #444;
}

/* Nomenclature Labels */
.nomenclature-label {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 1px 1px 2px black, 0 0 5px black;
    pointer-events: none; /* Don't block clicks */
}

/* Investigate Tool Popup */
.investigate-layer-result {
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}

.investigate-layer-result:last-child {

    border-bottom: none;

}



/* Body Selector */

.body-selector-dropdown {

    background: #222;

    color: white;

    border: 1px solid #555;

    padding: 4px;

    border-radius: 3px;

    width: 100%;

    margin-top: 5px;

    cursor: pointer;

}



/* Style Editor */

#style-editor {

    display: none;

    position: absolute;

    z-index: 2000;

    background: #222;

    border: 1px solid #555;

    padding: 10px;

    border-radius: 4px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.5);

    min-width: 200px;

    color: #eee;

}



.style-field {

    margin-bottom: 8px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    font-size: 12px;

}



.style-field input[type="color"] {

    border: none;

    width: 30px;

    height: 20px;

    padding: 0;

    background: none;

}



.style-field input[type="range"] {

    width: 100px;

}
