/**
 * Custom Toastr Styling
 * Modern, appealing toast notifications
 */

/* Modern Toast Container */
#toast-container {
    z-index: 9999 !important;
}

#toast-container > div {
    opacity: 0.95 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin: 0 0 12px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    min-height: 60px !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#toast-container > div:hover {
    opacity: 1 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Success Toast - Modern Green */
#toast-container > .toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border-left: 5px solid #047857 !important;
}

/* Error Toast - Modern Red */
#toast-container > .toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    border-left: 5px solid #b91c1c !important;
}

/* Info Toast - Modern Blue */
#toast-container > .toast-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    border-left: 5px solid #1d4ed8 !important;
}

/* Warning Toast - Modern Orange */
#toast-container > .toast-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    border-left: 5px solid #b45309 !important;
}

/* Close Button Styling */
#toast-container > div button.toast-close-button {
    position: absolute;
    right: 8px;
    top: 8px;
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 0.7 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
}

#toast-container > div button.toast-close-button:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: rotate(90deg);
}

/* Progress Bar Styling */
#toast-container > div .toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    border-radius: 0 0 12px 12px;
}

/* Toast Title */
#toast-container > div .toast-title {
    font-weight: 700 !important;
    font-size: 16px !important;
    margin-bottom: 4px;
    color: white !important;
}

/* Toast Message */
#toast-container > div .toast-message {
    font-weight: 500 !important;
    line-height: 1.5 !important;
    opacity: 0.95 !important;
    color: white !important;
}

/* Animation Enhancement */
@keyframes toast-bounce-in {
    0% {
        opacity: 0;
        transform: translateX(400px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateX(-20px) scale(1.05);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

#toast-container > div {
    animation: toast-bounce-in 0.5s ease-out !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    #toast-container > div {
        width: calc(100% - 40px) !important;
        margin: 0 20px 12px !important;
        font-size: 14px !important;
        padding: 14px 18px !important;
    }
    
    .toast-top-right {
        top: 20px !important;
        right: 0 !important;
    }
}

