/* ✅ Momentum Score (Blason/Badge) */
.momentum-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    text-align: center;
    margin-left: 12px;
}

.mini-momentum-score {
    width: 32px !important;
    height: 32px !important;
}

.momentum-score {
    text-shadow: 0 0 10px rgba(24, 24, 24, 0.9) !important;
}

.momentum-badge {
    width: 80px;
    height: 80px;
    background-color: #00c8be2c;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--an-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2), 0px 3px 10px rgba(0, 0, 0, 0.3);
    text-shadow: 0px 0px 8px var(--an-border-light);
}
.momentum-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #d1d1d1;
    margin-bottom: 8px;
}

.blured {
    filter: blur(6px); /* Applique un flou */
    opacity: 0.5; /* Rend l'élément légèrement transparent */
    pointer-events: none; /* Désactive les interactions */
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Assurer que le texte reste lisible malgré l'effet */
.blured .momentum-score {
    color: var(--an-text-secondary);
}

/* Empêche l'effet de survol pour donner une impression de contenu verrouillé */
.blured:hover {
    filter: blur(6px);
    opacity: 0.5;
}

.momentum-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    margin: 0;
    margin-left: 1rem;
    margin-top: 8px;
    gap: 2px;
    padding: 6px 12px;
    border-radius: 6px;
}

.momentum-cta p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px; /* Réduit l'espace entre l'icône et le texte */
}

.momentum-cta i {
    font-size: 0.8rem;
    margin: 0px;
    color: var(--an-text-secondary);
}

.momentum-cta a {
    padding: 5px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* 🟠 Palette Couleurs Momentum */
.momentum-text {
    text-shadow: 0px 2px 4px rgba(39, 39, 39, 0.804);
} 
.momentum-critical { background-color: #9b00e8 !important; 
    box-shadow: 0px 0px 5px 1px rgba(255, 0, 0, 0.7); }
.momentum-verylow { background-color: #ff1744 !important; }
.momentum-low { background-color: #ff6f00 !important; }
.momentum-moderate { background-color: #ff9800 !important; }
.momentum-neutral { background-color: #dbb610 !important; }
.momentum-positive { background-color: #00bfa5 !important; }
.momentum-strong { background-color: #00c853 !important; }
.momentum-exceptional { 
    background-color: #8aee19e7 !important; 
    box-shadow: 
        0px 0px 10px 5px rgba(204, 255, 0, 0.3),  /* Glow principal */
        0px 0px 20px 10px rgba(204, 255, 0, 0.1); /* Glow étendu */
}

/* --- Enhanced Correlation Color Scheme (Modern Fintech Dark v2) --- */

/* Highest correlation - most problematic */
.correlation-critical {
    background-color: #80404090 !important; /* Darker Muted Red */
    color: #F0C0C0 !important; 
    
}

/* High correlation */
.correlation-verylow {
    background-color: #90604085 !important; /* Muted Brownish-Red */
    color: #F5D5C0 !important;
    
}

/* Moderate-high correlation */
.correlation-low {
    background-color: #A0805075 !important; /* Muted Tan/Orange */
    color: #FAE5C5 !important;
    
}

/* Moderate correlation */
.correlation-moderate {
    background-color: #70707065 !important; /* Cooler Neutral Grey */
    color: #E5E5E5 !important;
    
}

/* Low-moderate correlation */
.correlation-neutral {
    background-color: #50708060 !important; /* Desaturated Blue-Grey */
    color: #D0E0E8 !important;
    
}

/* Low correlation */
.correlation-positive {
    background-color: #40806070 !important; /* Desaturated Cool Green */
    color: #C8E8D8 !important;
    
}

/* Very low correlation */
.correlation-strong {
    background-color: #30705080 !important; /* Darker Desaturated Cool Green */
    color: #BFE0D0 !important;
    
}

/* Lowest correlation - ideal diversification */
.correlation-exceptional {
    background-color: #20605095 !important; /* Dark Desaturated Teal */
    color: #93e5c9 !important; 
    text-shadow: none !important;
    
}

/* ✅ Barre de progression plus fine */
.momentum-bar {
    width: 100px !important;
    height: 6px !important;
    border-radius: 6px !important;
    background-color: var(--an-bg-tertiary) !important;
    overflow: hidden;

}

.progress-bar {
    transition: width 0.5s ease-in-out !important;
    height: 100% !important;
}

.momentum-box {
    width: 100%;
    height: 20px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--an-text-primary);
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

/* Effet de survol léger */
.momentum-box:hover {
    box-shadow: 0px 0px 15px var(--an-border-medium);
}
