@use "../abstracts/variables" as *;
@use "../abstracts/mixins" as *;

.toast-container {
  position: fixed;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: #{$z-index-ui-highest};
}

.toast-container.bottom-center {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.toast-container.bottom-left {
  bottom: 20px;
  left: 20px;
}

.toast-container.bottom-right {
  bottom: 20px;
  right: 20px;
}

.toast-container.top-center {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.toast-container.top-left {
  top: 20px;
  left: 20px;
}

.toast-container.top-right {
  top: 20px;
  right: 20px;
}

.toast {
  padding: 10px 20px;
  border-radius: #{$border-radius-medium};
  color: var(--primary-color);
  cursor: pointer;
  animation: fadeIn 0.3s, fadeOut 0.5s 2.5s;
}

.toast.success {
  background: #4caf50;
}

.toast.error {
  background: #f44336;
}

.toast.info {
  background: #2196f3;
}

.toast.warning {
  background: #ff9800;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}