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

#map {
  width: 100vw;
  height: 100vh;
  background: black;
}

.leaflet-container {
  cursor: default !important;
}

.leaflet-interactive {
  cursor: pointer !important;
}

#cursorViewportPosition,
.textHelper,
.button-overlay,
.map-switcher {
  position: fixed;
  color: white;
  font-size: 15px;
  z-index: 9999;
}

.map-switcher {
  top: 1vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid black;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.map-switcher .map-tab {
  position: relative;
}

.map-switcher .map-tab.active {
  color: #00bfff !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
}

.map-switcher .map-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #008bd1;
  border-radius: 2px;
}

#cursorViewportPosition {
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid black;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  padding: 10px;
  right: 1vw;
  bottom: 1vh;
}

.textHelper {
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid black;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  padding: 10px;
  top: 1vh;
  left: 1vw;
}

input[type="text"],
input[type="number"] {
  background-color: #111;
  color: #fff;
  border: 1px solid #444;
  padding: 5px 10px;
  caret-color: white;
  font-family: inherit;
}

input::placeholder {
  color: #888888;
  opacity: 0.5 !important;
}

input::-webkit-input-placeholder {
  color: #888888 !important;
  opacity: 0.5 !important;
}

input::-moz-placeholder {
  color: #888888 !important;
  opacity: 0.5 !important;
}

input:-ms-input-placeholder {
  color: #888888 !important;
  opacity: 0.5 !important;
}

.button-overlay {
  bottom: 1vh;
  left: 1vw;
  padding: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid black;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

button.custom-button {
  background-color: rgba(0, 0, 0, 0.4) !important;
  color: #008bd1 !important;
  border: none !important;
  padding: 10px 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

button.custom-button:hover,
button.custom-button:focus {
  background-color: rgba(0, 0, 0, 0.7) !important;
  color: #00bfff !important;
}

a.link-gold {
  color: #008bd1;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.link-gold:hover {
  color: #00bfff;
  text-decoration: underline;
}

.nav-tabs .nav-link {
  background-color: transparent !important;
  color: white;
  border: none;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  background-color: rgba(0, 0, 0, 0.3) !important;
  color: #00bfff;
  outline: none;
  box-shadow: none;
}

.nav-tabs .nav-link.active {
  background-color: transparent !important;
  color: #00bfff !important;
  border: none;
  position: relative;
}

.nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #008bd1;
  border-radius: 2px;
}

input[type="checkbox"] {
  accent-color: #008bd1;
  background-color: transparent;
  border: 1px solid #008bd1;
  cursor: pointer;
}

input[type="checkbox"]:not(:checked) {
  background-color: transparent;
}

input[type="checkbox"]:focus {
  outline: none;
  box-shadow: none;
}

.text-muted {
  color: #ccc !important;
  opacity: 0.75 !important;
}

.leaflet-div-icon {
  background: none !important;
  border: none !important;
}

.leaflet-div-icon::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background-color: #00bfff;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 2px black;
  transform: translate(-50%, -50%);
  position: absolute;
  top: 50%;
  left: 50%;
}

.mult-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0 !important;
  margin-bottom: 4px !important;
  padding-left: 0;
}

.mult-row > label {
  margin: 0;
  color: #fff;
  white-space: nowrap;
}

.mult-row + .form-check {
  margin-top: 0 !important;
}

.number-input-sm {
  width: calc(5.5ch + 20px);
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 10px;
  background: rgba(255,255,255,0.06) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  color: #fff;
  text-align: left;
  padding-right: 10px;
  padding-left: 10px;
  backdrop-filter: blur(2px);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  -moz-appearance: textfield;
  appearance: textfield;
}

.number-input-sm:focus {
  border-color: #008bd1 !important;
  background: rgba(255,255,255,0.08) !important;
  box-shadow: 0 0 0 .2rem rgba(0,139,209,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
  outline: none;
}

.number-input-sm::-webkit-outer-spin-button,
.number-input-sm::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

#globalEditor .mult-row,
#zoneEditor .mult-row {
  margin: 8px 0 6px;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-top: 8px;
  padding-bottom: 8px;
}

#globalEditor .mult-row + .form-check,
#zoneEditor .mult-row + .form-check {
  margin-top: 6px !important;
}
