/* /Layout/MainLayout.razor.rz.scp.css */
/* --- ��¦�G�� --- */
.page[b-og4kh2iur9] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-og4kh2iur9] {
    flex: 1;
}

/* --- �����歷�� --- */
.sidebar[b-og4kh2iur9] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    color: white;
}

/* --- �������A�C --- */
.top-row[b-og4kh2iur9] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-og4kh2iur9]  a, .top-row[b-og4kh2iur9]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
        color: #000;
    }

        .top-row[b-og4kh2iur9]  a:hover, .top-row[b-og4kh2iur9]  .btn-link:hover {
            text-decoration: underline;
        }

.content[b-og4kh2iur9] {
    padding-top: 1.1rem;
}

/* --- �����ɯ�C (�w�]���áA�q���������) --- */
.bottom-nav[b-og4kh2iur9] {
    display: none;
}

/* ==========================================
   �q�����˦� (Desktop >= 641px)
   ========================================== */
@media (min-width: 641px) {
    .page[b-og4kh2iur9] {
        flex-direction: row;
    }

    .sidebar[b-og4kh2iur9] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        display: block;
    }

    .top-row[b-og4kh2iur9] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .content[b-og4kh2iur9] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* ==========================================
   ������˦� (Mobile <= 640px)
   ========================================== */
@media (max-width: 640px) {
    /* 1. ���ð�����e�� (���e�� NavMenu �t�d�ƥX) */
    .sidebar[b-og4kh2iur9] {
        position: absolute;
        z-index: 1002;
        width: 0;
        height: 100vh;
        left: 0;
        top: 0;
        overflow-x: hidden;
    }

    /* 2. ���ó����C */
    .top-row[b-og4kh2iur9] {
        display: none;
    }

    /* 3. �վ㤺�e�ϡA�קK�Q�����ɯ�צ� */
    .content[b-og4kh2iur9] {
        padding-bottom: 90px; /* �w�d�����Ŷ� */
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* 4. ?? ��ܩ����ɯ�C (����״_) */
    .bottom-nav[b-og4kh2iur9] {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid #eee;
        /* �T�O��r���|�ܦ��Ŧ�s���˦� */
        text-decoration: none;
    }

    /* �������s�˦� */
    .nav-item-mobile[b-og4kh2iur9] {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #999;
        font-size: 0.75rem;
        padding: 5px 0;
        transition: color 0.2s;
        cursor: pointer;
    }

        .nav-item-mobile i[b-og4kh2iur9] {
            font-size: 1.4rem;
            margin-bottom: 2px;
        }

        /* �襤���A */
        .nav-item-mobile.active[b-og4kh2iur9] {
            color: #0d6efd;
            font-weight: 600;
        }

        /* �����Y�_����ӫ��s */
        .nav-item-mobile.highlight[b-og4kh2iur9] {
            position: relative;
            top: -20px; /* ���W�B�� */
            color: #0d6efd;
            overflow: visible;
        }

            .nav-item-mobile.highlight .circle[b-og4kh2iur9] {
                background-color: #0d6efd;
                color: white;
                width: 56px;
                height: 56px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0 4px 10px rgba(13, 110, 253, 0.4);
                margin-bottom: 2px;
                border: 4px solid white; /* �W�[�������h������� */
            }

                .nav-item-mobile.highlight .circle i[b-og4kh2iur9] {
                    font-size: 1.6rem;
                    margin: 0;
                }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.top-row[b-jqtkpde53e] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-jqtkpde53e] {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.nav-item[b-jqtkpde53e] {
    font-size: 0.95rem;
    padding-bottom: 0.2rem;
}

    .nav-item:first-of-type[b-jqtkpde53e] {
        padding-top: 1rem;
    }

    .nav-item[b-jqtkpde53e]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        padding-left: 1rem;
        transition: all 0.2s;
    }

        .nav-item[b-jqtkpde53e]  .nav-link:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

        .nav-item[b-jqtkpde53e]  .nav-link.active {
            background-color: rgba(255,255,255,0.2);
            color: white;
            font-weight: bold;
            border-left: 4px solid #00b0ff;
        }

.sidebar-heading[b-jqtkpde53e] {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ?? ����G���ñ���Ϊ� Checkbox */
.mobile-menu-checkbox[b-jqtkpde53e] {
    display: none;
}

/* �w�]�B�n�h���� */
.nav-backdrop[b-jqtkpde53e] {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    backdrop-filter: blur(2px);
    cursor: pointer;
}

/* ==========================================
   ������W�h
   ========================================== */
@media (max-width: 640px) {
    .nav-scrollable[b-jqtkpde53e] {
        /* �w�]���áA���X�e�� */
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        overflow-y: auto;
        z-index: 1050;
        /* �нT�{�o�̪��C���z�� MainLayout.razor.css �@�P */
        background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
        box-shadow: 4px 0 15px rgba(0,0,0,0.5);
        transform: translateX(-105%); /* ���X�e�� */
        transition: transform 0.3s ease-in-out;
    }

    /* ?? �֤��޿�G�� Checkbox �Q�Ŀ�ɡA���沾�i�� */
    .mobile-menu-checkbox:checked ~ .nav-scrollable[b-jqtkpde53e] {
        transform: translateX(0);
    }

    /* �� Checkbox �Q�Ŀ�ɡA��ܾB�n�h */
    .mobile-menu-checkbox:checked ~ .nav-backdrop[b-jqtkpde53e] {
        display: block;
    }
}

/* �q�����W�h */
@media (min-width: 641px) {
    .nav-scrollable[b-jqtkpde53e] {
        display: block !important;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
        transform: none; /* �q�������ݭn���� */
    }

    .nav-backdrop[b-jqtkpde53e] {
        display: none !important;
    }
}
