/*
 * One skin for every popup: Bootstrap modals and SweetAlert2.
 * Loaded again from the footer so it wins over page CSS.
 */

.modal-backdrop {
  background-color: rgba(16, 36, 64, 0.45) !important;
}

.modal-content {
  border: 1px solid #d1d9e6 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 64px rgba(16, 36, 64, 0.18) !important;
  overflow: hidden;
}

.modal-header {
  background: #ffffff !important;
  background-image: none !important;
  color: #102440 !important;
  border-bottom: 1px solid #e7ebf0 !important;
  padding: 1.15rem 1.35rem !important;
}

.modal-header .modal-title,
.modal-header .modal-title span,
.modal-header .modal-title i {
  color: #102440 !important;
  font-weight: 700 !important;
}

.modal-header .btn-close {
  filter: none !important;
  opacity: 0.55;
  border-radius: 8px;
}

.modal-header .btn-close:hover {
  opacity: 1;
  background-color: #f3f5f8;
}

.modal-body {
  color: #344767;
}

.modal-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e7ebf0 !important;
}

.modal-danger .modal-content {
  border-top: 3px solid #ED4942 !important;
}

.modal-warning .modal-content {
  border-top: 3px solid #FBB03B !important;
}

.modal-success .modal-content {
  border-top: 3px solid #0575E6 !important;
}

/* SweetAlert2 */
.swal2-container {
  font-family: 'Inter', sans-serif !important;
}

.swal2-popup {
  border: 1px solid #d1d9e6 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #102440 !important;
  box-shadow: 0 24px 64px rgba(16, 36, 64, 0.18) !important;
  padding: 1.5rem 1.35rem 1.25rem !important;
}

.swal2-title {
  color: #102440 !important;
  font-weight: 700 !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.02em;
}

.swal2-html-container {
  color: #475569 !important;
  font-size: 0.98rem !important;
}

.swal2-icon.swal2-success {
  border-color: #0575E6 !important;
  color: #0575E6 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(5, 117, 230, 0.35) !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #0575E6 !important;
}

.swal2-icon.swal2-error {
  border-color: #ED4942 !important;
  color: #ED4942 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
  background-color: #ED4942 !important;
}

.swal2-icon.swal2-warning {
  border-color: #FBB03B !important;
  color: #FBB03B !important;
}

.swal2-icon.swal2-warning .swal2-icon-content {
  color: #FBB03B !important;
}

.swal2-icon.swal2-info {
  border-color: #0575E6 !important;
  color: #0575E6 !important;
}

.swal2-icon.swal2-question {
  border-color: #003b5c !important;
  color: #003b5c !important;
}

.swal2-styled {
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  padding: 0.65rem 1.25rem !important;
  box-shadow: none !important;
}

.swal2-confirm {
  background-color: #0575E6 !important;
  background-image: none !important;
}

.swal2-confirm:hover {
  background-color: #003b5c !important;
}

.swal2-confirm[style*="220, 53, 69"],
.swal2-confirm[style*="221, 51, 51"],
.swal2-confirm[style*="211, 47, 47"],
.swal2-confirm[style*="244, 67, 54"],
.swal2-confirm[style*="#d33"],
.swal2-confirm[style*="#dc3545"],
.swal2-confirm[style*="#d32f2f"],
.swal2-confirm[style*="#F44336"] {
  background-color: #ED4942 !important;
}

.swal2-confirm[style*="220, 53, 69"]:hover,
.swal2-confirm[style*="221, 51, 51"]:hover,
.swal2-confirm[style*="211, 47, 47"]:hover,
.swal2-confirm[style*="244, 67, 54"]:hover,
.swal2-confirm[style*="#d33"]:hover,
.swal2-confirm[style*="#dc3545"]:hover,
.swal2-confirm[style*="#d32f2f"]:hover,
.swal2-confirm[style*="#F44336"]:hover {
  background-color: #c62828 !important;
}

.swal2-cancel {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #102440 !important;
  border: 1px solid #d1d9e6 !important;
}

.swal2-cancel:hover {
  background-color: #f4f7fb !important;
}

.swal2-deny {
  background-color: #ED4942 !important;
  background-image: none !important;
}

.swal2-input,
.swal2-textarea,
.swal2-select,
.swal2-file {
  border: 1px solid #d1d9e6 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: #102440 !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
  border-color: #0575E6 !important;
  box-shadow: 0 0 0 3px rgba(5, 117, 230, 0.18) !important;
}

.swal2-validation-message {
  background: #fff7ed !important;
  color: #9a3412 !important;
  border-radius: 10px !important;
}
