#trader {
    display: flex;
    align-items: center;
    background-color: rgba(23, 42, 69, 0.8);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 206, 209, 0.2);
}

#trader-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--accent-color);
}

.stats-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.meter-label {
    font-size: 0.8em;
    color: var(--text-color);
    width: 60px;
    margin-right: 10px;
}

.meter {
    flex-grow: 1;
    height: 8px;
    background-color: rgba(0, 206, 209, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    transition: width 0.5s ease-in-out, background-color 0.5s ease;
}

#mood-fill {
    background-color: var(--primary-color);
}

#stress-fill {
    background-color: #FF6B6B;
}

#satiety-fill {
    background-color: #FFD93D;
}

.stat-value {
    font-size: 0.8em;
    color: var(--text-color);
    margin-left: 10px;
    width: 40px;
    text-align: right;
}

/* Ajoutez ces règles à la fin du fichier avatar.css */

@keyframes criticalPulse {
    0% {
        box-shadow: 0 0 5px 2px rgba(255, 0, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 15px 5px rgba(255, 0, 0, 0.9);
    }
    100% {
        box-shadow: 0 0 5px 2px rgba(255, 0, 0, 0.7);
    }
}

.meter.critical {
    animation: criticalPulse 1.5s infinite;
}

.meter.critical .meter-fill {
    background-color: #FF0000 !important;
}

.stat-value.critical {
    color: #FF0000;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}
