@if($categories->isEmpty())
    <div class="text-center py-12 text-gray-500">
        <svg class="w-16 h-16 mx-auto text-gray-300 mb-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" />
        </svg>
        <p class="text-lg font-medium">등록된 카테고리가 없습니다.</p>
        <p class="text-sm mt-1">새 카테고리를 추가해주세요.</p>
    </div>
@else
    <div class="space-y-2" id="sortable-root">
        @foreach($categories as $category)
            @include('categories.partials.tree-item', ['category' => $category, 'depth' => 0])
        @endforeach
    </div>
@endif