/**
 * Voice Recorder Component Styles
 */

.voice-recorder-container {
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    background-color: #2c2c2c;
    margin-bottom: 10px;
}

.voice-recorder-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.voice-recorder-btn {
    background-color: #444;
    border: 1px solid #555;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    font-size: 1rem;
}

.voice-recorder-btn:hover:not(:disabled) {
    background-color: #555;
    transform: scale(1.05);
}

.voice-recorder-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.voice-recorder-btn.record-btn:hover:not(:disabled) {
    background-color: #dc3545;
}

.voice-recorder-btn.stop-btn:hover:not(:disabled) {
    background-color: #ffc107;
    color: #000;
}

.voice-recorder-btn.play-btn:hover:not(:disabled) {
    background-color: #28a745;
}

.voice-recorder-btn.remove-btn:hover:not(:disabled) {
    background-color: #6c757d;
}

.voice-recorder-btn.upload-btn:hover:not(:disabled) {
    background-color: #17a2b8;
}

.voice-recorder-info {
    text-align: center;
    margin-bottom: 10px;
}

.recording-timer {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 3px;
    font-family: monospace;
    color: #fff;
}

.recording-status {
    font-size: 0.8rem;
    color: #aaa;
}

.recording-status.recording {
    color: #dc3545;
    animation: pulse 1s infinite;
}

.recording-status.completed {
    color: #28a745;
}

.recording-status.error {
    color: #ffc107;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.voice-recorder-progress {
    height: 6px;
    background-color: #444;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background-color: #444;
    border-radius: 3px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #28a745);
    width: 0%;
    transition: width 0.3s ease;
}

.voice-recorder-player {
    width: 100%;
    margin-top: 8px;
}

.file-info {
    margin-top: 8px;
    padding: 8px;
    background-color: #333;
    border-radius: 4px;
    border: 1px solid #555;
}

.file-name {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 4px;
    word-break: break-word;
}

.file-size {
    font-size: 0.8rem;
    color: #aaa;
}

/* Hide the original file input fields */
#id_lead_acquisition_voice,
#id_strong_points_voice,
#id_weak_points_voice {
    display: none;
}