/* ===== CSS styles for the UMAP FLOATING WINDOW ===== */
/* This is referred to as the "semantic map" in the user documentation */

#umapFloatingWindow {
  position: fixed;
  z-index: 1000;
  display: none;
  top: 8px;
  right: 8px;
  /* background: rgba(24, 24, 32, 0.75) !important; */
  background: rgb(24, 24, 32) !important;
  color: #eee;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  min-width: 200px;
  min-height: 200px;
  width: auto;
  height: auto;
  overflow: hidden;
  padding: 4px;
  max-width: 100vw !important;
  max-height: 100vh !important;
  padding-bottom: 20px;
}

#umapColorModeContainer {
  min-width: 180px;
}

.icon-btn {
  background: none;
  border: none;
  padding: 6px;
  margin: 0 4px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}

.icon-btn:hover,
.icon-btn:focus {
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn.active {
  box-shadow: 0 0 8px 2px #4caf50, 0 0 16px 4px #2196f3;
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid #4caf50;
  z-index: 2;
}

#umapTitlebar {
  cursor: move;
  background: rgba(30, 30, 40, 0.95);
  color: #fff;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 8px 8px 0 0;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1em;
}

/* ===== UMAP THUMBNAIL STYLES ===== */
.umap-thumbnail {
  position: fixed;
  z-index: 99999;
  border: 2px solid #222;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
  padding: 12px 12px 0 12px;
  pointer-events: none;
  transition: opacity 0.1s;
  opacity: 0.98;
  min-width: 160px;
  max-width: 260px;
  max-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: inherit;
  visibility: hidden;
}

.umap-thumbnail img {
  max-width: 240px;
  max-height: 360px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  background: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.umap-thumbnail-filename {
  font-size: 0.95em;
  margin-top: 6px;
  margin-bottom: 2px;
  text-align: center;
  word-break: break-all;
}

.umap-thumbnail-cluster {
  font-size: 0.95em;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.25);
  width: 100%;
  text-align: center;
  border-radius: 0 0 8px 8px;
  padding: 2px 0 4px 0;
  margin-top: 2px;
}

#umapEpsContainer,
#umapColorModeContainer {
  font-size: 0.85em;
}

/* #umapHighlightSelection {
  margin-bottom: 20px !important;
}

#umapColorModeContainer label:last-child {
  padding-bottom: 10px;
} */