/* Modal Component Styles (custom modal + Bootstrap overrides) */

/* Backdrop for custom modals */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1040;
  padding: 1.25rem;
}

.custom-modal {
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(23, 32, 78, 0.18);
  padding: 1.5rem;
  position: relative;
}

.custom-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.custom-modal .modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

/* Close button */
.custom-modal .btn-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
}

.custom-modal .modal-body {
  padding: 0.25rem 0 0.75rem 0;
}

/* Form inside modal */
.custom-modal .form-control {
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.custom-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: none;
}

/* Small note */
.modal-note {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Bootstrap modal small overrides to make them a bit softer */
.modal .modal-content {
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(23, 32, 78, 0.12);
}

/* Simple fade and scale for the modal dialog */
.modal.fade .modal-dialog {
  transform: translateY(8px) scale(0.995);
  transition: transform 240ms ease, opacity 240ms ease;
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .custom-modal { padding: 1rem; }
}
