/* minimal popup CSS */
.popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none; /* default non-interactive until shown */
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* overlay untuk background */
.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  pointer-events: auto; /* overlay should receive clicks if needed */
}

/* content */
.popup-content {
  position: relative;
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  max-width: 520px;
  width: 90%;
  z-index: 10000; /* above overlay */
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  transform: translateY(10px);
  transition: transform 0.25s ease;
  pointer-events: auto; /* content is interactive */
}

/* actions */
.popup-actions { text-align: center; margin-top: 12px; }
.btn-ok {
  display: inline-block;
  padding: 8px 18px;
  background: #0d6efd;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

/* shown state */
.popup.show {
  pointer-events: auto;   /* now interactive */
  opacity: 1;
}
.popup.show .popup-content {
  transform: translateY(0);
}

/* small accessibility */
.popup[aria-hidden="true"] { display: none; }
