/**
 * Modern Floating Card Toast Design - Inspired by security-card
 */
.jq-toast-wrap {
  display: block;
  position: fixed;
  max-width: 400px;
  min-width: 320px;
  pointer-events: none !important;
  margin: 0;
  padding: 0;
  letter-spacing: normal;
  z-index: 9999 !important;
}

.jq-toast-wrap * {
  margin: 0;
  padding: 0;
}

.jq-toast-wrap.bottom-left {
  bottom: 20px;
  left: 20px;
}

.jq-toast-wrap.bottom-right {
  bottom: 20px;
  right: 20px;
}

.jq-toast-wrap.top-left {
  top: 20px;
  left: 20px;
}

.jq-toast-wrap.top-right {
  top: 20px;
  right: 20px;
}

/* Modern Floating Card Design */
.jq-toast-single {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  margin: 0px 0px 10px;
  border-radius: 16px;
  font-size: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.4;
  position: relative;
  pointer-events: all !important;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.06);
  color: #1e293b;
  overflow: hidden;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Shimmer Effect */
.jq-toast-single::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Toast Icon */
.jq-toast-single .jq-toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Toast Content */
.jq-toast-single .jq-toast-content {
  flex: 1;
  min-width: 0;
}

.jq-toast-single h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin: 0px 0px 4px;
  background: none;
  color: #1e293b;
  line-height: 1.4;
  letter-spacing: normal;
}

.jq-toast-single p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.jq-toast-single a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #667eea;
  padding-bottom: 2px;
  font-size: 12px;
  transition: color 0.2s ease;
}

.jq-toast-single a:hover {
  color: #5a67d8;
}

.jq-toast-single ul {
  margin: 0px 0px 0px 15px;
  background: none;
  padding: 0px;
}

.jq-toast-single ul li {
  list-style-type: none !important;
  margin-left: -20px;
  line-height: 17px;
  background: none;
  margin: 0;
  padding: 0;
  letter-spacing: normal;
}

/* Close Button */
.close-jq-toast-single {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
  cursor: pointer;
  background: none;
  border: none;
  color: #a0aec0;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1;
}

.close-jq-toast-single:hover {
  background: #f7fafc;
  color: #4a5568;
}

/* Progress Bar */
.jq-toast-loader {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: rgba(0, 0, 0, 0.1);
  transition: width linear;
  border-radius: 0 0 16px 16px;
}

.jq-toast-loaded {
  width: 100%;
}

/* Toast Types with Modern Design */
.jq-has-icon {
  padding: 16px 20px;
  background-repeat: no-repeat;
  background-position: 20px center;
  background-size: 24px;
}

/* Success Toast */
.jq-icon-success {
  background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
  border-left: 4px solid #48bb78;
}

.jq-icon-success .jq-toast-icon {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.jq-icon-success::before {
  background: linear-gradient(90deg, transparent, rgba(72, 187, 120, 0.3), transparent);
}

/* Error Toast */
.jq-icon-error {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border-left: 4px solid #f56565;
}

.jq-icon-error .jq-toast-icon {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.jq-icon-error::before {
  background: linear-gradient(90deg, transparent, rgba(245, 101, 101, 0.3), transparent);
}

/* Warning Toast */
.jq-icon-warning {
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 100%);
  border-left: 4px solid #ed8936;
}

.jq-icon-warning .jq-toast-icon {
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.jq-icon-warning::before {
  background: linear-gradient(90deg, transparent, rgba(237, 137, 54, 0.3), transparent);
}

/* Info Toast */
.jq-icon-info {
  background: linear-gradient(135deg, #ebf8ff 0%, #ffffff 100%);
  border-left: 4px solid #4299e1;
}

.jq-icon-info .jq-toast-icon {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.jq-icon-info::before {
  background: linear-gradient(90deg, transparent, rgba(66, 153, 225, 0.3), transparent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .jq-toast-wrap {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: auto;
  }
  
  .jq-toast-single {
    min-width: auto;
    max-width: none;
    width: 100%;
    padding: 14px 16px;
  }
}

/* Hover Effects */
.jq-toast-single:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* Stack Animation */
.jq-toast-wrap .jq-toast-single:nth-child(1) { animation-delay: 0s; }
.jq-toast-wrap .jq-toast-single:nth-child(2) { animation-delay: 0.1s; }
.jq-toast-wrap .jq-toast-single:nth-child(3) { animation-delay: 0.2s; }

/* Exit Animation */
.jq-toast-single.jq-toast-exit {
  animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
