/* Kindgerechte Toast Notification Styles */
.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFFFFF;
  color: #333;
  padding: 14px 20px;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), 0 0 0 4px rgba(255, 255, 255, 0.2);
  z-index: 2000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 90%;
  text-align: center;
  font-family: 'Comic Sans MS', 'Nunito', sans-serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  border: none;
  overflow: hidden;
}

.toast-notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #FF9AA2, #FFB7B2, #FFDAC1, #E2F0CB, #B5EAD7, #C7CEEA);
  border-radius: 20px 20px 0 0;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.toast-notification.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(10px) scale(0.9);
}

.toast-notification.success {
  background-color: #E8F5E9;
}

.toast-notification.success::before {
  background: linear-gradient(90deg, #A5D6A7, #81C784, #66BB6A);
}

.toast-notification.error {
  background-color: #FFEBEE;
}

.toast-notification.error::before {
  background: linear-gradient(90deg, #EF9A9A, #E57373, #EF5350);
}

.toast-notification.warning {
  background-color: #FFF8E1;
}

.toast-notification.warning::before {
  background: linear-gradient(90deg, #FFE082, #FFD54F, #FFCA28);
}

.toast-notification.info {
  background-color: #E3F2FD;
}

.toast-notification.info::before {
  background: linear-gradient(90deg, #90CAF9, #64B5F6, #42A5F5);
}

.toast-icon {
  margin-right: 12px;
  font-size: 22px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toast-notification.success .toast-icon {
  color: #4CAF50;
  background-color: #E8F5E9;
}

.toast-notification.error .toast-icon {
  color: #F44336;
  background-color: #FFEBEE;
}

.toast-notification.warning .toast-icon {
  color: #FF9800;
  background-color: #FFF8E1;
}

.toast-notification.info .toast-icon {
  color: #2196F3;
  background-color: #E3F2FD;
}

.toast-content {
  flex: 1;
  font-weight: 600;
}

.toast-close {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 20px;
  margin-left: 10px;
  padding: 0;
  transition: all 0.2s;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.toast-close:hover {
  color: #333;
  background-color: rgba(0, 0, 0, 0.05);
}

/* Kindgerechte Animationen */
@keyframes toastFadeIn {
  0% { 
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.8);
  }
  50% {
    transform: translateX(-50%) translateY(-5px) scale(1.05);
  }
  70% {
    transform: translateX(-50%) translateY(2px) scale(0.98);
  }
  100% { 
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes toastFadeOut {
  0% { 
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% { 
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.9);
  }
}

@keyframes toastBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes sparkle {
  0% { transform: scale(0) rotate(0deg); opacity: 0; }
  50% { transform: scale(1) rotate(180deg); opacity: 1; }
  100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

/* Dekorative Elemente für den Toast */
.toast-decoration {
  position: absolute;
  animation: toastBounce 2s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .toast-notification {
    width: 90%;
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .toast-icon {
    font-size: 18px;
    width: 28px;
    height: 28px;
  }
}