/* ================================
   TOAST NOTIFICATIONS — Venside Premium Design
   Höchste Spezifität um Konflikte zu verhindern
   ================================ */

/* Toast Container */
#toast-container {
  position: fixed !important;
  top: 90px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 99999 !important;
  pointer-events: none;
  max-width: 420px;
  width: 100%;
  padding: 0 16px;
}

/* Toast Item — Premium Dark Glassmorphism */
#toast-container .toast {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.95)) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0 !important;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
  min-width: 320px;
  max-width: 420px;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  margin-bottom: 12px;
  color: #fff !important;
  /* Animation */
  opacity: 0;
  transform: translateY(-40px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: none !important;
  display: block !important;
}

#toast-container .toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Inner Content */
#toast-container .toast-inner {
  padding: 1rem 1.25rem;
}

/* Header */
#toast-container .toast-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

#toast-container .toast-header:has(~ .toast-body),
#toast-container .toast-header:has(~ .toast-actions) {
  margin-bottom: 0.85rem;
}

/* Avatar Wrapper */
#toast-container .toast-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

/* User-Avatar */
#toast-container .toast-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Venside Badge auf Avatar */
#toast-container .toast-avatar-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Nur-Logo (kein Userbild) */
#toast-container .toast-logo-only {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#toast-container .toast-avatar-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Info */
#toast-container .toast-info {
  flex: 1;
  min-width: 0;
}

/* Title — SCHWARZ auf hellem Hintergrund wäre falsch, hier WEISS auf dunklem Hintergrund */
#toast-container .toast-title {
  display: block;
  color: #f1f5f9 !important;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Subtitle (Username) */
#toast-container .toast-subtitle {
  display: block;
  color: rgba(255, 255, 255, 0.55) !important;
  font-weight: 500;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Close Button */
#toast-container .toast-close {
  background: none !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.35) !important;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.3rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#toast-container .toast-close:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Body / Message */
#toast-container .toast-body {
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

#toast-container .toast-message {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-word;
}

/* Action Button */
#toast-container .toast-actions {
  display: flex;
}

#toast-container .toast-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#toast-container .toast-action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  color: #fff !important;
  text-decoration: none !important;
}

/* Responsive */
@media (max-width: 480px) {
  #toast-container {
    top: 75px !important;
    max-width: none;
    width: 100%;
    padding: 0 10px;
  }
  
  #toast-container .toast {
    min-width: unset;
    max-width: none;
    border-radius: 16px !important;
  }
  
  #toast-container .toast-avatar {
    width: 40px;
    height: 40px;
  }
  
  #toast-container .toast-avatar-badge {
    width: 16px;
    height: 16px;
  }
  
  #toast-container .toast-logo-only {
    width: 38px;
    height: 38px;
  }
}
