#atoast-container {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 100%;
}

.atoast {
  display: flex;
  position: relative;
  cursor: pointer;
  pointer-events: all;
  justify-content: center;
  overflow: hidden;
  align-items: center;
  padding: 10px 20px;
  border-radius: 2px;
  transition: opacity 0.3s ease;
  --tw-shadow: 0 1px 3px 0 #00000096, 0 1px 2px -1px #00000096;
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #00000096), var(--tw-ring-shadow, 0 0 #00000096), var(--tw-shadow);
}

.atoast .progress-bar.show {
  opacity: 1;
}

.atoast .progress-bar.hidden {
  opacity: 0;
}

.atoast .progress-bar {
  width: 100%;
  height: 5px;
  /* background-color: #ccc; */
  position: absolute;
  bottom: 0;
  left: 0;
}

.atoast .progress {
  height: 100%;
  background-color: #fff;
}


.atoast.success {
  background-color: #4CAF50;
  color: #fff;
}

.atoast.error {
  background-color: #f44336;
  color: #fff;
}

.atoast.warning {
  background-color: #ff9800;
  color: #fff;
}

.atoast.info {
  background-color: #2196F3;
  color: #fff;
}

.atoast.default {
  background-color: #555;
  color: #fff;
}

.atoast.promise {
  background-color: #555;
  color: #fff;
}

.atoast .icon {
  margin-right: 10px;
}

/* Animations */
.right-to-left {
  animation: rightToLeft 0.5s ease forwards;
}

@keyframes rightToLeft {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.right-to-left-close {
  animation: rightToLeft-close 0.5s ease forwards;
}

@keyframes rightToLeft-close {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(150%);
  }
}

.left-to-right {
  animation: leftToRight 0.5s ease forwards;
}

@keyframes leftToRight {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.left-to-right-close {
  animation: leftToRight-close 0.5s ease forwards;
}

@keyframes leftToRight-close {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-150%);
  }
}

.top-to-bottom {
  animation: topToBottom 0.5s ease forwards;
}

@keyframes topToBottom {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.top-to-bottom-close {
  animation: topToBottom-close 0.5s ease forwards;
}

@keyframes topToBottom-close {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-150%);
  }
}

.bottom-to-top {
  animation: bottomToTop 0.5s ease forwards;
}

@keyframes bottomToTop {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.bottom-to-top-close {
  animation: bottomToTop-close 0.5s ease forwards;
}

@keyframes bottomToTop-close {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(150%);
  }
}

.spinn {
  animation: spinn 1s infinite linear;
}
@keyframes spinn {
  from {
    transform: rotate(0)
  }

  to {
    transform: rotate(360deg);
  }
}