.popup {
  background: white;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.popup .btn {
  display: block;
  padding: 8px 12px;
  margin: 5px 0;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
}

.popup .btn:hover {
  background: #0056b3;
}

.menu-item {
  position: relative; /* supaya popup bisa nempel di sini */
  display: inline-block;
}

.popup {
  position: absolute;
  top: 100%;   /* muncul di bawah menu */
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;

  background: #fff;
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none; /* default disembunyikan */
}

.popup::before {
  content: "";
  position: absolute;
  top: -12px; /* posisi segitiga */
  left: 50%;
  transform: translateX(-50%);
  border-width: 12px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
}


.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.popup-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: left;
  animation: fadeIn 0.3s ease;
}

.popup-box h2 {
  margin-top: 0;
  color: #0056b3;
}

.popup-box button {
  margin-top: 15px;
  padding: 8px 15px;
  background: #0056b3;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-box button:hover {
  background: #003f7f;
}

@keyframes fadeIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-box {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  text-align: justify;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
}
.close-popup {
  float: right;
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
  margin-left: 10px;
}
@keyframes fadeIn {
  from {opacity:0; transform:scale(0.9);}
  to {opacity:1; transform:scale(1);}
}

.popup-content img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.popup-content img.zoomed {
  transform: scale(1.8);  /* zoom in */
  cursor: zoom-out;
}
