/* ===== TOAST NOTIFICATIONS RELATA+ ===== */

/* Container de Toasts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* Toast Individual */
.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 400px;
    pointer-events: auto;
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border-left: 4px solid;
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Ícone do Toast */
.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Conteúdo do Toast */
.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Botão de Fechar */
.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0.6;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.toast-close-icon {
    width: 18px;
    height: 18px;
}

/* Barra de Progresso */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progress linear;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Tipos de Toast */

/* Success - Verde */
.toast.success {
    border-left-color: #10b981;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.success .toast-title {
    color: #065f46;
}

.toast.success .toast-message {
    color: #047857;
}

.toast.success .toast-progress {
    background: #10b981;
}

/* Error - Vermelho */
.toast.error {
    border-left-color: #ef4444;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.error .toast-title {
    color: #991b1b;
}

.toast.error .toast-message {
    color: #b91c1c;
}

.toast.error .toast-progress {
    background: #ef4444;
}

/* Warning - Amarelo */
.toast.warning {
    border-left-color: #f59e0b;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.warning .toast-title {
    color: #92400e;
}

.toast.warning .toast-message {
    color: #b45309;
}

.toast.warning .toast-progress {
    background: #f59e0b;
}

/* Info - Azul */
.toast.info {
    border-left-color: #3b82f6;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

.toast.info .toast-title {
    color: #1e40af;
}

.toast.info .toast-message {
    color: #2563eb;
}

.toast.info .toast-progress {
    background: #3b82f6;
}

/* Responsivo - Mobile */
@media (max-width: 640px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
    
    @keyframes slideInRight {
        from {
            transform: translateY(-100px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes slideOutRight {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100px);
            opacity: 0;
        }
    }
}

/* Animação de Pulsação (opcional para toasts persistentes) */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    }
}

.toast.pulse {
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
               pulse 2s ease-in-out infinite;
}
