/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.toast {
  background: var(--bv-bg-card, #ffffff);
  border: 1px solid var(--bv-border-soft, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--toast-color, var(--bv-green, #315d3f));
}

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

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

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.toast-icon {
  font-size: 1.25rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.toast-message {
  color: var(--bv-text-main, #1f2937);
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--bv-text-muted, #6b7280);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease;
  border-radius: 4px;
}

.toast-close:hover {
  color: var(--bv-text-main, #1f2937);
  background: var(--bv-bg-soft, #f3f4f6);
}

.toast-close:active {
  transform: scale(0.95);
}

/* Toast Types */
.toast-success {
  --toast-color: var(--bv-green, #315d3f);
  border-left-color: var(--toast-color);
}

.toast-success .toast-content {
  color: var(--toast-color);
}

.toast-error {
  --toast-color: #dc2626;
  border-left-color: var(--toast-color);
}

.toast-error .toast-content {
  color: #991b1b;
}

.toast-warning {
  --toast-color: #f59e0b;
  border-left-color: var(--toast-color);
}

.toast-warning .toast-content {
  color: #92400e;
}

.toast-info {
  --toast-color: #3b82f6;
  border-left-color: var(--toast-color);
}

.toast-info .toast-content {
  color: #1e40af;
}

/* Mobile */
@media (max-width: 600px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    width: auto;
  }

  .toast {
    padding: 0.875rem 1rem;
  }

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

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

/* Animation für mehrere Toasts */
.toast-container .toast:nth-child(1) {
  animation-delay: 0ms;
}

.toast-container .toast:nth-child(2) {
  animation-delay: 50ms;
}

.toast-container .toast:nth-child(3) {
  animation-delay: 100ms;
}

