/* ========================
   Common/Shared Modals
   ======================== */

/* ─── Overlay & Centering ───────────────────────────────────────── */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

/* ─── Modal Actions (confirm-yes / confirm-no) ───────────────────── */
.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.modal-actions button:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  opacity: 0.95;
}

.modal-actions button:focus {
  outline: 3px solid #80bdff;
}

/* ─── Global “×” Close Button ─────────────────────────────────────── */
.close {
  font-size: 1.5rem;
  color: #000;
}

.close:hover {
  color: #6c757d;
}

/* ─── Scoped Header/Body/Footer (for our Bootstrap modals) ───────── */
.modal-custom .modal-header .close:hover {
  opacity: .85;
}

/* ───── confirm‑modal tweaks ───────────────────────────────────── */


.modal-custom .modal-header {
  background: #f3f4f6;
  /* light grey */
  border: none;
  /* no divider */
  border-radius: .55rem .55rem 0 0;
  /* rounded top edges */
  padding: 1.25rem 1.25rem;
}


.modal-custom .modal-title {
  display: flex;
  flex-direction: column;
  font-size: 1.25rem;
  font-weight: 700;
  /* “Disable” in bold     */
}

.modal-custom .modal-title small {
  font: 400 1rem/1.25 Arial, sans-serif;
  color: #212529;
  margin-top: .25rem;
}


.modal-custom .modal-body {
  padding: 1.5rem 1.5rem 1.25rem;
}

.modal-custom .modal-footer {
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem 1.75rem;
}

/* footer ‑‑ equal horizontal margins */
.modal-custom .modal-footer {
  justify-content: space-between;
  /* push edges */
}

/* ─── Even‑out button widths ───────────────────────── */
.modal-custom .modal-footer .btn {
    min-width: 5rem;
}


.modal-custom .btn-secondary {
  background-color: #6c757d;       /* Bootstrap gray */
  border-color:   #6c757d;
  color:           #fff;
}
.modal-custom .btn-primary {
  background: linear-gradient(135deg, #c49a2f, #a67c1a);  /* your gold */
  border-color: #a67c1a;
  color:        #fff;
}