/* Modern Toast Notification Design - Premium & Professional */

:root {
  --toast-bg: #ffffff;
  --toast-text-main: #1e293b;
  --toast-text-muted: #64748b;
  --toast-border: #f1f5f9;
  --toast-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Status Colors */
  --toast-success: #10b981;
  --toast-info: #3b82f6;
  --toast-warning: #f59e0b;
  --toast-error: #ef4444;
}

/* Toast Container */
.jq-toast-wrap {
  display: block;
  position: fixed;
  width: 350px;
  max-width: calc(100% - 32px);
  pointer-events: none !important;
  margin: 0;
  padding: 0;
  z-index: 10000 !important;
  font-family: "Inter", "Roboto", system-ui, sans-serif;
}

.jq-toast-wrap * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.jq-toast-wrap.top-right {
  top: 30px;
  right: 30px;
}
.jq-toast-wrap.top-left {
  top: 30px;
  left: 30px;
}
.jq-toast-wrap.bottom-right {
  bottom: 30px;
  right: 30px;
}
.jq-toast-wrap.bottom-left {
  bottom: 30px;
  left: 30px;
}

/* Toast Card */
.jq-toast-single {
  display: block;
  background-color: #ffffff !important;
  border: 1px solid var(--toast-border);
  border-radius: 12px;
  box-shadow: var(--toast-shadow) !important;
  margin-bottom: 12px;
  padding: 16px 20px;
  padding-left: 16px; /* Reset padding for left border positioning */
  width: 100%;
  position: relative;
  pointer-events: all !important;
  overflow: hidden;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s ease;
}

.jq-toast-single:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Left Accent Bar */
.jq-icon-success {
  border-left: 4px solid var(--toast-success) !important;
}
.jq-icon-error {
  border-left: 4px solid var(--toast-error) !important;
}
.jq-icon-warning {
  border-left: 4px solid var(--toast-warning) !important;
}
.jq-icon-info {
  border-left: 4px solid var(--toast-info) !important;
}

/* Icon Styling - Circular Filled Icons as per design */
.jq-has-icon {
  padding-left: 60px !important;
  background-repeat: no-repeat !important;
  background-position: 20px center !important;
  background-size: 24px 24px !important;
}

/* Material Icons - Success (Filled Green Circle) */
.jq-icon-success.jq-has-icon,
.jq-icon-success {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%2310b981'/%3E%3Cpath fill='white' d='M10 17l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") !important;
}

/* Material Icons - Error (Filled Red Circle) */
.jq-icon-error.jq-has-icon,
.jq-icon-error {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23ef4444'/%3E%3Cpath fill='white' d='M13.41 12l4.29-4.29-1.41-1.41L12 10.59 7.71 6.3 6.3 7.71 10.59 12l-4.29 4.29 1.41 1.41L12 13.41l4.29 4.29 1.41-1.41z'/%3E%3C/svg%3E") !important;
}

/* Material Icons - Warning (Filled Orange Circle) */
.jq-icon-warning.jq-has-icon,
.jq-icon-warning {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23f59e0b'/%3E%3Cpath fill='white' d='M11 15h2v2h-2zm0-8h2v6h-2z'/%3E%3C/svg%3E") !important;
}

/* Material Icons - Info (Filled Blue Circle) */
.jq-icon-info.jq-has-icon,
.jq-icon-info {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%233b82f6'/%3E%3Cpath fill='white' d='M13 17h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E") !important;
}

/* Headings */
.jq-toast-single h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--toast-text-main);
  margin: 0 0 4px 0;
  line-height: 1.2;
  background: none;
  display: block;
}

/* Content Text */
.jq-toast-single {
  font-size: 13.5px;
  color: var(--toast-text-muted);
  line-height: 1.5;
}

/* Close Button */
.close-jq-toast-single {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
  z-index: 10;
  line-height: 1;
}

.close-jq-toast-single:hover {
  background-color: #f8fafc;
  color: #475569;
}

/* Loader Bar */
.jq-toast-loader {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: rgba(0, 0, 0, 0.05);
  transition: width linear;
  border-radius: 0;
}

.jq-toast-loaded {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .jq-toast-wrap {
    width: calc(100% - 24px);
    left: 12px !important;
    right: 12px !important;
    top: 12px !important;
  }

  .jq-toast-single {
    padding: 14px 16px;
  }
}
