.toast {
    position: fixed;
    top: 25px;
    right: 25px;
    max-width: 300px;
    background: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: -1px 1px 10px rgba(0, 0, 0, 0.3);
    z-index: 1023;
    animation: slideInRight 0.3s ease-in-out forwards,
               fadeOut 0.5s ease-in-out forwards 3s;
    transform: translateX(110%);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

.toast.closing {
    animation: slideOutRight 0.5s ease-in-out forwards;
}

.toast-progress {
    position: absolute;
    display: block;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: #b7b7b7;
    animation: toastProgress 3s ease-in-out forwards;
}

.toast-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toast-icon {
    padding: 0.35rem 0.5rem;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: #fff;
    padding: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.toast.toast-success {
    background: linear-gradient(135deg, #059943 0%, #08b54f 100%);
}

.toast.toast-success .toast-progress {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.toast.toast-danger {
    background: linear-gradient(135deg, #a72f22 0%, #c0392b 100%);
}

.toast.toast-danger .toast-progress {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.toast.toast-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.toast.toast-info .toast-progress {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.toast.toast-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.toast.toast-warning .toast-progress {
    background: linear-gradient(90deg, #f1c40f, #f39c12);
}

/* Efeito de brilho pulsante */
.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.toast:hover::before {
    left: 100%;
}

@keyframes slideInRight {
    0% {
        transform: translateX(110%);
    }
    75% {
        transform: translateX(-10%);
    }
    100% {
        transform: translateX(0%);
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0%);
    }
    25% {
        transform: translateX(-10%);
    }
    100% {
        transform: translateX(110%);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes toastProgress {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}