body {
  font-family: 'Inter', sans-serif;
}

/* Transition for dark mode */
.transition-colors {
  transition-property: background-color, border-color, color;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-pills .nav-link.active {
  background-color: #52a261;
  /* your custom background color */
  color: #fff;
  border-radius: 0.375rem;
  /* same as Bootstrap's rounded-md */
}

/* Optional: change hover color on active pills */
.nav-pills .nav-link.active:hover {
  background-color: #52a261;
  color: #fff;
}

.nav-pills .nav-link {
  color: black;
  transition: color 0.3s ease;
}

.dark .nav-pills .nav-link {
  color: white;
}

.nav-pills .nav-link:hover {
  color: black;
  /* or any hover color */
}

.dark .nav-pills .nav-link:hover {
  color: white;
  /* or any hover color */
}

.btn-close {
  filter: none;
  /* or the default Bootstrap filter */
}

/* In dark mode, invert the btn-close icon color to white */
.dark .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Scrollbar Styles for WebKit Browsers */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(100, 116, 139, 0.5);
  /* e.g., slate-500 with opacity */
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(100, 116, 139, 0.7);
}

/* Firefox Scrollbar */
.modal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.5) transparent;
}

.ql-editor {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.dark .ql-toolbar.ql-snow {
  border-color: #30363d;
  background-color: #0d1117;
  color: #f9fafb;
}

.dark .ql-toolbar .ql-stroke {
  stroke: #f9fafb;
}

.dark .ql-container.ql-snow {
  border-color: #30363d;
  background-color: #0d1117;
  color: #f9fafb;
}

.dark .quill-editor .ql-editor.ql-blank::before {
  color: #eee;
}

.dark input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(2);
  cursor: pointer;
}

#quicksave-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  /* adjust icon size */
  color: inherit;
  padding: 0 6px;
  /* optional: adjust horizontal spacing */
}

/* Opening Animation */
@keyframes zoomIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes zoomOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.7);
    opacity: 0;
  }
}

/* Only apply zoomIn on first show, not after modal-static removal */
.modal.custom-zoom.modal-animated.show .modal-dialog {
  animation: zoomIn 0.3s ease forwards;
}

/* Apply zoomOut on hide */
.modal.custom-zoom.fade:not(.show) .modal-dialog {
  animation: zoomOut 0.2s ease forwards;
}

/* Shake when clicking static backdrop */
@keyframes customShake {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-7px);
  }

  40% {
    transform: translateX(7px);
  }

  60% {
    transform: translateX(-7px);
  }

  80% {
    transform: translateX(7px);
  }

  100% {
    transform: translateX(0);
  }
}

.modal.modal-static .modal-dialog {
  animation: customShake 0.5s;
}

.donation-line-transition {
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: inline-block;
  /* Needed for transform to work properly */
}

.donation-line-enter {
  transform: translateX(100%);
  opacity: 0;
}

.donation-line-show {
  transform: translateX(0);
  opacity: 1;
}

.donation-line-exit-left {
  transform: translateX(-100%);
  opacity: 0;
}

/* Custom modal width for large screens */
@media (min-width: 992px) {
  .modal-lg-custom {
    max-width: 75% !important;
  }
}