.toast {
  position: fixed;
  top: 20px;
  left: 20px;
  max-width: 320px;
  padding: 15px 20px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.4s ease, fadeOut 0.6s ease 3.2s forwards;
  overflow: hidden;
  position: fixed;
}

.toast::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  animation: barraTempo 3s linear forwards;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.toast.sucesso {
  background-color: #28a745;
}

.toast.sucesso::after {
  background-color: #b2f5b2;
}

.toast.erro {
  background-color: #dc3545;
}

.toast.erro::after {
  background-color: #f5b2b2;
}

.toast .icon {
  font-size: 18px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(-40px);
  }
}

@keyframes barraTempo {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}