.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* default hidden */
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}
.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  text-align: left;
}

.modal-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex; justify-content: center; align-items: center;
}
.modal-content2 {
  background: white;
  padding: 20px;
  max-width: 600px;
  width: 90%;
  border-radius: 10px;
  max-height: 90vh;   
  overflow-y: auto;
}
.modal-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
/* Small screens stack modal buttons vertically */
@media (max-width: 480px) {
  .modal-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .modal-buttons .btn {
    width: 100%;
  }
}
#confirmation-modal .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}