/* Estilos para Alertas Toast no Canto Superior - Melhorado */
/* Acima do overlay global de carregamento (#tmsLoadingOverlay, z-index 10000) */
.toast-container {
    z-index: 10050 !important;
}

.toast {
    border-radius: var(--radius-lg, 12px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    margin-bottom: 12px;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 4px solid !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
}

.toast.show {
    animation: slideInRight 0.3s ease-out;
}

.toast.hide {
    animation: slideOutRight 0.3s ease-in;
}

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

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

/* Cores personalizadas para diferentes tipos - Melhoradas */
.toast.text-bg-success {
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.98) 0%, rgba(209, 250, 229, 0.95) 100%) !important;
    color: #059669 !important;
    border-left-color: #10b981 !important;
}

.toast.text-bg-danger {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.98) 0%, rgba(254, 226, 226, 0.95) 100%) !important;
    color: #dc2626 !important;
    border-left-color: #ef4444 !important;
}

.toast.text-bg-warning {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.98) 0%, rgba(254, 243, 199, 0.95) 100%) !important;
    color: #d97706 !important;
    border-left-color: #f59e0b !important;
}

.toast.text-bg-info {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.98) 0%, rgba(219, 234, 254, 0.95) 100%) !important;
    color: #2563eb !important;
    border-left-color: #3b82f6 !important;
}

/* Ícones nos toasts */
.toast-body i {
    font-size: 1.1em;
}

/* Botão de fechar personalizado */
.toast .btn-close {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.toast .btn-close:hover {
    opacity: 1;
}

/* Responsividade */
@media (max-width: 768px) {
    .toast-container {
        left: 10px !important;
        right: 10px !important;
        top: 10px !important;
    }
    
    .toast {
        min-width: auto !important;
        max-width: none !important;
        width: 100% !important;
    }
}

/* Animação de entrada suave */
.toast-container .toast {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-container .toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Efeito hover - Melhorado */
.toast:hover {
    transform: translateX(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-body {
    padding: 16px 20px !important;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Estilo para múltiplos toasts */
.toast-container .toast:not(:last-child) {
    margin-bottom: 8px;
}

/* Indicador de progresso (opcional) */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 8px 8px;
    animation: progressBar linear;
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

