/* Live Notification Toasts */
#live-notification-toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
}

.toast-notification {
  pointer-events: auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(212, 166, 10, 0.3);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(212, 166, 10, 0.08);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 320px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(120%) scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(8px);
  position: relative;
}

.toast-notification--visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.toast-notification--removing {
  opacity: 0;
  transform: translateX(120%) scale(0.8);
  transition: all 0.25s ease-out;
}

.toast-notification__content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.toast-notification__image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(212, 166, 10, 0.2);
}

.toast-notification__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toast-notification__message {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  word-wrap: break-word;
}

.toast-notification__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 300;
}

.toast-notification__close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #1f2937;
}

.toast-notification:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(212, 166, 10, 0.12);
  transform: translateY(-2px) scale(1.02);
}

/* Dark theme */
html[data-theme="dark"] .toast-notification {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.98), rgba(17, 24, 39, 0.95));
  border-color: rgba(250, 204, 21, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(250, 204, 21, 0.1);
}

html[data-theme="dark"] .toast-notification__message {
  color: #f3f4f6;
}

html[data-theme="dark"] .toast-notification__image {
  border-color: rgba(250, 204, 21, 0.3);
}

html[data-theme="dark"] .toast-notification__close {
  color: #9ca3af;
}

html[data-theme="dark"] .toast-notification__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
}

html[data-theme="dark"] .toast-notification:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(250, 204, 21, 0.15);
}

/* Mobile responsive */
@media (max-width: 575.98px) {
  #live-notification-toasts {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .toast-notification {
    min-width: 0;
    max-width: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .toast-notification {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .toast-notification--visible {
    transform: translateX(0) scale(1);
  }

  .toast-notification--removing {
    transform: translateX(0) scale(1);
  }

  .toast-notification:hover {
    transform: none;
  }
}
