/* =========================================================
   IronPhantom – Admin Toast Notifications
   Dark / Red / Compact / Rectangular / Single Alert
========================================================= */

.ip-admin-toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 390px;
  max-width: calc(100vw - 48px);
  pointer-events: none;
}

/* =========================================================
   TOAST BASE
========================================================= */

.ip-admin-toast {
  position: relative;
  width: 100%;
  min-height: 86px;
  background: linear-gradient(135deg, #070709 0%, #111114 58%, #070709 100%);
  color: #e5e7eb;
  border: 1px solid rgba(120, 24, 32, 0.65);
  border-left: 4px solid #b91c1c;
  border-radius: 9px;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 18px rgba(185, 28, 28, 0.10);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  pointer-events: auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.ip-admin-toast.ip-admin-toast-show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   HEADER
========================================================= */

.ip-admin-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px 6px;
  border-bottom: 1px solid rgba(120, 24, 32, 0.38);
  background: rgba(255, 255, 255, 0.015);
}

.ip-admin-toast-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f9fafb;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1;
}

.ip-admin-toast-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #dc2626;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.75);
}

.ip-admin-toast-title::after {
  content: "ALERT";
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1;
  color: #fecaca;
  background: rgba(185, 28, 28, 0.20);
  border: 1px solid rgba(248, 113, 113, 0.22);
}

/* Close button */

.ip-admin-toast-close {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #9ca3af;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.ip-admin-toast-close:hover {
  background: rgba(185, 28, 28, 0.28);
  color: #ffffff;
}

/* =========================================================
   BODY - COMPACT
========================================================= */

.ip-admin-toast-body {
  position: relative;
  padding: 8px 11px 9px 42px;
  font-size: 12px;
  line-height: 1.34;
}

.ip-admin-toast-body::before {
  content: "!";
  position: absolute;
  top: 10px;
  left: 11px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, #7f1d1d, #dc2626);
  box-shadow: 0 0 12px rgba(185, 28, 28, 0.35);
}

.ip-admin-toast-body p {
  margin: 0 0 4px;
  color: #cbd5e1;
}

.ip-admin-toast-body strong {
  color: #ffffff;
  font-weight: 800;
}

/* Main message */

.ip-toast-title {
  margin: 0 0 4px !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

/* Risk flags */

.ip-toast-flags {
  margin: 5px 0 6px;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(127, 29, 29, 0.10);
  border: 1px solid rgba(127, 29, 29, 0.32);
  color: #d1d5db;
  font-size: 11.5px;
  line-height: 1.42;
  max-height: 52px;
  overflow: hidden;
}

/* Hint */

.ip-toast-hint {
  margin: 5px 0 0 !important;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(185, 28, 28, 0.10);
  border: 1px solid rgba(185, 28, 28, 0.22);
  color: #fca5a5 !important;
  font-size: 11.5px !important;
  line-height: 1.32;
}

/* =========================================================
   FOOTER / BUTTONS
========================================================= */

.ip-toast-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(120, 24, 32, 0.34);
  color: #8b949e;
  font-size: 11px;
  flex-wrap: wrap;
}

.ip-toast-footer span {
  display: none;
}

.ip-toast-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 6px;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 750;
  color: #f3f4f6 !important;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.ip-toast-link:hover,
.ip-toast-link:focus {
  background: rgba(185, 28, 28, 0.22);
  border-color: rgba(248, 113, 113, 0.32);
  color: #ffffff !important;
  transform: translateY(-1px);
  outline: none;
}

.ip-toast-open-dashboard {
  background: linear-gradient(135deg, #7f1d1d, #b91c1c);
  border-color: rgba(248, 113, 113, 0.28);
}

.ip-toast-open-dashboard:hover,
.ip-toast-open-dashboard:focus {
  background: linear-gradient(135deg, #991b1b, #dc2626);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 782px) {
  .ip-admin-toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }

  .ip-admin-toast {
    min-width: auto;
    max-width: 100%;
    border-radius: 9px;
  }

  .ip-admin-toast-header {
    padding: 7px 10px 6px;
  }

  .ip-admin-toast-body {
    padding: 8px 10px 9px 40px;
  }

  .ip-toast-footer {
    justify-content: flex-end;
  }

  .ip-toast-link {
    flex: 0 0 auto;
  }
}
