/* Modal Overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1055;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Fade */
  font-family: 'Poppins', sans-serif !important;
  overflow-y: auto !important;
}

.modal.show {
  display: block;
}

/* Modal Dialog */
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-width: 320px;
  margin: 2rem auto;
  padding: 0 1rem;
  pointer-events: none;

  display: flex;
  flex-direction: column;
  max-height: 100vh; /* Limit height to viewport */
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100% - 2rem);
}

/* Modal Content */
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  outline: 0;
  padding: 2rem;
  
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.btn-close {
  
  border: none;
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.7;
  cursor: pointer;
}

.btn-close:hover {
  opacity: 1;
}


/* Form Controls */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* Button Styles */
.btn {
  display: inline-block;
  font-weight: 500;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px;
}

.btn-primary {
  background-color:  #FF0068;
  border-color:  #FF0068;
  color: #ffffff;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-success {
  background-color: #198754;
  border-color: #198754;
}

.btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}

/* Utility Spacing */
.w-100 {
  width: 100%;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.d-none {
  display: none !important;
}

/* Alerts */
.alert {
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border: 1px solid #badbcc;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }

  .modal-content {
    padding: 1.25rem !important;
	overflow-y: auto !important;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
  }
   .modal-dialog-centered {
    align-items: flex-start; /* Align to top */
    padding-top: 0px; /* Optional: add some top space */
  }
}

.text-danger {
  color: #dc3545; /* Bootstrap's danger red */
}

.mb-2 {
  margin-bottom: 0.5rem; /* Bootstrap's spacing unit for mb-2 */
}

