/* Background overlay */
    #alertOverlay {
      display: none;
      position: fixed;
      top: 0; left: 0; width: 100%; height: 100%;
      background: #000000;
      z-index: 999;
    }

    /* Modal box */
    #customAlert {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      background: #fff;
      padding: 20px 30px;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      max-width: 90%;
      min-width: 300px;
      text-align: center;
      font-family: Arial, sans-serif;
    }

    #customAlert p {
      margin-bottom: 20px;
      font-size: 16px;
    }

    #customAlert button {
      padding: 8px 20px;
      background: #007bff;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    #customAlert button:hover {
      background: #0056b3;
    }
    #alertContent {
  margin-bottom: 20px;
    }

    #alertActions {
    text-align: center;
    }

/* Keyframes for fade and slide-in */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translate(-50%, 20%); opacity: 0; }
  to   { transform: translate(-50%, -50%); opacity: 1; }
}

/* Animate the overlay */
#alertOverlay.show {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

/* Animate the alert box */
#customAlert {
  opacity: 0;
  transform: translate(-50%, 20%);
  animation: slideUp 0.4s ease forwards;
}

/* Add transition for smooth hide */
#alertOverlay.hide {
  animation: fadeOut 0.2s ease forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
