/* 🎙️ DRAMICBOX VOICE COMMENTS & AUDIO NOTES STYLES */

.voice-comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(249, 115, 22, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.voice-comment-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(249, 115, 22, 0.25));
    border-color: rgba(239, 68, 68, 0.6);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.voice-comment-btn.recording {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    animation: voiceRecordPulse 1.2s infinite;
}

@keyframes voiceRecordPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* RECORDING POPUP / ACTIVE BAR */
.voice-recorder-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 18px;
    background: linear-gradient(145deg, #181528, #100f1c);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 14px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: slideDownFade 0.25s ease;
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.voice-rec-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.voice-rec-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    animation: blinkDot 1s infinite;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.85); }
}

.voice-rec-timer {
    font-family: 'Outfit', monospace, sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    min-width: 45px;
}

.voice-waveform-preview {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    flex: 1;
    max-width: 200px;
}

.voice-wave-bar {
    width: 3px;
    background: #f87171;
    border-radius: 2px;
    transition: height 0.1s ease;
    animation: waveBounce 0.6s infinite alternate;
}

@keyframes waveBounce {
    0% { height: 4px; }
    100% { height: 22px; }
}

/* VOICE NOTE AUDIO PLAYER IN COMMENT CARD */
.voice-note-player-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(236, 72, 153, 0.12));
    border: 1px solid rgba(139, 92, 246, 0.35);
    margin: 8px 0;
    max-width: 380px;
    backdrop-filter: blur(8px);
}

.voice-play-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border: none;
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
    flex-shrink: 0;
}

.voice-play-toggle-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5);
}

.voice-note-progress-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.voice-waveform-static {
    display: flex;
    align-items: center;
    gap: 2.5px;
    height: 18px;
    cursor: pointer;
}

.voice-static-bar {
    width: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    transition: all 0.15s ease;
}

.voice-static-bar.active {
    background: #c4b5fd;
    box-shadow: 0 0 8px rgba(196, 181, 253, 0.6);
}

.voice-note-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #cbd5e1;
    font-weight: 700;
}

.voice-speed-pill {
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #c4b5fd;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
}

.voice-speed-pill:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: #a78bfa;
}
