#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  width: 90%;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(30, 30, 45, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: #e0e0e0;
  font-family: "Roboto Condensed", sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: toast-in 0.5s cubic-bezier(0.21, 1.02, 0.73, 1), toast-out 0.5s cubic-bezier(0.21, 1.02, 0.73, 1) var(--toast-duration, 5s) forwards;
}

.toast__icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: -2px;
}

.toast__message {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}

.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  animation: timer var(--toast-duration, 5s) linear forwards;
}

.toast--success {
  border-left: 4px solid #4ade80;
}
.toast--success .toast__icon {
  color: #4ade80;
}
.toast--success::after {
  background-color: #4ade80;
}

.toast--error {
  border-left: 4px solid #f87171;
}
.toast--error .toast__icon {
  color: #f87171;
}
.toast--error::after {
  background-color: #f87171;
}

.toast--info {
  border-left: 4px solid #facc15;
}
.toast--info .toast__icon {
  color: #facc15;
}
.toast--info::after {
  background-color: #facc15;
}

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

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

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