/* --- 1. OVERLAY --- */
.dmx-notifications {
  position: fixed;
  inset: 0 !important;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  pointer-events: none;
  background: transparent;
  transition: background 0.3s;
}

.dmx-notifications:not(:empty) {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.45);
}

/* --- 2. CAIXA MODAL --- */
.dmx-notify {
  background: var(--bs-body-bg, #fff) !important;
  color: var(--bs-body-color, #333) !important;
  width: 100%;
  max-width: 360px;
  border-radius: var(--bs-card-border-radius, 16px);
  padding: 40px 30px 30px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--bs-card-box-shadow, 0 20px 60px rgba(0,0,0,0.18));
  border: 1px solid var(--bs-border-color, transparent);
  opacity: 1 !important;
  gap: 0 !important;
  min-width: unset;
  animation: swalPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes swalPop {
  0%   { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

/* --- 3. ÍCONE (GIF) --- */
.dmx-notify-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 18px;
  font-size: 0 !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: block !important;
}

.dmx-notify-icon i {
  display: none;
}

.dmx-notify.success .dmx-notify-icon {
  background-image: url('/assets/media/notifies/success.gif');
}
.dmx-notify.danger .dmx-notify-icon {
  background-image: url('/assets/media/notifies/error.gif');
}
.dmx-notify.warning .dmx-notify-icon {
  background-image: url('/assets/media/notifies/warning.gif');
}
.dmx-notify.info .dmx-notify-icon {
  background-image: url('/assets/media/notifies/info.gif');
}

/* --- 4. CORPO --- */
.dmx-notify-body {
  width: 100%;
  flex: unset;
  font-size: unset;
}

.dmx-notify-body::before {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bs-body-color, #333);
  margin-bottom: 8px;
  line-height: 1.2;
}

.dmx-notify.success .dmx-notify-body::before { content: "Sucesso!"; }
.dmx-notify.danger  .dmx-notify-body::before { content: "Erro!"; }
.dmx-notify.warning .dmx-notify-body::before { content: "Atenção!"; }
.dmx-notify.info    .dmx-notify-body::before { content: "Informação"; }

/* --- 5. MENSAGEM --- */
.dmx-notify-message {
  font-size: 1.300rem;
  color: var(--bs-gray-600, #777);
  font-weight: 600;
  line-height: 1.5;
}

.dmx-notify-title {
  display: none;
}

/* --- 6. BOTÃO OK --- */
.dmx-notify-close {
  margin-top: 24px;
  background-color: var(--bs-primary, #009ef7);
  color: var(--bs-primary-inverse, #fff);
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  display: inline-block !important;
  opacity: 1 !important;
  width: auto;
}

.dmx-notify-close:hover {
  background-color: var(--bs-primary-active, #0095e8);
  transform: scale(1.03);
}

.dmx-notify-close:active {
  transform: scale(0.98);
}

.dmx-notify-close i {
  display: none;
}

.dmx-notify-close::after {
  content: "OK";
}

/* --- 7. ANIMAÇÕES BASE --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}