/* Toast Notification Styles */

.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    pointer-events: none;
}

.toast-message {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.3),
        0 8px 10px -6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    transform: translateX(calc(100% + 2rem));
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animação de entrada */
.toast-message.toast-show {
    transform: translateX(0);
    opacity: 1;
}

/* Animação de saída */
.toast-message.toast-hide {
    transform: translateX(calc(100% + 2rem));
    opacity: 0;
}

/* Ícone */
.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon .material-symbols-outlined {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Conteúdo */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    font-weight: 500;
    word-wrap: break-word;
}

/* Botão de fechar */
.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
    opacity: 0.8;
}

.toast-close:hover {
    background-color: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

.toast-close:active {
    background-color: rgba(255, 255, 255, 0.25);
}

.toast-close .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Barra de progresso */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    animation: toast-progress 5s linear forwards;
    transform-origin: left;
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Efeito hover no toast */
.toast-message:hover {
    transform: translateX(0) scale(1.02);
    box-shadow:
        0 20px 35px -5px rgba(0, 0, 0, 0.4),
        0 10px 15px -6px rgba(0, 0, 0, 0.3);
}

/* Responsividade */
@media (max-width: 640px) {
    .toast-container {
        top: auto;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    .toast-message {
        min-width: 0;
        width: 100%;
    }

    .toast-message {
        transform: translateY(calc(100% + 2rem));
    }

    .toast-message.toast-show {
        transform: translateY(0);
    }

    .toast-message.toast-hide {
        transform: translateY(calc(100% + 2rem));
    }
}

/* Animação de entrada suave */
@keyframes slideInRight {
    from {
        transform: translateX(calc(100% + 2rem));
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(calc(100% + 2rem));
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}