#base-content-container {
  max-height: 100vh;
  max-width: 100vw;
}

#image-tile-container {
  min-width: 60vw;
  width: fit-content;
  margin: 0 auto;
}

.annotate-item {
  text-align: center;
}

.correct,
.card > .correct {
  background: #abebc6;
}


.incorrect,
.card>.incorrect {
  background: #f08080;
}

.unsure,
.card>.unsure {
  background: #f6f699;
}

.card {
  border: none;
}

.card>#main-image>.img_annotate {
  width: 100%;
  height: 100%;
}

.legend {
  width: 100%;
  flex-wrap: wrap;
  display: flex;
  gap: 1rem;
  background-color: white;
  padding: 0.5rem;
  box-sizing: border-box;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend>.legend-item>.color-block {
  width: 20px;
  height: 1rem;
  display: inline-block;
}

.card-body-proof-read {
  max-height: 23%;
  max-width: 23%;
  margin: 0.5% 1%;
}

.card-block>.main-image-categorize>.img_categorize {
  width: 100%;
  height: 100%;
}

.main-image-categorize {
  display: grid;
  grid-template-columns: 1fr;
}

.main-image-categorize .img_categorize {
  grid-row-start: 1;
  grid-column-start: 1;
}

.outsideWrapper {
  margin: auto;
  width: 452px;
  height: 452px;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.insideWrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.coveredImage {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.curveCanvas,
.circleCanvasPre,
.circleCanvasPost {
  position: absolute;
  top: 0;
  left: 0;
}

/* drawing modal content */
.modal-content {
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.5rem;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modal-dialog {
  border: none !important;
  box-shadow: none !important;
}

.modal-header,
.card-header {
  background: #f8f9fa;
  border-bottom: none !important;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  box-shadow: none;
}

.btn {
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-footer {
  padding: 0rem 1rem;
  max-height: 40px;
  border-top: none;
}

#centralBadge {
  z-index: 1; /* Ensure it's above the image, but below the modal header */
  pointer-events: none; /* Prevent interaction issues */
  font-size: 0.75rem;
  opacity: 0.7;
}

#neuron-id-draw .badge.disabled {
  opacity: 0.8;
  cursor: default;
  pointer-events: none;
  padding: 10px;
}

/* css for the open data form */
.syn-id-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.syn-id-dims {
  margin: 2px;
  flex: 0.2;
  width: 20%;
}

.hidden-form {
  display: none;
}

#loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

.progress {
  position: relative;
}

#card-group-container {
  position: relative;
  /* Ensures absolute positioning works inside */
}

#loading-bar-card-group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80vh;
  /* Always take 80% of the screen height */
  background: rgba(0, 0, 0, 0.2);
  /* Same semi-transparent gray background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

/* Shark Viewer Minimap */
.minimap {
  display: none;
  /* Initially hidden */
  position: relative;
  /* Default inside flex container */
  width: 40vw;
  /* Always take 33% of the screen width */
  height: 91vh;
  /* Always take 80% of the screen height */
  margin-top: 4px;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 5px;
  overflow: hidden;
  box-sizing: border-box;
  flex-direction: column;
}

/* Expanded Minimap (Floating Mode) */
.minimap.expanded {
  position: fixed;
  width: 70vw;
  height: 70vh;
  top: 15vh;
  left: 15vw;
  z-index: 1001;
}

/* Minimap Header (Draggable) */
.minimap-header {
  background: #444;
  color: #fff;
  cursor: move;
  text-align: center;
  height: 30px;
  line-height: 30px;
  user-select: none;
  box-sizing: border-box;
  position: relative;
}

/* Minimap Content */
.minimap-content {
  width: 100%;
  flex-grow: 1;
  /* Expands to fill available space */
  overflow: auto;
  box-sizing: border-box;
}

/* Minimap Footer */
.minimap-footer {
  width: 100%;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border-top: 1px solid #ccc;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Minimap Loading Bar */
.minimap-loading-bar {
  width: 90%;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  overflow: hidden;
}

/* Progress Fill */
.minimap-progress-bar {
  width: 0%;
  height: 100%;
  background: #4caf50;
  transition: width 0.3s ease-in-out;
}

/* Toggle Button */
.toggle-btn {
  position: absolute;
  top: 3px;
  right: 2px;
  z-index: 1001;
  background: #666;
  color: #fff;
  border: none;
  padding: 3px 5px;
  font-size: 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.toggle-btn:hover {
  background: #888;
}

.metadata-overlay {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 0.65rem;
  padding: 2px 4px;
  border-radius: 3px;
  z-index: 2;
  font-family: monospace;
  pointer-events: none;
}
