/* Instagram Voice Notes & Inline Player Style */

.instagram_voice_player {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid #e6683c;
    border-radius: 20px;
    padding: 6px 14px;
    min-width: 220px;
    max-width: 280px;
    box-sizing: border-box;
    margin: 5px 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.voice_play_btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 50%, #dc2743 100%);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.voice_play_btn:hover {
    transform: scale(1.08);
}

.voice_waveform {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.voice_bar {
    width: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 1.5px;
    transition: background-color 0.1s ease;
}

.voice_bar.active {
    background: #e6683c;
}

.voice_timer {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    min-width: 30px;
    text-align: right;
    font-family: monospace;
    user-select: none;
}

/* Voice Recording Bar (Overlays text input box) */
.voice_record_container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0 12px;
    box-sizing: border-box;
    gap: 12px;
}
.voice_record_container.hidden {
    display: none !important;
}

.voice_record_dot {
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    box-shadow: 0 0 8px #e74c3c;
}

.voice_record_time {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: monospace;
    min-width: 35px;
}

.voice_record_visualizer {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.voice_record_visualizer span {
    width: 2.5px;
    height: 8px;
    background: #e6683c;
    border-radius: 1px;
    animation: voiceWaveAnim 0.8s ease-in-out infinite alternate;
}

.voice_record_visualizer span:nth-child(1) { animation-delay: 0.1s; }
.voice_record_visualizer span:nth-child(2) { animation-delay: 0.3s; }
.voice_record_visualizer span:nth-child(3) { animation-delay: 0.5s; }
.voice_record_visualizer span:nth-child(4) { animation-delay: 0.2s; }
.voice_record_visualizer span:nth-child(5) { animation-delay: 0.4s; }
.voice_record_visualizer span:nth-child(6) { animation-delay: 0.15s; }
.voice_record_visualizer span:nth-child(7) { animation-delay: 0.35s; }

@keyframes voiceWaveAnim {
    0% { height: 4px; }
    100% { height: 18px; }
}

.voice_record_cancel,
.voice_record_send {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.voice_record_cancel {
    color: rgba(255,255,255,0.6);
}
.voice_record_cancel:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
}

.voice_record_send {
    color: #e6683c;
}
.voice_record_send:hover {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.15);
}

/* Mic Input Buttons in input tables */
.voice_mic_btn {
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
.voice_mic_btn:hover {
    color: #e6683c;
    transform: scale(1.1);
}
.voice_mic_btn.recording {
    color: #e74c3c;
    animation: pulseMic 1s infinite alternate;
}

@keyframes pulseMic {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); opacity: 0.8; }
}

/* Voice Lock Tooltip Indicator */
.voice_lock_indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 10px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    z-index: 1000000;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}

.voice_lock_indicator.hidden {
    display: none !important;
}

.bounce-chevron {
    animation: bounceChevron 0.6s infinite alternate;
}

@keyframes bounceChevron {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}
