/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-hwt1sr8kr0] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-hwt1sr8kr0] {
    flex: 1;
}

.sidebar[b-hwt1sr8kr0] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

@media (min-width: 641px) {
    .page[b-hwt1sr8kr0] {
        flex-direction: row;
    }

    .sidebar[b-hwt1sr8kr0] {
        width: 150px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-hwt1sr8kr0], article[b-hwt1sr8kr0] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-hwt1sr8kr0] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-hwt1sr8kr0] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.top-row[b-lcvi7l8iuo] {
    height: 3.5rem;
    /* Use the same background as the nav menu */
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
}

.navbar-brand-logo[b-lcvi7l8iuo] {
    display: block;
    height: 2.4rem;
    max-width: 100%;
    object-fit: contain;
    margin: 0.15rem auto 0 auto;
    pointer-events: none;
    user-select: none;
}

.navbar-toggler[b-lcvi7l8iuo] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    /* ✅ 深灰色按鈕配合淺色背景 */
    color: #2c3e50;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(44, 62, 80, 0.2);
    /* ✅ 深灰色圖標 */
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(44, 62, 80, 0.05);
}

.navbar-toggler:checked[b-lcvi7l8iuo] {
    /* ✅ 選中時較深的灰色背景 */
    background-color: rgba(44, 62, 80, 0.15);
}

.nav-item[b-lcvi7l8iuo] {
    /* ✅ 放大 30%：0.90rem × 1.3 = 1.17rem */
    font-size: 1rem;
    padding-bottom: 0.25rem;
}

    .nav-item:first-of-type[b-lcvi7l8iuo] {
        padding-top: 0rem;
    }

    .nav-item:last-of-type[b-lcvi7l8iuo] {
        padding-bottom: 0rem;
    }

    .nav-item[b-lcvi7l8iuo]  .nav-link {
        /* ✅ 深灰色文字配合淺色背景 */
        color: #2c3e50;
        background: none;
        border: none;
        /* ✅ 圓角縮小：從 6px 改為 4px */
        border-radius: 4px;
        height:1.8rem;
        display: flex;
        align-items: center;
        line-height: 1.8rem;
        width: 100%;
        padding-left: 1rem;
        padding-right: 0.5rem;
        /* ✅ 放大 30%：從 0.90rem 改為 1.17rem */
        font-size: 1rem;
        font-weight: 400;
        /* ❌ 移除過渡動畫 */
    }

    .nav-item[b-lcvi7l8iuo]  .nav-link .bi {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.1rem;
        height:1.8rem;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }

    /* ✅ Active 狀態下的圖標顏色變白色 */
    .nav-item[b-lcvi7l8iuo]  a.active .bi {
        filter: brightness(0) invert(1);
    }

.nav-item[b-lcvi7l8iuo]  a.active {
    /* ✅ 選中時：專業藍色背景 */
    background-color: #3498db;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.nav-item[b-lcvi7l8iuo]  .nav-link:hover {
    /* ✅ hover 時：淺藍灰色背景 */
    background-color: #ecf0f1;
    color: #2c3e50;
    /* ❌ 移除向右平移動畫 */
}

.nav-scrollable[b-lcvi7l8iuo] {
    display: none;
    /* ✅ 淺色簡約專業背景：極淺灰色 */
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    color: #2c3e50;
}

.navbar-toggler:checked ~ .nav-scrollable[b-lcvi7l8iuo] {
    display: block;
}

/* ✅ 確保 nav 使用 flexbox，讓版本資訊可以推到最底部 */
.nav-scrollable nav[b-lcvi7l8iuo] {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

@media (min-width: 641px) {
    .navbar-toggler[b-lcvi7l8iuo] {
        display: none;
    }

    .nav-scrollable[b-lcvi7l8iuo] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
    
    /* ✅ 確保桌面版也使用 flexbox */
    .nav-scrollable nav[b-lcvi7l8iuo] {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }
}

/* Management page title larger */
.management-title[b-lcvi7l8iuo] {
 font-size:100%; /* increase by50% */
}

/* Separator line in nav menu */
.nav-separator[b-lcvi7l8iuo] {
    border: 0;
    /* ✅ 增加高度：從 1px 改為 2px，更明顯 */
    height:1px;
    /* ✅ 更深的灰色分隔線：從 #e9ecef 改為 #cbd5e0，更明顯 */
    background: linear-gradient(to right, #cbd5e0 0%, #cbd5e0 100%);
    margin: 0.5rem 0.7rem;
    /* ✅ 增加陰影效果，讓分隔線更立體 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* ✅ 輕微圓角，更現代 */
    border-radius: 1px;
}

/* ✅ 系統版本資訊樣式 */
.nav-version[b-lcvi7l8iuo] {
    margin-top: auto;
    padding: 1rem 1rem 0.75rem 1rem;
    border-top: 1px solid #e9ecef;
}

.version-info[b-lcvi7l8iuo] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    padding: 0.5rem;
}

.version-label[b-lcvi7l8iuo] {
    font-weight: 400;
    color: #6c757d;
}

.version-number[b-lcvi7l8iuo] {
    font-weight: 600;
    color: #3498db;
}
