/* Shared alert/toast component — used by both the public site and the
   Admin Dashboard layout so styling stays in one place. */

.admin-entry-alerts {
  width: 1024px;
  max-width: 100%;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.admin-entry-alert {
  border: 1px solid #d2d6db;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px 24px;
  min-height: 132px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  direction: rtl;
}

.admin-entry-alert::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 8px;
  opacity: 0.7;
}

.admin-entry-alert__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #1f2a37;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.admin-entry-alert__content {
  flex: 1;
  min-height: 40px;
  text-align: right;
}

.admin-entry-alert__content h4 {
  margin: 0;
  color: #1f2a37;
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
}

.admin-entry-alert__content p {
  margin: 8px 0 0;
  color: #384250;
  font-size: 14px;
  line-height: 20px;
  text-align: right;
}

.admin-entry-alert__actions {
  margin-top: 8px;
  padding-inline-end: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-entry-alert__actions button {
  height: 32px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #161616;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  padding: 0 12px;
  cursor: pointer;
}

.admin-entry-alert.is-hidden {
  display: none;
}

.admin-entry-alert__icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.admin-entry-alert.is-neutral::after {
  background: #e5e7eb;
}

.admin-entry-alert.is-neutral .admin-entry-alert__icon {
  background: #f9fafb;
  color: #1f2a37;
}

.admin-entry-alert.is-info::after {
  background: #1570ef;
}

.admin-entry-alert.is-info .admin-entry-alert__icon {
  background: #eff8ff;
  color: #1570ef;
}

.admin-entry-alert.is-destructive::after {
  background: #d92d20;
}

.admin-entry-alert.is-destructive .admin-entry-alert__icon {
  background: #fef3f2;
  color: #d92d20;
}

.admin-entry-alert.is-warning {
  min-height: 84px;
}

.admin-entry-alert.is-warning::after {
  background: #dc6803;
}

.admin-entry-alert.is-warning .admin-entry-alert__icon {
  background: #fffaeb;
  color: #dc6803;
}

.admin-entry-alert.is-success::after {
  background: #079455;
}

.admin-entry-alert.is-success .admin-entry-alert__icon {
  background: #ecfdf3;
  color: #079455;
}

.admin-entry-alert.is-success .admin-entry-alert__content h4 {
  color: #067647;
}

/* Floating toast for TempData alerts — top-left, non-blocking */
.admin-toast-overlay {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-toast-overlay .admin-entry-alert {
  width: 420px;
  max-width: 90vw;
  min-height: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  animation: toast-slide-in 0.3s ease-out;
}

@keyframes toast-slide-in {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
