.voice-input-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.voice-mic-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.voice-mic-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
}

.voice-mic-btn.recording {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    animation: pulse-recording 1.5s infinite;
}

.voice-mic-btn.processing {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
    color: #f59e0b;
    pointer-events: none;
}

@keyframes pulse-recording {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.voice-timer {
    font-size: 11px;
    font-weight: 600;
    color: #ef4444;
    font-variant-numeric: tabular-nums;
    min-width: 40px;
}

.voice-tts-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.06);
    color: #8b5cf6;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.voice-tts-btn:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.4);
}

.voice-tts-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.voice-tts-btn .spin {
    animation: spin-icon 1s linear infinite;
}

@keyframes spin-icon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.voice-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.06);
    color: #10b981;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.voice-download-btn:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
}

.voice-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.voice-timer-warning {
    color: #fbbf24 !important;
    animation: voice-timer-flash 0.6s ease-in-out infinite;
}
@keyframes voice-timer-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
