.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
  z-index: 900; /* Lower z-index than modal to ensure modal is on top */
  display: none;
  z-index: 1000;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background-color: white;
  z-index: 1001;
  display: none;
  padding: 16px;
  box-sizing: border-box;
  overflow: auto;
}

.modal.active {
  display: block;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}
