 id="chevron-category-${category.id}"></i>
                    <i class="bi bi-folder2 tree-icon category-icon"></i>
                    <span class="tree-title">${category.name}</span>
                    <span class="tree-count">${category.device_count} devices</span>
                </div>
                <div class="tree-content" id="category-${category.id}" style="display: none;">
        `;

        // Direct devices
        if (category.direct_devices && category.direct_devices.length > 0) {
        