/* Component: Toast Notification
 * Description: Styles for a toast notification component, including positioning, animation for showing and hiding,
 *              responsive adjustments for mobile devices, and visual variants for success and error states.
 */


.smd-component_toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    animation: slideIn 0.3s ease;
    z-index: 9999;
    background-color: var(--color-navbar--primary);
    backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    min-width: 300px;
    max-width: 500px;
    word-wrap: break-word;
    pointer-events: auto;
    transition: all 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.smd-component_toast--hiding {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .smd-component_toast {
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

.smd-component_toast--success { border-left: 4px solid var(--color-branding-verified); }
.smd-component_toast--error { border-left: 4px solid var(--color-branding-primary); }