.popup-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 15px;
  opacity: 0;
  z-index: 9999;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: opacity 0.3s, transform 0.3s;
}

.popup-message.show {
  opacity: 1;
  transform: translateY(0);
}

.popup-success { background: #28a745; }
.popup-error { background: #dc3545; }
.popup-warning { background: #ffc107; color: #333; }


/* Modal Background */
.custom-modal {
  display: none;  /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* On top */
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Background overlay */
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out; /* Animation */
}

/* Modal Content */
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

/* Modal Buttons */
.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

.confirm {
  background-color: #3085d6;
  color: white;
}

.cancel {
  background-color: #d33;
  color: white;
}

.modal-btn:hover {
  opacity: 0.8;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
