/* 
 * Custom Toastr Design - WOW Aesthetics 
 * Modern, Premium, Glassmorphism, and Vibrant 
 */

/* Entry Animation */
@keyframes toastBounceIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }

    70% {
        transform: translateX(-10px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

#toast-container>.toast {
    background-image: none !important;
    padding: 14px 14px 14px 50px !important;
    /* Smaller padding */
    width: 310px !important;
    /* Smaller width */
    max-width: 90vw !important;
    border-radius: 12px !important;
    /* Slightly smaller radius */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    opacity: 1 !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-family: 'Inter', sans-serif !important;
    animation: toastBounceIn 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) !important;
    transition: all 0.3s ease !important;
}

#toast-container>.toast:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
    transform: translateY(-3px) !important;
}

/* Icons */
#toast-container>.toast::before {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    color: white;
}

/* Success Toast */
#toast-container>.toast-success {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.92), rgba(13, 148, 136, 0.88)) !important;
}

#toast-container>.toast-success::before {
    content: "\f058";
}

/* Error Toast */
#toast-container>.toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(220, 38, 38, 0.88)) !important;
}

#toast-container>.toast-error::before {
    content: "\f06a";
}

/* Warning Toast */
#toast-container>.toast-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(217, 119, 6, 0.88)) !important;
    color: #fff !important;
}

#toast-container>.toast-warning::before {
    content: "\f071";
}

/* Info Toast */
#toast-container>.toast-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(37, 99, 235, 0.88)) !important;
}

#toast-container>.toast-info::before {
    content: "\f05a";
}

/* Title Styling */
.toast-title {
    font-weight: 700 !important;
    font-size: 14px !important;
    /* Smaller font */
    margin-bottom: 2px !important;
    letter-spacing: -0.01em !important;
}

/* Message Styling */
.toast-message {
    font-size: 13px !important;
    /* Smaller font */
    line-height: 1.4 !important;
    font-weight: 400 !important;
    opacity: 0.9 !important;
}

/* Progress Bar */
.toast-progress {
    height: 3px !important;
    background-color: rgba(255, 255, 255, 0.35) !important;
    opacity: 1 !important;
    border-radius: 0 0 12px 12px !important;
}

/* Close Button - Subtle and Premium */
.toast-close-button {
    position: absolute !important;
    right: 8px !important;
    top: 8px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 18px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s !important;
    opacity: 0.7 !important;
    text-shadow: none !important;
}

.toast-close-button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
}

/* Position Adjustments */
.toast-top-right {
    top: 20px !important;
    right: 20px !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #toast-container>.toast {
        width: calc(100vw - 32px) !important;
        margin: 0 16px 8px 16px !important;
    }
}