<!-- Test Source Modal -->
<div id="test-stream-modal" class="modal" role="dialog" aria-modal="true" aria-labelledby="test-stream-modal-title">
    <div class="modal-content">
        <div class="modal-header">
            <h2 id="test-stream-modal-title" data-i18n="streams.test.title">Test Source</h2>
            <button class="modal-close-btn" onclick="closeTestStreamModal()" title="Close" data-i18n-aria-label="aria.close">&#x2715;</button>
        </div>
        <div class="modal-body">
            <div class="form-group">
                <label for="test-stream-duration">
                    <span data-i18n="streams.test.duration">Capture Duration (s):</span>
                    <span id="test-stream-duration-value">5</span>
                </label>
                <input type="range" id="test-stream-duration" min="1" max="10" step="1" value="5" oninput="updateStreamTestDuration(this.value)" />
            </div>

            <button type="button" class="btn btn-primary" onclick="runStreamTest()" style="margin-top: 16px;">
<svg class="icon" viewBox="0 0 24 24"><path d="M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"/><path d="M6.453 15h11.094"/><path d="M8.5 2h7"/></svg> <span data-i18n="streams.test.run">Run</span>
            </button>

        </div>
    </div>
</div>
