<!-- Edit Text Modal -->
<div v-if="showEditTextModal" @click.self="closeEditTextModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
    <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-2xl">
        <div class="p-6 border-b border-[var(--border-primary)]">
            <div class="flex items-center justify-between">
                <h3 class="text-xl font-bold text-[var(--text-primary)]">Edit Transcript Text</h3>
                <button @click="closeEditTextModal" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">
                    <i class="fas fa-times text-xl"></i>
                </button>
            </div>
        </div>
        <div class="p-6">

        <!-- Text editor -->
        <div class="mb-6">
            <label class="block text-sm font-medium text-[var(--text-secondary)] mb-2">
                Text Content
            </label>
            <textarea
                v-model="editedText"
                rows="6"
                class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md shadow-sm focus:outline-none focus:ring-[var(--border-focus)] focus:border-[var(--border-focus)] sm:text-sm bg-[var(--bg-input)] text-[var(--text-primary)] resize-y"
                placeholder="Enter transcript text..."
            ></textarea>
        </div>

        <!-- Action buttons -->
        <div class="flex justify-end space-x-3">
            <button @click="closeEditTextModal" class="px-4 py-2 bg-[var(--bg-secondary)] text-[var(--text-secondary)] rounded-lg border border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] transition-colors">
                Cancel
            </button>
            <button @click="saveEditedText" class="px-4 py-2 bg-[var(--bg-accent)] text-[var(--text-accent)] rounded-lg hover:bg-[var(--bg-accent-hover)] transition-colors">
                Save Changes
            </button>
        </div>
        </div>
    </div>
</div>
