@inherits LayoutComponentBase
@implements IDisposable

<div class="min-h-screen flex flex-col bg-gray-50 text-gray-900">
    
    <!-- Top 영역 -->
    @* <TopBanner /> *@
    
    @if (!isHidePrjTop)
    {
        <TopProjectNav />
    }

    <!-- 본문 영역 -->
    <div class="flex flex-1 flex-col md:flex-row">
        
        @* <!-- 사이드 메뉴 --> *@
        @* <div class="hidden md:block md:w-64 bg-white shadow"> *@
        @*     <SideNav /> *@
        @* </div> *@

        <!-- 본문 컨텐츠 -->
        @* <main class="flex-1 p-4 sm:p-6 md:p-8"> *@
        <main class="flex-1 w-full w-max-960 mx-auto">
            @Body
        </main>
    </div>

    <!-- 플로팅 버튼 -->
    <FloatingButton />

    <!-- 하단 메뉴 -->
    <BottomNav />
    <Footer />

    @if (LoadingService.IsLoading)
    {
        <div class="fixed inset-0 bg-black/80 flex items-center justify-center z-50">
            <div class="bg-gray-200/60 px-6 py-4 rounded-lg">
                <div class="animate-spin h-8 w-8 border-4 border-gray-600 border-t-transparent rounded-full"></div>
            </div>
        </div>
    }
</div>
