/* Melhorias adicionais para as mensagens Bootstrap */

/* Animações de entrada */
.alert {
    animation: slideInRight 0.3s ease-out;
}

.alert.fade {
    transition: opacity 0.15s linear;
}

.alert.fade.show {
    opacity: 1;
}

.alert.fade.hide {
    opacity: 0;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .alert[style*="position: fixed"] {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
        min-width: auto !important;
    }
}

@media (max-width: 480px) {
    .alert[style*="position: fixed"] {
        top: 5px !important;
        right: 5px !important;
        left: 5px !important;
        border-radius: 8px !important;
    }
}

/* Melhorias visuais para os botões de fechar */
.btn-close {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Efeito de hover nas mensagens */
.alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
}

/* Melhorias específicas para alertas Bootstrap */
.alert-success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.95), rgba(20, 167, 97, 0.9));
    border: none;
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(203, 45, 60, 0.9));
    border: none;
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95), rgba(255, 183, 0, 0.9));
    border: none;
    color: #212529;
}

.alert-info {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.95), rgba(10, 188, 227, 0.9));
    border: none;
    color: white;
}

/* Melhorias para toast notifications */
.toast {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
}

/* Otimizações de performance */
.alert {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Suporte para modo escuro */
@media (prefers-color-scheme: dark) {
    .alert {
        backdrop-filter: blur(15px);
    }
    
    .alert-success {
        background: linear-gradient(135deg, rgba(25, 135, 84, 0.9), rgba(20, 167, 97, 0.85));
    }
    
    .alert-danger {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(203, 45, 60, 0.85));
    }
    
    .alert-warning {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 183, 0, 0.85));
    }
    
    .alert-info {
        background: linear-gradient(135deg, rgba(13, 202, 240, 0.9), rgba(10, 188, 227, 0.85));
    }
} 