﻿/* Toast Notification Styles and Animations */

/* Slide in from right animation */
@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide out to right animation */
@keyframes slide-out-right {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Animation classes */
.animate-slide-in-right {
    animation: slide-in-right 0.3s ease-out;
}

.animate-slide-out-right {
    animation: slide-out-right 0.3s ease-in;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    #toast-notification {
        right: 1rem !important;
        left: 1rem !important;
        max-width: calc(100% - 2rem) !important;
    }
}

/* Ensure toast appears above all other elements */
#toast-notification {
    z-index: 9999;
}

/* Optional: Add backdrop for better visibility on busy pages */
.toast-with-backdrop::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9998;
}
