/* Toast Container Styling */
.sq-toast-global-container {
  position: fixed !important;
  top: 20px;
  right: 20px;
  z-index: 999999 !important;
  pointer-events: none;
}

.sq-toast-wrapper {
  position: relative;
  pointer-events: auto;
  margin-bottom: 12px;
}

/* Main Toast Styling */
.sq-toast {
  display: flex !important;
  align-items: center;
  min-width: 320px;
  max-width: 420px;
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 8px 16px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

/* Toast Types with stronger colors */
.toast-success {
  background: linear-gradient(to left, #dc2626 0%, #b91c1c 100%) !important;
  color: white !important;
}

.toast-error {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: white !important;
  border-color: rgba(239, 68, 68, 0.4);
}

.toast-warning {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: white !important;
  border-color: rgba(251, 146, 60, 0.4);
}

.toast-info {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: white !important;
  border-color: rgba(59, 130, 246, 0.4);
}

/* Toast Icon */
.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Toast Content */
.toast-content {
  flex: 1;
  margin-right: 12px;
}

.toast-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Close Button */
.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: currentColor;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.toast-close svg {
  width: 14px;
  height: 14px;
}

/* Shine Effect */
.sq-toast::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.sq-toast:hover::before {
  left: 100%;
}

/* Responsive Design */
@media (max-width: 480px) {
  .sq-toast-global-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .sq-toast {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}

/* Pulse Animation for Icons */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.toast-success .toast-icon svg,
.toast-error .toast-icon svg {
  animation: pulse 2s infinite;
}

/* Stack multiple toasts */
.sq-toast-wrapper + .sq-toast-wrapper {
  margin-top: 10px;
}

/* Custom scrollbar for long text */
.toast-text::-webkit-scrollbar {
  width: 3px;
}

.toast-text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.toast-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.toast-text::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}
