/* ==========================================================================
   REACT HOT TOAST THEME FOR TOASTR
   Modern Floating Pill Toast Notifications at Middle-Top of Screen
   ========================================================================== */

#toast-container,
#toast-container.toast-top-center,
#toast-container.toast-top-right,
#toast-container.toast-top-left,
#toast-container.toast-bottom-center,
#toast-container.toast-bottom-right,
#toast-container.toast-bottom-left,
#toast-container.toast-top-full-width,
#toast-container.toast-bottom-full-width {
    position: fixed !important;
    top: 24px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    z-index: 99999999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    max-width: 92vw !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

#toast-container > div,
#toast-container > .toast {
    position: relative !important;
    pointer-events: auto !important;
    /* display must NOT use !important — jQuery fadeOut sets inline display:none */
    display: flex;
    align-items: center !important;
    gap: 10px !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    padding: 10px 20px 10px 14px !important;
    width: auto !important;
    min-width: 220px !important;
    max-width: 540px !important;
    border-radius: 9999px !important; /* React Hot Toast signature pill */
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
    border: none !important;
    margin: 0 0 6px 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    animation: rhtToastEnter 0.32s cubic-bezier(0.21, 1.02, 0.73, 1) !important;
    transition: box-shadow 0.2s ease !important;
    cursor: pointer !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

#toast-container > div:hover {
    box-shadow: 0 14px 30px -3px rgba(0, 0, 0, 0.16), 0 6px 10px -2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
}

@keyframes rhtToastEnter {
    0% {
        transform: translate3d(0, -24px, 0) scale(0.9);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* Remove default Toastr icon sprites and harsh colors */
#toast-container > .toast-success,
#toast-container > .toast-error,
#toast-container > .toast-warning,
#toast-container > .toast-info {
    background-image: none !important;
    background-color: #ffffff !important;
}

/* React Hot Toast SVG Icon Badges */
#toast-container > div::before {
    content: '' !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 13px 13px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* Success: Emerald Green pill with white checkmark */
#toast-container > .toast-success::before {
    background-color: #10B981 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
}

/* Error: Rose Red pill with white cross */
#toast-container > .toast-error::before {
    background-color: #EF4444 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
}

/* Warning: Amber Orange pill with white exclamation */
#toast-container > .toast-warning::before {
    background-color: #F59E0B !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
}

/* Info: Blue pill with white info icon */
#toast-container > .toast-info::before {
    background-color: #3B82F6 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
}

/* Message & Title text styling */
#toast-container .toast-message {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #1F2937 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
    padding: 0 !important;
    word-break: break-word !important;
}

#toast-container .toast-title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin-right: 4px !important;
}

#toast-container .toast-title:empty {
    display: none !important;
}

/* Close button styling */
#toast-container .toast-close-button {
    color: #9CA3AF !important;
    opacity: 0.6 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    margin-left: 8px !important;
    line-height: 1 !important;
    text-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
    padding: 0 2px !important;
    display: inline-flex !important;
    align-items: center !important;
}

#toast-container .toast-close-button:hover {
    color: #374151 !important;
    opacity: 1 !important;
}

/* Hide Toastr progress bar for clean React Hot Toast minimalism */
#toast-container .toast-progress {
    display: none !important;
}