/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  display: none; /* Initially hidden */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensure it's above other content */
  overflow: auto; /* Allow scrolling if content is too large */
  opacity: 0; /* Start with opacity 0 for fade-in effect */
  transition: opacity 0.3s ease-in-out; /* Add transition for fade effect */
}

.modal-backdrop.active {
  display: flex; /* Show the modal when active class is added */
  opacity: 1; /* Change opacity to 1 for fade-in */
}

/* Modal Content */
.modal-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px; /* Adjust as needed */
  width: 100%; /* Ensure it fits within the viewport */
  text-align: left; /* Align text to the left */
  overflow: hidden;
}

/* Modal Header */
.modal-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px 0;
  background-color: #e9f7f5;
  position: relative;
}

.modal-header h2 {
  margin: 0;
  font-weight: 600;
}

.close-btn {
  font-size: 24px;
  cursor: pointer;
  color: #7aa7a2;
  transition: color 0.2s ease;
  position: absolute;
  right: 15px;
}

.close-btn:hover {
  color: #2a6f69;
}

/* Modal Body */
.modal-body {
  padding: 20px 15px;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
}

.modal-footer .btn {
  width: 140px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-footer .btn-warning {
  background-color: #2ec4b6;
  color: #fff;
}

.modal-footer .btn-warning:hover {
  background-color: #25a79b;
}

/* Additional styles for the "Confirm" button if needed */
.modal-footer .btn-success {
  background-color: #54d2c7;
  color: #fff;
}

.modal-footer .btn-success:hover {
  background-color: #37bcb0;
}
