/* Toast Container */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
}

/* Toast Base Styles */
.toast {
  background: #333;
  color: white;
  padding: 0;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease-in-out;
  pointer-events: auto;
  min-width: 300px;
  max-width: 500px;
}

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

.toast.hide {
  opacity: 0;
  transform: translateX(100%);
}

/* Toast Content */
.toast-content {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
}

.toast-icon {
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Toast Types */
.toast-success {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border-left: 4px solid #2E7D32;
}

.toast-error {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  border-left: 4px solid #C62828;
}

.toast-warning {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  border-left: 4px solid #E65100;
}

.toast-info {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  border-left: 4px solid #0D47A1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .toast {
    min-width: auto;
    max-width: none;
  }
  
  .toast-content {
    padding: 10px 12px;
  }
  
  .toast-message {
    font-size: 13px;
  }
}

/* Animation for multiple toasts */
.toast:nth-child(1) { animation-delay: 0ms; }
.toast:nth-child(2) { animation-delay: 100ms; }
.toast:nth-child(3) { animation-delay: 200ms; }
