/**
 * Flash Toast Animations
 * Custom animations for toast notifications
 */

/* Toast container positioning */
#toast-container {
    position: fixed;
    top: 80px; /* Below navbar */
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none; /* Allow clicks through container */
}

#toast-container .toast-item {
    pointer-events: auto; /* But allow clicks on toasts */
}

/* Slide-in animation from right */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideInRight 0.3s ease-out forwards;
}

/* Fade-out animation */
@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(20px);
        opacity: 0;
    }
}

.animate-fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    #toast-container {
        top: 80px;
        left: 10px;
        right: 10px;
        max-width: none;
    }

    #toast-container .alert {
        font-size: 0.875rem;
    }
}

/* Smooth transitions for hover effects */
#toast-container .alert {
    transition: box-shadow 0.2s ease-in-out;
}
