html, body, #cesiumContainer {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Canvas Three.js diposisikan menumpuk persis di atas canvas Cesium,
   tapi transparan terhadap event mouse (biar interaksi peta Cesium tetap jalan) */
#threeOverlayCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.control-panel {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  background: rgba(20, 20, 20, 0.75);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.control-panel button {
  background: #2b7cff;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.control-panel button:hover {
  background: #1a5fd6;
}

#statusText {
  font-size: 12px;
  opacity: 0.8;
}

/* Modal CCTV */
.cctv-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cctv-modal.hidden {
  display: none;
}

.cctv-modal-content {
  background: #111;
  border-radius: 10px;
  width: min(720px, 90vw);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.cctv-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
}

.cctv-modal-header button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

#cctvVideo {
  width: 100%;
  display: block;
  background: #000;
  max-height: 70vh;
}

.cctv-note {
  color: #aaa;
  font-size: 12px;
  padding: 8px 14px;
  margin: 0;
}
