.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  width: calc(100% - 40px);
  max-width: 400px;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  min-width: 290px;
  background-color: #fff;
  border-radius: 12px;
  border-left: 4px solid transparent;
  pointer-events: auto;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(40px) scale(.95);
  transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .35s cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,.06), 0 8px 10px -6px rgba(0,0,0,.04);
}
.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  margin-top: 1px;
}
.toast-content {
  flex-grow: 1;
  overflow-wrap: anywhere;
}
.toast-content strong {
  display: block;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.toast-message {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
}
.toast-close {
  background: transparent;
  border: none;
  outline: none;
  padding: 6px;
  margin-top: -4px;
  margin-right: -4px;
  color: #9ca3af;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  transition: background-color .2s cubic-bezier(.4,0,.2,1), color .2s cubic-bezier(.4,0,.2,1), transform .1s ease;
}
.toast-close:hover {
  color: #1f2937;
  background-color: rgba(0,0,0,.06);
}
.toast-close:active {
  transform: scale(.92);
}
.toast-close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}
.toast.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.toast.hiding {
  opacity: 0;
  transform: scale(.9) translateY(-12px);
  transition: transform .3s cubic-bezier(.4,0,1,1), opacity .3s cubic-bezier(.4,0,1,1);
}
.toast-success { border-left-color: #059669; background-color: #f0fdf4; }
.toast-success .toast-icon { color: #059669; }
.toast-error { border-left-color: #ef4444; background-color: #fef2f2; }
.toast-error .toast-icon { color: #ef4444; }
.toast-info { border-left-color: #2563eb; background-color: #eff6ff; }
.toast-info .toast-icon { color: #2563eb; }
.toast-warning { border-left-color: #d97706; background-color: #fffbeb; }
.toast-warning .toast-icon { color: #d97706; }
.toast-loading { border-left-color: #7c3aed; background-color: #f5f3ff; }
.toast-loading .toast-icon { color: #7c3aed; }

/* Fixed Mobile Media Query */
@media (max-width: 480px) {
  .toast-container {
    top: auto;
    bottom: 20px;
    left: 20px;
    right: 20px;
    transform: none;
    width: auto;
    max-width: none;
  }
  .toast {
    min-width: 0;
    width: 100%;
    transform: translateY(40px) scale(.95);
  }
  .toast.show {
    transform: translateY(0) scale(1);
  }
  .toast.hiding {
    transform: scale(.9) translateY(12px);
  }
}
