/* Premium toastr — Linear/Stripe glass cards (overrides stock toastr.min.css) */
#toast-container {
  z-index: 10060 !important;
  pointer-events: none;
}
#toast-container.toast-top-right {
  top: 16px !important;
  right: 16px !important;
}
#toast-container.toast-top-left {
  top: 16px !important;
  left: 16px !important;
}
#toast-container > div {
  pointer-events: auto;
  width: min(380px, calc(100vw - 32px)) !important;
  margin: 0 0 10px !important;
  padding: 14px 44px 16px 58px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15, 17, 21, 0.08) !important;
  background-color: #fff !important;
  background-position: 16px 16px !important;
  background-size: 20px 20px !important;
  color: #111827 !important;
  opacity: 1 !important;
  box-shadow:
    0 18px 40px rgba(15, 17, 21, 0.12),
    0 4px 12px rgba(15, 17, 21, 0.06) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease !important;
  overflow: hidden;
}
#toast-container > div:hover {
  cursor: default !important;
  opacity: 1 !important;
  box-shadow:
    0 22px 48px rgba(15, 17, 21, 0.14),
    0 6px 14px rgba(15, 17, 21, 0.08) !important;
  transform: translateY(-1px);
}

#toast-container .toast-title {
  margin: 0 0 2px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.3 !important;
  color: #111827 !important;
}
#toast-container .toast-message {
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 450 !important;
  line-height: 1.45 !important;
  color: #6B7280 !important;
}
#toast-container .toast-message a,
#toast-container .toast-message label {
  color: var(--main-color-one, #E20246) !important;
}

#toast-container .toast-close-button {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  float: none !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  color: #9CA3AF !important;
  text-shadow: none !important;
  opacity: 1 !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}
#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
  background: #F3F4F6 !important;
  color: #111827 !important;
  opacity: 1 !important;
}

#toast-container .toast-progress {
  height: 3px !important;
  opacity: 1 !important;
  border-radius: 0 0 14px 14px;
}

/* Left accent rail */
#toast-container > .toast-success,
#toast-container > .toast-error,
#toast-container > .toast-warning,
#toast-container > .toast-info {
  background-image: none !important;
}
#toast-container > .toast-success::before,
#toast-container > .toast-error::before,
#toast-container > .toast-warning::before,
#toast-container > .toast-info::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}
#toast-container > .toast-success::after,
#toast-container > .toast-error::after,
#toast-container > .toast-warning::after,
#toast-container > .toast-info::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
}

/* Success — brand */
#toast-container > .toast-success {
  background-color: #fff !important;
  border-color: color-mix(in srgb, var(--main-color-one, #E20246) 18%, #E5E7EB) !important;
}
#toast-container > .toast-success::before {
  background-color: color-mix(in srgb, var(--main-color-one, #E20246) 12%, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E20246' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
#toast-container > .toast-success::after {
  background: var(--main-color-one, #E20246);
}
#toast-container > .toast-success .toast-progress {
  background: var(--main-color-one, #E20246) !important;
}

/* Error */
#toast-container > .toast-error {
  background-color: #fff !important;
  border-color: #FECACA !important;
}
#toast-container > .toast-error::before {
  background-color: #FEF2F2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}
#toast-container > .toast-error::after {
  background: #DC2626;
}
#toast-container > .toast-error .toast-progress {
  background: #DC2626 !important;
}

/* Warning */
#toast-container > .toast-warning {
  background-color: #fff !important;
  border-color: #FDE68A !important;
}
#toast-container > .toast-warning::before {
  background-color: #FFFBEB;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D97706' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3C/svg%3E");
}
#toast-container > .toast-warning::after {
  background: #D97706;
}
#toast-container > .toast-warning .toast-progress {
  background: #D97706 !important;
}

/* Info */
#toast-container > .toast-info {
  background-color: #fff !important;
  border-color: #BFDBFE !important;
}
#toast-container > .toast-info::before {
  background-color: #EFF6FF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
}
#toast-container > .toast-info::after {
  background: #2563EB;
}
#toast-container > .toast-info .toast-progress {
  background: #2563EB !important;
}

/* Admin dark theme */
html[data-theme="dark"] #toast-container > div {
  background-color: #181A20 !important;
  border-color: #2A2D36 !important;
  color: #F3F4F6 !important;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
html[data-theme="dark"] #toast-container .toast-title {
  color: #F9FAFB !important;
}
html[data-theme="dark"] #toast-container .toast-message {
  color: #9CA3AF !important;
}
html[data-theme="dark"] #toast-container .toast-close-button {
  color: #9CA3AF !important;
}
html[data-theme="dark"] #toast-container .toast-close-button:hover,
html[data-theme="dark"] #toast-container .toast-close-button:focus {
  background: #2A2D36 !important;
  color: #F3F4F6 !important;
}
html[data-theme="dark"] #toast-container > .toast-success::before {
  background-color: color-mix(in srgb, var(--main-color-one, #E20246) 22%, #181A20);
}
html[data-theme="dark"] #toast-container > .toast-error::before {
  background-color: rgba(220, 38, 38, 0.18);
}
html[data-theme="dark"] #toast-container > .toast-warning::before {
  background-color: rgba(217, 119, 6, 0.18);
}
html[data-theme="dark"] #toast-container > .toast-info::before {
  background-color: rgba(37, 99, 235, 0.18);
}

@media (max-width: 480px) {
  #toast-container > div {
    width: min(100vw - 24px, 380px) !important;
    padding: 12px 40px 14px 52px !important;
  }
  #toast-container > .toast-success::before,
  #toast-container > .toast-error::before,
  #toast-container > .toast-warning::before,
  #toast-container > .toast-info::before {
    width: 28px;
    height: 28px;
    left: 12px;
    top: 12px;
    border-radius: 8px;
  }
}
