

.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #2D3748;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transform: translateX(450px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    max-width: 350px;
    word-wrap: break-word;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
    animation: toastBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toastBounceIn {
    0% {
        transform: translateX(450px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(-10px) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.toast.hide {
    animation: toastSlideOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastSlideOut {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(450px) scale(0.9);
        opacity: 0;
    }
}

.toast.success {
    background: #2D3748;
}

.toast.warning {
    background: #2D3748;
}

.toast.error {
    background: #2D3748;
}

.toast.info {
    background: #2D3748;
}

.toast-icon {
    display: none;
}

.toast-message {
    font-weight: 500;
    color: #FFFFFF;
    flex: 1;
    line-height: 1.4;
    font-size: 16px;
    text-align: center;
}

.toast-close {
    display: none;
}

@media (max-width: 768px) {
    .toast {
        right: 15px;
        left: 15px;
        min-width: auto;
        max-width: none;
        transform: translateY(-150px);
        top: 80px;
    }

    .toast.show {
        transform: translateY(0);
        animation: toastSlideInMobile 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .toast.hide {
        animation: toastSlideOutMobile 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes toastSlideInMobile {
        0% {
            transform: translateY(-150px);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes toastSlideOutMobile {
        0% {
            transform: translateY(0);
            opacity: 1;
        }
        100% {
            transform: translateY(-150px);
            opacity: 0;
        }
    }

    .toast-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .toast {
        padding: 12px 16px;
        right: 10px;
        left: 10px;
        top: 70px;
        transform: translateY(-150px);
    }

    .toast-message {
        font-size: 12px;
    }

    .toast-close {
        font-size: 16px;
        width: 20px;
        height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: opacity 0.2s ease;
    }
    
    .toast.show,
    .toast.hide {
        animation: none;
    }
    
    .toast.show {
        opacity: 1;
        transform: translateX(0);
    }
    
    .toast.hide {
        opacity: 0;
    }
}

@media (prefers-contrast: high) {
    .toast {
        border: 2px solid var(--text-primary);
        background: var(--bg-white);
    }
    
    .toast.success {
        border-color: var(--success-color);
    }
    
    .toast.warning {
        border-color: var(--warning-color);
    }
    
    .toast.error {
        border-color: var(--error-color);
    }
    
    .toast.info {
        border-color: var(--primary-color);
    }
}