/* Toast Container - Fixed Position */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none; /* Allow clicking through container */
}

/* Base Toast Styles */
.toast {
  min-width: 300px;
  max-width: 350px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
  font-family: "Poppins", sans-serif;
  border-left: 5px solid #333;
}

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

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
}

.toast i {
  font-size: 1.2rem;
}

/* Toast Variants */
.toast-success {
  border-left-color: #2ecc71;
}
.toast-success i {
  color: #2ecc71;
}

.toast-error {
  border-left-color: #e74c3c;
}
.toast-error i {
  color: #e74c3c;
}

.toast-warning {
  border-left-color: #f1c40f;
}
.toast-warning i {
  color: #f1c40f;
}

.toast-info {
  border-left-color: #3498db;
}
.toast-info i {
  color: #3498db;
}

/* Progress Bar Animation */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
}

.toast-progress::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: currentColor;
  animation: progress linear forwards;
  /* Duration will be set by JS or default 3s here, simplified to CSS for now */
  animation-duration: 3s;
}

.toast-success .toast-progress::before {
  background-color: #2ecc71;
}
.toast-error .toast-progress::before {
  background-color: #e74c3c;
}
.toast-warning .toast-progress::before {
  background-color: #f1c40f;
}
.toast-info .toast-progress::before {
  background-color: #3498db;
}

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

/* Mobile Responsive */
@media (max-width: 480px) {
  #toast-container {
    right: 50%;
    transform: translateX(50%);
    width: 90%;
  }
  .toast {
    min-width: 100%;
  }
}
