/* Toast Notification System */

/* Container für alle Toast-Benachrichtigungen */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
  max-width: 90%;
  width: 500px;
}

/* Einzelne Toast-Nachricht */
.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  animation: slideUp 0.3s ease-out;
  transition: all 0.3s ease;
  min-height: 60px;
}

/* Toast-Inhalt */
.toast-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Toast-Icon */
.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.toast-icon svg {
  width: 100%;
  height: 100%;
}

/* Toast-Text */
.toast-message {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* Close-Button */
.toast-close {
  background: none;
  border: none;
  padding: 0.25rem;
  margin-left: 1rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.toast-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.toast-close svg {
  width: 20px;
  height: 20px;
}

/* Success Toast */
.toast-success {
  background: rgba(16, 185, 129, 0.95);
  color: white;
  border-left: 4px solid #059669;
}

/* Error Toast */
.toast-error {
  background: rgba(239, 68, 68, 0.95);
  color: white;
  border-left: 4px solid #dc2626;
}

/* Info Toast */
.toast-info {
  background: rgba(59, 130, 246, 0.95);
  color: white;
  border-left: 4px solid #2563eb;
}

/* Warning Toast */
.toast-warning {
  background: rgba(245, 158, 11, 0.95);
  color: white;
  border-left: 4px solid #d97706;
}

/* Slide-Up Animation */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Fade-Out Animation */
@keyframes fadeOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(20px);
    opacity: 0;
  }
}

.toast-hiding {
  animation: fadeOut 0.3s ease-out forwards;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .toast-container {
    bottom: 1rem;
    width: calc(100% - 2rem);
    max-width: none;
  }

  .toast {
    padding: 0.875rem 1.25rem;
  }

  .toast-message {
    font-size: 0.9375rem;
  }

  .toast-icon {
    font-size: 1.25rem;
  }
}
