.toast-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.4;
  margin-left: 36px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.toast-message {
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 13px;
  line-height: 1.5;
  opacity: 1;
  margin-left: 36px;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.toast-message a,
.toast-message label {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.toast-message a:hover {
  color: #E0E0E0;
  text-decoration: none;
}
.toast-close-button {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  opacity: 0.7;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.toast-close-button:hover,
.toast-close-button:focus {
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}
.rtl .toast-close-button {
  left: 8px;
  right: auto;
}
.rtl .toast-title,
.rtl .toast-message {
  margin-left: 0;
  margin-right: 36px;
}
/*Additional properties for button version
 iOS requires the button element instead of an anchor tag.
 If you want the anchor version, it requires `href="#"`.*/
button.toast-close-button {
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  outline: none;
}
.toast-top-center {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
}
.toast-bottom-center {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
}
.toast-top-full-width {
  top: 0;
  left: 0;
  width: 100%;
}
.toast-bottom-full-width {
  bottom: 0;
  left: 0;
  width: 100%;
}
.toast-top-left {
  top: 20px;
  left: 20px;
}
.toast-top-right {
  top: 20px;
  right: 20px;
}
.toast-bottom-right {
  right: 20px;
  bottom: 20px;
}
.toast-bottom-left {
  bottom: 20px;
  left: 20px;
}
#toast-container {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  /*overrides*/
}
#toast-container * {
  box-sizing: border-box;
}
#toast-container > div {
  position: relative;
  pointer-events: auto;
  overflow: hidden;
  margin: 0 0 12px;
  padding: 16px 40px 16px 16px;
  min-width: 300px;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #FFFFFF;
  opacity: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideInRight 0.3s ease-out;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}
#toast-container > div::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  z-index: 2;
  opacity: 1;
}
#toast-container > div.rtl {
  direction: rtl;
  padding: 16px 16px 16px 40px;
}
#toast-container > div.rtl::before {
  left: auto;
  right: 16px;
}
#toast-container > .toast-info {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E"), linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%) !important;
  background-position: center;
  background-repeat: repeat;
  background-size: 48px 48px, auto;
  border-color: rgba(59, 130, 246, 0.3) !important;
}
#toast-container > .toast-info::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
}
#toast-container > .toast-error {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E"), linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%) !important;
  background-position: center;
  background-repeat: repeat;
  background-size: 48px 48px, auto;
  border-color: rgba(239, 68, 68, 0.3) !important;
}
#toast-container > .toast-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
}
#toast-container > .toast-success {
  /* Put the repeating checkmarks above the gradient */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 12 2 2 4-4'%3E%3C/path%3E%3Cpath d='m21 12c0 4.97-4.03 9-9 9s-9-4.03-9-9 4.03-9 9-9c2.12 0 4.07.74 5.61 1.98'%3E%3C/path%3E%3C/svg%3E"), linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%) !important;
  background-position: center;
  background-repeat: repeat;
  background-size: 48px 48px, auto;
  border-color: rgba(16, 185, 129, 0.3) !important;
}
#toast-container > .toast-success::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 12 2 2 4-4'%3E%3C/path%3E%3Cpath d='m21 12c0 4.97-4.03 9-9 9s-9-4.03-9-9 4.03-9 9-9c2.12 0 4.07.74 5.61 1.98'%3E%3C/path%3E%3C/svg%3E");
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
}
#toast-container > .toast-warning {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'%3E%3C/path%3E%3Cpath d='M12 9v4'%3E%3C/path%3E%3Cpath d='m12 17 .01 0'%3E%3C/path%3E%3C/svg%3E"), linear-gradient(135deg, rgba(245, 158, 11, 0.9) 0%, rgba(217, 119, 6, 0.9) 100%) !important;
  background-position: center;
  background-repeat: repeat;
  background-size: 48px 48px, auto;
  border-color: rgba(245, 158, 11, 0.3) !important;
}
#toast-container > .toast-warning::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'%3E%3C/path%3E%3Cpath d='M12 9v4'%3E%3C/path%3E%3Cpath d='m12 17 .01 0'%3E%3C/path%3E%3C/svg%3E");
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
}
#toast-container.toast-top-center > div,
#toast-container.toast-bottom-center > div {
  width: 300px;
  margin-left: auto;
  margin-right: auto;
}
#toast-container.toast-top-full-width > div,
#toast-container.toast-bottom-full-width > div {
  width: 96%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0;
}
.toast {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}
.toast-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
  border-color: rgba(16, 185, 129, 0.3);
}
.toast-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
  border-color: rgba(239, 68, 68, 0.3);
}
.toast-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
  border-color: rgba(59, 130, 246, 0.3);
}
.toast-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9) 0%, rgba(217, 119, 6, 0.9) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}
.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
  opacity: 0.8;
  border-radius: 0 0 8px 8px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/*Responsive Design*/
@media all and (max-width: 240px) {
  #toast-container > div {
    padding: 12px 32px 12px 12px;
    min-width: auto;
    width: calc(100vw - 24px);
    margin: 0 0 8px;
  }
  #toast-container > div.rtl {
    padding: 12px 12px 12px 32px;
  }
  #toast-container .toast-close-button {
    right: 6px;
    top: 6px;
    width: 20px;
    height: 20px;
    font-size: 14px;
  }
  #toast-container .rtl .toast-close-button {
    left: 6px;
    right: auto;
  }
  .toast-title,
  .toast-message {
    margin-left: 28px;
  }
  .rtl .toast-title,
  .rtl .toast-message {
    margin-left: 0;
    margin-right: 28px;
  }
  #toast-container > div::before {
    left: 12px;
    width: 16px;
    height: 16px;
  }
  #toast-container > div.rtl::before {
    left: auto;
    right: 12px;
  }
}
@media all and (min-width: 241px) and (max-width: 480px) {
  #toast-container > div {
    padding: 14px 36px 14px 14px;
    min-width: auto;
    width: calc(100vw - 32px);
    margin: 0 0 10px;
  }
  #toast-container > div.rtl {
    padding: 14px 14px 14px 36px;
  }
  #toast-container .toast-close-button {
    right: 8px;
    top: 8px;
    width: 22px;
    height: 22px;
    font-size: 15px;
  }
  #toast-container .rtl .toast-close-button {
    left: 8px;
    right: auto;
  }
  .toast-title,
  .toast-message {
    margin-left: 32px;
  }
  .rtl .toast-title,
  .rtl .toast-message {
    margin-left: 0;
    margin-right: 32px;
  }
  #toast-container > div::before {
    left: 14px;
    width: 18px;
    height: 18px;
  }
  #toast-container > div.rtl::before {
    left: auto;
    right: 14px;
  }
}
@media all and (min-width: 481px) and (max-width: 768px) {
  #toast-container > div {
    padding: 16px 40px 16px 16px;
    min-width: 280px;
    max-width: 350px;
  }
  #toast-container > div.rtl {
    padding: 16px 16px 16px 40px;
  }
}
