/* Styles for marker contribution modal */
#markerContributionModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7); /* backdrop hitam transparan */
  display: none; /* default hidden */
  justify-content: center;
  align-items: center;
  z-index: 10000; /* di atas semua elemen lain */
}

/* Modal content box */
#markerContributionContent {
  background: rgba(0, 54, 95, 0.8);; /* putih kayak input */
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  color: #fff; /* text hitam */
  border: 2px solid #889dcb;
}


/* Form labels */
#marker_contribution label {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
}

/* Form inputs and select */
#marker_contribution input[type="text"],
#marker_contribution input[type="number"],
#marker_contribution textarea,
#marker_contribution select {
  width: calc(100% - 22px);
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #ffffff;
  color: #000000; /* teks input tetap hitam supaya jelas */
}

/* Submit button */
#marker_contribution button#submitMarkerBtn {
  background-color: #02a0c5;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

/* Cancel button */
#marker_contribution button.cancel {
  background-color: red;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 5px;
}

/* Hover effect for buttons */
#marker_contribution button#submitMarkerBtn:hover,
#marker_contribution button.cancel:hover {
  opacity: 0.8;
}

.add-marker-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999; /* tinggikan supaya di atas semua, sama kayak zoom-slider */
  background-color: #222;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease;
}

.add-marker-button:hover {
  background-color: #444;
}
.dev-tools-panel {
  position: absolute;
  top: 40px;
  right: 20px;
  background: rgba(34, 34, 34, 0.9);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dev-tools-button {
  background-color: #00aaff;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.dev-tools-button:hover {
  background-color: #0088cc;
}
.leaflet-popup {
    pointer-events: none;
}

.showImageButton:hover {
    background: rgba(2, 140, 154, 0.8);
    color: #ffffff;
    pointer-events: auto;
}

/* Leaflet popup content wrapper */
.leaflet-popup-content-wrapper {
    background: rgba(19, 39, 96, 0.613) !important;
    border: 2px solid #889dcb !important;
    border-radius: 10px !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25) !important;
    z-index: 1002 !important;
    animation: bounceIn 0.6s ease;
    padding: 20px;
    pointer-events: none;
}

/* Leaflet popup content */
.leaflet-popup-content {
    background: rgba(10, 28, 61, 0.883) !important;
    color: white !important;
    font-size: 14px;
    border-radius: 10px;
    font-family: 'Open Sans', Arial, sans-serif;
    padding: 2px;
    z-index: -100 !important;
    pointer-events: none;
}

/* Popup main title */
.leaflet-popup-content .popup-name {
    font-weight: bold;
    font-size: 30px;
    color: white;
    margin-bottom: 10px;
    padding: 5px;
    pointer-events: none;
}

/* Popup description */
.leaflet-popup-content .popup-desc {
    font-size: 12px;
    color: white;
    pointer-events: none;
}

/* Additional separator inside popup */
.separator {
    border: none;
    margin: 10px 0;
    pointer-events: none;
}

/* Thumbnail for popup */
.popup-thumbnail {
    position: relative;
    display: inline-block;
    pointer-events: none;
}

/* Play button inside popup */
.popup-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 8px;
    pointer-events: auto;
}

/* Copy button styles */
.copyButton {
    background: rgba(10, 28, 61, 0.883);
    color: white;
    border: 2px solid #889dcb;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 15px 0px 10px 0px;
    pointer-events: auto;
}

.copyButton:hover {
    transform: scale(0.95);
}

.copyButton:active {
    background-color: #028c9a;
    transform: scale(0.95);
}

/* Container for copy buttons */
.copy-buttons {
    display: flex;
    gap: 5px;
    margin-top: -20px;
    margin-bottom: 5px;
    pointer-events: auto;
}

/* Feedback after copying coordinates */
.copy-feedback {
    display: none;
    background-color: rgba(10, 28, 61, 0.883);
    border: 2px solid #028c9a;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.5s ease;
    opacity: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
}

.feedback-icon {
    width: 50px;
    height: 50px;
    margin-right: 5px;
}

.copy-feedback.show {
    display: flex;
    opacity: 1;
}
.json-modal-overlay {
    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: 9999;
}

.json-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.json-text-area {
    width: 100%;
    height: 300px;
    margin-bottom: 10px;
    font-family: monospace;
}
