/*!
 * Enov8Ntfy v1.0.0 — Material Design notifications for Bootstrap 5
 * https://enov8.com
 */

/* ── Container ─────────────────────────────────────────────── */
#enov8-ntfy-container {
  position: fixed;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

#enov8-ntfy-container.top-right     { top: 16px;    right: 16px;  align-items: flex-end; }
#enov8-ntfy-container.top-left      { top: 16px;    left: 16px;   align-items: flex-start; }
#enov8-ntfy-container.top-center    { top: 16px;    left: 50%;    transform: translateX(-50%); align-items: center; }
#enov8-ntfy-container.bottom-right  { bottom: 16px; right: 16px;  align-items: flex-end; }
#enov8-ntfy-container.bottom-left   { bottom: 16px; left: 16px;   align-items: flex-start; }
#enov8-ntfy-container.bottom-center { bottom: 16px; left: 50%;    transform: translateX(-50%); align-items: center; }

/* ── Toast base — overrides Bootstrap defaults ──────────────── */
.enov8-ntfy.toast {
  --bs-toast-bg: transparent;
  --bs-toast-border-color: transparent;
  --bs-toast-border-width: 0;
  --bs-toast-box-shadow: none;
  --bs-toast-color: #fff;

  min-width: 288px;
  max-width: 440px;
  border: none !important;
  border-radius: 4px !important;
  box-shadow: 0 3px 5px -1px rgba(0,0,0,.2),
              0 6px 10px 0   rgba(0,0,0,.14),
              0 1px 18px 0   rgba(0,0,0,.12) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .25px;
  overflow: hidden;
  pointer-events: all;
  position: relative;
  /* slide-in layered on top of Bootstrap's opacity fade */
  transition: opacity .2s linear, transform .2s ease !important;
}

/* Slide down from top before show */
#enov8-ntfy-container.top-right  .enov8-ntfy.toast:not(.show),
#enov8-ntfy-container.top-left   .enov8-ntfy.toast:not(.show),
#enov8-ntfy-container.top-center .enov8-ntfy.toast:not(.show) {
  transform: translateY(-8px);
}
/* Slide up from bottom before show */
#enov8-ntfy-container.bottom-right  .enov8-ntfy.toast:not(.show),
#enov8-ntfy-container.bottom-left   .enov8-ntfy.toast:not(.show),
#enov8-ntfy-container.bottom-center .enov8-ntfy.toast:not(.show) {
  transform: translateY(8px);
}

.enov8-ntfy.toast.show { transform: translateY(0); }

/* ── Colour variants ─────────────────────────────────────────── */
.enov8-ntfy.ntfy-success { background: #388e3c !important; }
.enov8-ntfy.ntfy-error   { background: #c62828 !important; }
.enov8-ntfy.ntfy-warning { background: #e65100 !important; }
.enov8-ntfy.ntfy-info    { background: #1565c0 !important; }
.enov8-ntfy.ntfy-default { background: #212121 !important; }

/* ── Body layout ─────────────────────────────────────────────── */
.enov8-ntfy .toast-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  color: #fff !important;
}

/* ── Icon ────────────────────────────────────────────────────── */
.enov8-ntfy .ntfy-icon {
  flex-shrink: 0;
  opacity: .92;
  display: flex;
  align-items: center;
  margin-top: 1px;
}

/* ── Content wrapper (title + message) ───────────────────────── */
.enov8-ntfy .ntfy-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Title ───────────────────────────────────────────────────── */
.enov8-ntfy .ntfy-title {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  color: #fff;
}

/* ── Message ─────────────────────────────────────────────────── */
.enov8-ntfy .ntfy-message {
  line-height: 1.45;
  color: #fff;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.enov8-ntfy.has-title .ntfy-message {
  font-size: 13px;
  opacity: .85;
}

/* ── Action button ───────────────────────────────────────────── */
.enov8-ntfy .ntfy-action {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 4px 8px;
  margin-left: 4px;
  border-radius: 2px;
  cursor: pointer;
  opacity: .9;
  white-space: nowrap;
  transition: background .15s ease, opacity .15s ease;
  line-height: 1.4;
}
.enov8-ntfy .ntfy-action:hover  { background: rgba(255,255,255,.18); opacity: 1; }
.enov8-ntfy .ntfy-action:active { background: rgba(255,255,255,.28); }

/* ── Close button ────────────────────────────────────────────── */
.enov8-ntfy .ntfy-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,.65);
  padding: 0;
  margin-left: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color .15s ease;
  line-height: 1;
}
.enov8-ntfy .ntfy-close:hover { color: #fff; }

/* ── Progress bar ────────────────────────────────────────────── */
.enov8-ntfy .ntfy-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,.38);
  animation: ntfy-shrink linear forwards;
}
@keyframes ntfy-shrink {
  from { width: 100%; }
  to   { width: 0%; }
}
