/**
 * Toastr.js Custom Styling
 * - Positioning: top-right
 * - Z-index: highest priority
 * - Close button: always visible
 */

.toast-container {
  position: fixed;
  z-index: 1000000 !important;
  pointer-events: none;
}

.toast-container.toast-top-right {
  top: 24px;
  right: 24px;
}

.toast {
  pointer-events: auto;
  margin-bottom: 12px;
  z-index: 1000000 !important;
}

.toast-success {
  background-color: #51a351;
}

.toast-error {
  background-color: #bd362f;
}

.toast-info {
  background-color: #3498db;
}

.toast-warning {
  background-color: #e67e22;
}

.toast-close-button {
  opacity: 0.8;
  transition: opacity 0.2s ease;
  color: #fff;
  display: inline-block !important;
  visibility: visible !important;
}

.toast-close-button:hover {
  opacity: 1;
}

.toast .toast-progress {
  background-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 767px) {
  .toast-container.toast-top-right {
    top: 12px;
    right: 12px;
  }

  .toast {
    max-width: calc(100vw - 24px);
  }
}
