/* Estilos para alertas visuais aprimorados */

/* Container principal para alertas */
.alert-container {
    margin-top: 8px;
    padding: 8px;
    border-radius: 8px;
    border-left: 4px solid;
    position: relative;
    animation: alertPulse 2s ease-in-out infinite;
}

/* Tipos de alerta */
.alert-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    border-left-color: #4CAF50;
    color: #4CAF50;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
    border-left-color: #FFC107;
    color: #FFC107;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(244, 67, 54, 0.05));
    border-left-color: #F44336;
    color: #F44336;
}

.alert-info {
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.15), rgba(3, 169, 244, 0.05));
    border-left-color: #03A9F4;
    color: #03A9F4;
}

/* Ícones de alerta */
.alert-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 14px;
    font-weight: bold;
}

/* Texto do alerta */
.alert-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Animação de pulso mais discreta para alertas importantes */
@keyframes alertPulse {
    0%, 100% {
        box-shadow: 0 0 3px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    }
}

/* Alertas de alta prioridade (pump and dump, etc.) */
.alert-critical {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.1));
    border-left-color: #FF0000;
    color: #FF4444;
    animation: criticalAlert 1s ease-in-out infinite;
    border: 2px solid rgba(255, 0, 0, 0.5);
}

@keyframes criticalAlert {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
        transform: scale(1.01);
    }
}

/* Tooltip para alertas */
.alert-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.alert-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.alert-container:hover .alert-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Responsividade */
@media (max-width: 768px) {
    .alert-container {
        padding: 6px;
        margin-top: 6px;
    }
    
    .alert-text {
        font-size: 11px;
    }
    
    .alert-icon {
        font-size: 12px;
        margin-right: 4px;
    }
}

/* Integração com o tema existente */
.alert-container {
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius-sm);
}

/* Estilos específicos para diferentes tipos de momentum */
.momentum-explanation {
    position: relative;
}

.momentum-explanation.high-momentum {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.momentum-explanation.medium-momentum {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.momentum-explanation.low-momentum {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(244, 67, 54, 0.1));
    border: 1px solid rgba(244, 67, 54, 0.3);
}

