/* voice.css */




.voice-duration {
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
    opacity: 0.8;
    min-width: 25px;
}

/* Adjust colors for sent/received */
.sent .voice-duration {
    color: white;
}

.received .voice-duration {
    color: var(--text);
}


/* Custom Voice Note Container */
.custom-voice-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    min-width: 160px;
}

/* The Play Button */
.voice-play-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.1s active;
}

.voice-play-btn:active {
    transform: scale(0.9);
}

/* Sent vs Received Colors */
.sent .voice-play-btn { 
    color: var(--msg-sent); 
}

.received .voice-play-btn { 
    background: var(--accent); 
    color: white; 
}

/* Simple Visualizer Waves */
.voice-visualizer {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
}

.wave {
    width: 3px;
    height: 15px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
}

.received .wave { 
    background: rgba(0,0,0,0.15); 
}

/* Animation when playing */
.playing .wave {
    animation: wave-animation 0.6s infinite alternate;
}

/* Stagger the animation for each bar */
.wave:nth-child(2) { animation-delay: 0.1s; }
.wave:nth-child(3) { animation-delay: 0.2s; }
.wave:nth-child(4) { animation-delay: 0.3s; }

@keyframes wave-animation {
    from { height: 5px; }
    to { height: 20px; }
}