/* toastr v2.1.3 - Updated with linear gradients and white text */

/* Basic typography */
.toast-title {
  font-weight: bold;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.toast-message {
  -ms-word-wrap: break-word;
  word-wrap: break-word;
  color: #ffffff;
  margin: 0;
}

.toast-message a,
.toast-message label {
  color: #ffffff;
  text-decoration: underline;
}

.toast-message a:hover {
  color: #e0e0e0;
  text-decoration: none;
}

/* Close button */
.toast-close-button {
  position: relative;
  right: -0.3em;
  top: -0.3em;
  float: right;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  opacity: 0.9;
  line-height: 1;
}

.toast-close-button:hover,
.toast-close-button:focus {
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.5;
}

.rtl .toast-close-button {
  left: -0.3em;
  float: left;
  right: auto;
}

button.toast-close-button {
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
}

/* Positioning */
.toast-top-center    { top: 12px; right: 0; width: 100%; }
.toast-bottom-center { bottom: 12px; right: 0; width: 100%; }
.toast-top-full-width    { top: 0; right: 0; width: 100%; }
.toast-bottom-full-width { bottom: 0; right: 0; width: 100%; }

.toast-top-left    { top: 12px; left: 12px; }
.toast-top-right   { top: 12px; right: 12px; }
.toast-bottom-right { right: 12px; bottom: 12px; }
.toast-bottom-left  { bottom: 12px; left: 12px; }

#toast-container {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
}

#toast-container * {
  box-sizing: border-box;
}

#toast-container > div {
  position: relative;
  pointer-events: auto;
  overflow: hidden;
  margin: 0 0 8px;
  padding: 16px 16px 16px 56px;
  width: 320px;
  border-radius: 6px;
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 24px 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  color: #ffffff;
  opacity: 0.96;
  transition: all 0.15s ease;
}

#toast-container > div:hover {
  opacity: 1;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transform: translateY(-1px);
}

#toast-container > div.rtl {
  direction: rtl;
  padding: 16px 56px 16px 16px;
  background-position: right 16px center;
}

/* ────────────────────────────────────────────────
   Toast Types with Linear Gradients + White Text
───────────────────────────────────────────────── */

.toast-success {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  /* fallback solid color */
  background-color: #28a745;
}

.toast-error {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  background-color: #dc3545;
}

.toast-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  background-color: #17a2b8;
}

.toast-warning {
  background: linear-gradient(135deg, #fd7e14 0%, #e06b00 100%);
  background-color: #fd7e14;
}

/* Icons (keeping your SVG icons but making sure they are visible) */
#toast-container > .toast-success {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iOSIvPjxwYXRoIGQ9Ik04IDEybDMgMyA1LTUiLz48L3N2Zz4=") !important;
}

#toast-container > .toast-error {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iOSIvPjxwYXRoIGQ9Ik0xNSA5bC02IDZNOSA5bDYgNiIvPjwvc3ZnPg==") !important;
}

#toast-container > .toast-info {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iOSIvPjxwYXRoIGQ9Ik0xMiA4aC4wMSIvPjxwYXRoIGQ9Ik0xMSAxMmgxdjRoMSIvPjwvc3ZnPg==") !important;
}

#toast-container > .toast-warning {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDNsOSA2SDNsOS02WiIvPjxwYXRoIGQ9Ik0xMiA5djQiLz48cGF0aCBkPSJNMTIgMTdoLjAxIi8+PC9zdmc+") !important;
}

/* Progress bar (optional – dark overlay style) */
.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  background: rgba(0,0,0,0.35);
}

/* Responsive adjustments */
@media all and (max-width: 480px) {
  #toast-container > div {
    width: 90%;
    margin: 0 auto 8px;
    padding: 14px 14px 14px 50px;
  }
  #toast-container > div.rtl {
    padding: 14px 50px 14px 14px;
  }
}

@media all and (max-width: 360px) {
  #toast-container > div {
    width: 94%;
    padding: 12px 12px 12px 48px;
  }
}