#mafox-avatar-container {
    position: relative;
    width: 100%;
    height: 35px;
    /* Reduced from 40px */
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 5px;
    margin-top: 5px;
    /* Minimal separation */
    overflow: hidden;
    flex-shrink: 0;
    /* Prevent shrinking */
}

/* Sound Wave Canvas */
.mafox-sound-wave {
    display: block;
    width: 100%;
    height: 100%;
}

/* Voice Control Wrapper - Absolute Positioned */
.mafox-voice-control {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
    background: rgba(10, 15, 26, 0.6);
    /* Semi-transparent background for readability */
    padding: 2px 6px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
    width: auto;
    margin: 0;
}

/* Voice Label */
.voice-label {
    font-size: 10px;
    font-weight: 700;
    color: #00d4ff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s;
    user-select: none;
}

.voice-label.muted {
    color: #9ca3af;
}

/* Voice Toggle Button */
.mafox-voice-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 212, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
    padding: 0;
}

.mafox-voice-toggle:hover {
    background: rgba(0, 212, 255, 0.4);
    transform: scale(1.1);
}

.mafox-voice-toggle.muted {
    background: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

.mafox-voice-toggle.muted:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}