#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid #fff;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.toast.dismissing {
  animation: toastSlideOut 0.3s forwards ease-in;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  font-size: 1.2rem;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0 0 12px;
  line-height: 1;
  transition: color 0.2s;
}

.toast-close:hover {
  color: #fff;
}

.toast-info {
  border-left-color: #3498db;
}

.toast-info .toast-icon {
  color: #3498db;
}

.toast-warning {
  border-left-color: #f1c40f;
}

.toast-warning .toast-icon {
  color: #f1c40f;
}

.toast-error {
  border-left-color: #e74c3c;
}

.toast-error .toast-icon {
  color: #e74c3c;
}

.toast-debug {
  border-left-color: #9b59b6;
  font-size: 0.85rem;
}

.toast-debug .toast-icon {
  color: #9b59b6;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.flash-once {
  animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), flashYellow 0.5s ease-in-out 0.4s 1;
}

.flash-twice {
  animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), flashRed 0.5s ease-in-out 0.4s 2;
}

@keyframes flashYellow {
  0%, 100% {
    background: rgba(15, 15, 15, 0.9);
  }
  50% {
    background: rgba(241, 196, 15, 0.3);
  }
}

@keyframes flashRed {
  0%, 100% {
    background: rgba(15, 15, 15, 0.9);
  }
  50% {
    background: rgba(231, 76, 60, 0.3);
  }
}
