/* Toast Notification Styles */

.toast-container {
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  pointer-events: none !important;
}

.toast {
  min-width: 300px !important;
  max-width: 500px !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  animation: slideDown 0.3s ease-out !important;
  pointer-events: all !important;
  backdrop-filter: blur(10px) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.toast.success {
  background: rgba(16, 185, 129, 0.95) !important;
  color: white !important;
}

.toast.error {
  background: rgba(239, 68, 68, 0.95) !important;
  color: white !important;
}

.toast.warning {
  background: rgba(245, 158, 11, 0.95) !important;
  color: white !important;
}

.toast-icon {
  flex-shrink: 0 !important;
  width: 24px !important;
  height: 24px !important;
}

.toast-content {
  flex: 1 !important;
}

.toast-title {
  font-weight: 600 !important;
  margin-bottom: 4px !important;
}

.toast-message {
  font-size: 14px !important;
  opacity: 0.95 !important;
  white-space: pre-line !important;
}

.toast-close {
  flex-shrink: 0 !important;
  width: 20px !important;
  height: 20px !important;
  cursor: pointer !important;
  opacity: 0.7 !important;
  transition: opacity 0.2s !important;
}

.toast-close:hover {
  opacity: 1 !important;
}

/* Animacje */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Responsywność */
@media (max-width: 768px) {
  .toast {
    min-width: 280px !important;
    max-width: calc(100vw - 40px) !important;
  }
}

@media (max-width: 480px) {
  .toast {
    min-width: 250px !important;
    padding: 14px 16px !important;
  }
  
  .toast-title {
    font-size: 14px !important;
  }
  
  .toast-message {
    font-size: 13px !important;
  }
}