/* Toast Container */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* Toast Notification */
.toast {
  position: relative;
  padding: 15px 30px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #fff;
  display: flex;
  max-width: 20rem;
  align-items: center;
  gap: 10px;
  background-color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

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

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

.toast.warning {
  background-color: #ffc107;
}

.toast.info {
  background-color: #17a2b8;
}

/* Close Button */
.toast .close {
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #fff;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5); /* Light progress bar */
    width: 100%;
    border-radius: 2px;
}

@media (max-width: 578px) {
  #toast-container {
    top: auto;
    bottom: 20px;
  }
}
