/* ═══════════════════════════════════════════════════════════
   RIS - Rezept Index System
   Toast Notifications
   ═══════════════════════════════════════════════════════════ */

/* Toast Container */
.toast-container {
  position: fixed;
  top: var(--space-2xl);
  right: var(--space-2xl);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  pointer-events: none;
}

/* Toast */
.toast {
  min-width: 300px;
  max-width: 400px;
  padding: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  pointer-events: auto;
  animation: slideInRight 0.3s ease;
}

.toast.removing {
  animation: slideOutRight 0.3s ease forwards;
}

/* Toast Icon */
.toast-icon {
  font-size: var(--font-xl);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast Content */
.toast-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.toast-title {
  font-size: var(--font-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.toast-message {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-base);
}

/* Toast Close Button */
.toast-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.toast-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Toast Variants */
.toast-success {
  border-left: 4px solid var(--status-ok);
}

.toast-success .toast-icon {
  color: var(--status-ok);
}

.toast-error {
  border-left: 4px solid var(--status-error);
}

.toast-error .toast-icon {
  color: var(--status-error);
}

.toast-warning {
  border-left: 4px solid var(--status-warn);
}

.toast-warning .toast-icon {
  color: var(--status-warn);
}

.toast-info {
  border-left: 4px solid var(--status-info);
}

.toast-info .toast-icon {
  color: var(--status-info);
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* Responsive */
@media (max-width: 768px) {
  .toast-container {
    top: var(--space-lg);
    right: var(--space-lg);
    left: var(--space-lg);
  }
  
  .toast {
    min-width: auto;
    max-width: 100%;
  }
}
