/**
 * Toast Notification Styles
 * Custom animations and styles for toast notifications
 */

/* Toast container positioning */
#toast-container {
    max-width: 24rem;
}

/* Progress bar animation */
@keyframes shrink {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast-progress {
    transition: width linear;
}

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

/* Smooth slide-out animation */
@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    #toast-container {
        left: 1rem;
        right: 1rem;
        top: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    #toast-container > div {
        transition: none !important;
        animation: none !important;
    }
    
    .toast-progress {
        display: none;
    }
}

/* Focus styles for close button */
.toast-close:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Hover effect for toast */
#toast-container > div:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
