/* Toast Container */
.toast-container {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
}

.toast-container.top-right {
  top: 1rem;
  right: 1rem;
}

.toast-container.top-left {
  top: 1rem;
  left: 1rem;
}

.toast-container.top-center {
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.toast-container.bottom-right {
  bottom: 1rem;
  right: 1rem;
}

.toast-container.bottom-left {
  bottom: 1rem;
  left: 1rem;
}

.toast-container.bottom-center {
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Toast Item */
.toast {
  min-width: 300px;
  max-width: 500px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  pointer-events: auto;
  animation: slideIn 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

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

.toast.toast-exit {
  animation: slideOut 0.3s ease-in forwards;
}

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

/* Toast Types */
.toast.toast-success {
  background-color: #10b981;
  color: white;
}

.toast.toast-error {
  background-color: #ef4444;
  color: white;
}

.toast.toast-warning {
  background-color: #f59e0b;
  color: white;
}

.toast.toast-info {
  background-color: #3b82f6;
  color: white;
}

/* Toast Icon */
.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Toast Content */
.toast-content {
  flex: 1;
}

.toast-message {
  font-size: 0.875rem;
  opacity: 0.95;
}

/* Close Button */
.toast-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  opacity: 1;
}

/* Progress Bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.7);
  animation: progress linear;
}

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