
/* ===== Modal base ===== */
.custom-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.custom-modal.active {
  display: flex;
}

/* ===== Overlay ===== */
.custom-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-modal.active .custom-modal-overlay {
  opacity: 1;
}

/* ===== Modal content ===== */
.custom-modal-content {
  position: relative;
  background: #fff;
  width:80%;
  max-height: 95vh;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.custom-modal.active .custom-modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* ===== Header ===== */
.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  color: #222;
  border-bottom: 1px solid #ccc;
}

.custom-modal-header h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
  color: #000;
  
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  background-color: #4241b8;
}

/* ===== Body ===== */
.custom-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.custom-modal-body::-webkit-scrollbar {
  width: 8px;
}

.custom-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

/* ===== Disable background scroll when modal open ===== */
body.modal-open {
  overflow: hidden;
}

.custom-modal-body .cs-ps-0{
    padding-left: 0;
}
.custom-modal-body .cs-pe-0{
    padding-left: 0;
}