/* ================= OVERLAY ================= */

.overlay {
  position: fixed;
  inset: 0; /* lebih rapi dari top,left,width,height */
  background: rgba(0, 0, 0, 0.45);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;

  backdrop-filter: blur(2px); /* efek blur background */
  animation: overlayFade .2s ease;
}

/* ================= BOX ================= */

.overlay-box {
  background: #ffffff;
  padding: 25px 22px;
  width: 320px;
  max-width: 90%;

  border-radius: 12px;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.15),
    0 4px 10px rgba(0,0,0,0.08);

  text-align: center;

  animation: boxPop .25s ease;
}

/* ================= TEXT ================= */

.overlay-box p {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
}

/* ================= BUTTON AREA ================= */

.overlay-box .text-right {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ================= ANIMATION ================= */

@keyframes overlayFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes boxPop {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 576px) {

  /* tombol di kolom aksi dibuat full width */
  #userTableBody td button {
    display: block;
    width: 100%;
  }

  /* kasih jarak antar tombol */
  #userTableBody td button {
    margin-top: 6px;
  }

  /* tombol pertama tidak ada margin atas */
  #userTableBody td button:first-child {
    margin-top: 0;
  }

}