.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.toast {
  display: flex;
  align-items: flex-start;
  width: 100%;
  background-color: var(--background-main);
  border: 1px solid var(--border-light-mode);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: toast-slide-in 0.3s ease-out forwards;
}

.toast-icon {
  flex-shrink: 0;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  font-size: 1.2rem;
  color: var(--background-color-main-light);
  border-radius: 7px 0 0 7px;
}

.toast.success .toast-icon {
  background-color: var(--success);
}

.toast.error .toast-icon {
  background-color: var(--error);
}
.toast.warning .toast-icon {
  background-color: var(--warning);
}

.toast.info .toast-icon {
  background-color: var(--primary-color);
}

.toast-content {
  flex-grow: 1;
  padding: 12px;
}

.toast-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-thowine-light);
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  font-size: 0.9rem;
  color: var(--text-thowine-light);
  opacity: 0.7;
}

.toast-close:hover {
  opacity: 1;
  color: var(--text);
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.slide-out {
  animation: toast-slide-out 0.4s ease-in forwards;
}
@keyframes toast-slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
