@import '_content/Blazored.Modal/Blazored.Modal.bundle.scp.css';
@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';

/* /Components/Modal/ImageViewerModal.razor.rz.scp.css */

.imagecontainer[b-6nzn2stalz] {
    position: relative;
    text-align: center;
    background-color: black;
}

.zoomed[b-6nzn2stalz] {
    transform: scale(1.8);
    cursor: zoom-out;
}

.closebtn[b-6nzn2stalz] {
    position: fixed;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background-color: rgba(200, 200, 200);
    color: black;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}


img[b-6nzn2stalz] {
    max-height: 90vh;
    transition: transform 0.3s ease-in-out;
    cursor: zoom-in;
}

@media (max-width: 768px) {
    img[b-6nzn2stalz] {
        max-height: 80vh;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-hcdc0br6kh] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-hcdc0br6kh] {
    flex: 1;
}

.sidebar[b-hcdc0br6kh] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-hcdc0br6kh] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-hcdc0br6kh]  a, .top-row[b-hcdc0br6kh]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-hcdc0br6kh]  a:hover, .top-row[b-hcdc0br6kh]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-hcdc0br6kh]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-hcdc0br6kh] {
        justify-content: space-between;
    }

    .top-row[b-hcdc0br6kh]  a, .top-row[b-hcdc0br6kh]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-hcdc0br6kh] {
        flex-direction: row;
    }

    .sidebar[b-hcdc0br6kh] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-hcdc0br6kh] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-hcdc0br6kh]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-hcdc0br6kh], article[b-hcdc0br6kh] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavPageLayout.razor.rz.scp.css */
.ds-layout-container[b-vkeluvb33f] {
    display: flex;
    min-height: 100vh;
    /* background: linear-gradient(145deg, #f5f7fa 0%, #e4e9f2 100%); */
}

/* 行動端頂部欄 */
.ds-mobile-header[b-vkeluvb33f] {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    /* backdrop-filter: blur(0px); */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 0 1rem;
    background: linear-gradient(145deg, #f5f7fa 0%, #e4e9f2 100%);
}

.ds-burger-menu[b-vkeluvb33f] {
    background: none;
    border: none;
    color: #37474F;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* 移除任何可能的浮動或定位屬性 */
}

.ds-mobile-header-title[b-vkeluvb33f] {
    color: #2196F3;
    font-size: 20px;
    padding-left: 10px;
}

.ds-burger-menu:hover[b-vkeluvb33f] {
    color: #2196F3;
}

/* 導航容器 */
.ds-navcontainer[b-vkeluvb33f] {
    width: 280px;
    border-right: 1px solid #E0E0E0;
    height: 100vh;
    position: fixed;
    box-shadow: 0 4px 6px rgba(33, 150, 243, 0.1);
    background: linear-gradient(145deg, #f5f7fa 0%, #e4e9f2 100%);
    display: flex; /* 這裡新增 */
    flex-direction: column; /* 這裡新增 */
}

.ds-header-title[b-vkeluvb33f] {
    color: #2196F3;
    font-size: 20px;
    text-align: left;
    padding: 10px 0 0 1em;
}

.ds-header-user[b-vkeluvb33f] {
    flex-shrink: 0; /* 保持大小，固定底部 */
    margin: 8px;
    padding: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 1);
    border-top: 1px solid #E0E0E0;
}

.ds-nav-list[b-vkeluvb33f] {
    list-style: none;
    padding: 0 0;
    margin: 0;
    flex: 1;
}

/* 導航項目樣式 */
.ds-nav-item[b-vkeluvb33f] {
    margin: 0.5rem 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .ds-nav-item:hover[b-vkeluvb33f] {
        box-shadow: 0 4px 6px rgba(33, 150, 243, 0.1);
        transform: translateY(-1px);
    }

.ds-nav-item-main[b-vkeluvb33f] {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ds-nav-title[b-vkeluvb33f] {
    color: #37474F;
    font-weight: 500;
}

.ds-submenu-indicator[b-vkeluvb33f] {
    font-size: 12px;
    color: #607D8B;
    transition: all 0.3s ease;
}

.ds-submenu-expanded .ds-submenu-indicator[b-vkeluvb33f] {
    transform: rotate(180deg);
}

/* 主連結樣式 */
.ds-main-link[b-vkeluvb33f] {
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    color: #37474F;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

    .ds-main-link[b-vkeluvb33f]::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: #2196F3;
        transform: scaleY(0);
        transition: all 0.3s ease;
    }

    .ds-main-link:hover[b-vkeluvb33f]::before {
        transform: scaleY(1);
    }

/* 子選單樣式 */
.ds-sub-links[b-vkeluvb33f] {
    display: none;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid #E0E0E0;
    max-height: 0;
}

.ds-submenu-expanded[b-vkeluvb33f] {
    display: block;
    animation: slideDown-b-vkeluvb33f .8s ease-out;
    max-height: 800px;
}

.ds-nav-link[b-vkeluvb33f] {
    padding: 10px 20px 10px 40px;
    display: block;
    text-decoration: none;
    color: #607D8B;
    transition: all 0.3s ease;
    position: relative;
}

    .ds-nav-link[b-vkeluvb33f]::before {
        content: '•';
        position: absolute;
        left: 25px;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .ds-nav-link:hover[b-vkeluvb33f] {
        color: #2196F3;
        background: #E3F2FD;
    }

        .ds-nav-link:hover[b-vkeluvb33f]::before {
            opacity: 1;
        }

/* 內容區域 */
.ds-pagecontent[b-vkeluvb33f] {
    flex: 1;
    /* margin-left: 280px; */
    /* padding: 2rem; */
    position: relative;
    background: white;
    /* border-radius: 12px; */
    margin: 0rem 0rem 0rem 280px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.05); */
}

/* Loading 樣式 */
.ds-loading-overlay[b-vkeluvb33f] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    /* backdrop-filter: blur(10px); */
    display: flex;
    justify-content: center;
    align-items: center;
}

.ds-loading-spinner[b-vkeluvb33f] {
    width: 40px;
    height: 40px;
    border: 3px solid #E3F2FD;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    animation: spin-b-vkeluvb33f 1s linear infinite;
}

@keyframes spin-b-vkeluvb33f {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideDown-b-vkeluvb33f {
    from {
        opacity: 1;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 800px;
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .ds-layout-container[b-vkeluvb33f] {
        flex-direction: column;
    }

    .ds-header-title[b-vkeluvb33f] {
        display: none;
    }

    .ds-mobile-header[b-vkeluvb33f] {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .ds-navcontainer[b-vkeluvb33f] {
        display: none;
        width: 100%;
        height: auto;
        position: fixed;
        top: 60px;
        z-index: 999;
    }

    .ds-nav-list[b-vkeluvb33f] {
        padding: 1em;
    }

    .ds-pagecontent[b-vkeluvb33f] {
        margin: 60px 0rem 0rem 0rem;
    }

    .ds-nav-item[b-vkeluvb33f] {
        margin: 0.5rem;
    }

        .ds-nav-item:hover[b-vkeluvb33f] {
            box-shadow: none;
            transform: none;
        }
}

@media (min-width: 769px) {
    /* 互動效果 */
    .ds-nav-item-main:hover[b-vkeluvb33f], .ds-main-link:hover[b-vkeluvb33f] {
        background: #E3F2FD;
        color: #2196F3;
    }
}


/* 額外的動畫效果 */
.ds-nav-item[b-vkeluvb33f],
.ds-nav-link[b-vkeluvb33f],
.ds-main-link[b-vkeluvb33f] {
    position: relative;
    overflow: hidden;
}

    .ds-nav-item:hover[b-vkeluvb33f]::after,
    .ds-nav-link:hover[b-vkeluvb33f]::after,
    .ds-main-link:hover[b-vkeluvb33f]::after {
        left: 100%;
    }




@keyframes navfadein-b-vkeluvb33f {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


@media print {
    .ds-pagecontent[b-vkeluvb33f] {
        margin: 0;
        padding: 0;
        box-shadow: none;
        background: white;
    }
}
/* /Pages/Home.razor.rz.scp.css */
.summary-vertical[b-kmej7dftx6] {
    display: block;
    margin-bottom: 1.5rem;
}

.summary-card[b-kmej7dftx6] {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.summary-header[b-kmej7dftx6] {
    background-color: #f8f8f8;
    padding: 0.75rem 1rem;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    font-size: 1.1rem;
}

.summary-body[b-kmej7dftx6] {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .summary-body a[b-kmej7dftx6] {
        color: #2c3e50;
        text-decoration: none;
        transition: 0.2s;
    }

        .summary-body a:hover[b-kmej7dftx6] {
            color: #007bff;
            text-decoration: underline;
        }
/* /Pages/RedirectPage/Login.razor.rz.scp.css */
.pagecontainer[b-dpg4jk9l7u] {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-header[b-dpg4jk9l7u] {
    text-align: center;
    margin-bottom: 40px;
}

.inputarea[b-dpg4jk9l7u] {
    min-width: 20vw;
    max-width: 350px;
}

.separator[b-dpg4jk9l7u] {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

    .separator[b-dpg4jk9l7u]::before,
    .separator[b-dpg4jk9l7u]::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #999; /* 分隔線顏色 */
    }

    .separator[b-dpg4jk9l7u]::before {
        margin-right: 10px; /* 文字左側的間距 */
    }

    .separator[b-dpg4jk9l7u]::after {
        margin-left: 10px; /* 文字右側的間距 */
    }

    .separator span[b-dpg4jk9l7u] {
        padding: 0 10px; /* 文字的內邊距 */
        color: #999; /* 文字顏色 */
    }
/* /Pages/SchoolListPage.razor.rz.scp.css */
.page-container[b-nubms79o9l] {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.left-container[b-nubms79o9l] {
    width: 300px;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #ccc;
    padding: 1em;
    box-sizing: border-box;
}

.right-container[b-nubms79o9l] {
    flex: 1;
    min-width: 300px;
    max-height: 100vh;
    overflow-y: auto;
    padding: 1em;
    box-sizing: border-box;
}

/* --- 通用樣式 --- */
.card[b-nubms79o9l] {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .card:hover[b-nubms79o9l] {
        background-color: #e6f0ff;
    }

.group-section[b-nubms79o9l] {
    margin-bottom: 16px;
    padding: 8px 0;
    border-bottom: 1px dashed #ccc;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    box-sizing: border-box;
}

.item-row[b-nubms79o9l] {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 8px;
    /* margin-bottom 移除，避免 grid 排版錯誤 */
}

.item-name[b-nubms79o9l] {
    font-weight: 600;
    min-width: 120px;
    color: #333;
}

img.img-fluid[b-nubms79o9l] {
    border-radius: 6px;
    margin-right: 12px;
    margin-bottom: 12px;
    object-fit: cover;
    max-width: 33%;
    height: auto;
    
}

/* --- RWD 手機模式 --- */
@media (max-width: 768px) {
    .page-container[b-nubms79o9l] {
        flex-direction: column;
    }

    .left-container[b-nubms79o9l] {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #ccc;
        padding-right: 0;
        margin-bottom: 16px;
    }

    .right-container[b-nubms79o9l] {
        width: 100%;
    }

    .item-row[b-nubms79o9l] {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-name[b-nubms79o9l] {
        min-width: auto;
    }

    img.img-fluid[b-nubms79o9l] {
        width: 100% !important;
        margin-right: 0;
    }

    .group-section[b-nubms79o9l] {
        grid-template-columns: 1fr;
    }
}

.tf-btn[b-nubms79o9l] {
    background-color: white;
    border: 1px solid #aaa;
    border-radius: 8px;
    padding: 0.6em 1.2em;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}


    .tf-btn:hover[b-nubms79o9l] {
        background-color: #f0f0f0;
        border-color: #555;
    }

.tf-call[b-nubms79o9l] {
    color: #2c3e50;
}

.tf-mail[b-nubms79o9l] {
    color: #2980b9;
}

.tf-line[b-nubms79o9l] {
    color: #27ae60;
}

.tf-hire[b-nubms79o9l] {
    color: #e67e22;
    font-weight: bold;
}

.tf-unverify[b-nubms79o9l] {
    color: #c0392b; /* 深紅，代表未驗證 */
    font-weight: bold;
}

.tf-verify[b-nubms79o9l] {
    color: #16a085; /* 綠藍色，代表已驗證 */
    font-weight: bold;
}

.header-function[b-nubms79o9l] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1em;
}

    .header-function .tf-btn[b-nubms79o9l] {
        flex: 1 1 100%; /* 小尺寸預設直排 */
    }

/* 大尺吋：橫排，每個按鈕佔 33% */
@media (min-width: 768px) {
    .header-function .tf-btn[b-nubms79o9l] {
        flex: 1 1 calc(25% - 0.5rem);
    }
}

.photo-grid[b-nubms79o9l] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

@media (min-width: 768px) {
    .photo-grid[b-nubms79o9l] {
        grid-template-columns: repeat(3, 1fr); /* 大尺吋每排 3 張 */
    }
}

.photo-wrapper[b-nubms79o9l] {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 比例 */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.school-photo[b-nubms79o9l] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 12px;
}
/* /Pages/TeacherListPage.razor.rz.scp.css */
.tf-home-page[b-p1zgwjt7hw] {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 1rem;
    flex-wrap: wrap;
}

.tf-form-list[b-p1zgwjt7hw] {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border-right: 1px solid #ddd;
    padding-right: 1rem;
}

@media (max-width: 768px) {
    .tf-form-list[b-p1zgwjt7hw] {
        border-right: none;
        padding-right: 0;
    }
}

.tf-form-item[b-p1zgwjt7hw] {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.2s;
}

    .tf-form-item:hover[b-p1zgwjt7hw] {
        background-color: #f0f0f0;
    }

.tf-form-name[b-p1zgwjt7hw] {
    display: block;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.tf-form-time[b-p1zgwjt7hw] {
    font-size: 0.9rem;
    color: #666;
}

.tf-form-detail[b-p1zgwjt7hw] {
    flex: 2;
    min-width: 400px;
    padding-left: 1rem;
}

.tf-form-view[b-p1zgwjt7hw] {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
}

.tf-row[b-p1zgwjt7hw] {
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
}

    .tf-row span:first-child[b-p1zgwjt7hw] {
        font-weight: bold;
        margin-right: 0.5rem;
    }

.tf-form-actions[b-p1zgwjt7hw] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.tf-form-actions-top[b-p1zgwjt7hw] {
    margin-bottom: 2rem;
}

.tf-btn[b-p1zgwjt7hw] {
    background-color: white;
    border: 1px solid #aaa;
    border-radius: 8px;
    padding: 0.6em 1.2em;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

    .tf-btn:hover[b-p1zgwjt7hw] {
        background-color: #f0f0f0;
        border-color: #555;
    }

.tf-call[b-p1zgwjt7hw] {
    color: #2c3e50;
}

.tf-mail[b-p1zgwjt7hw] {
    color: #2980b9;
}

.tf-line[b-p1zgwjt7hw] {
    color: #27ae60;
}

.tf-hire[b-p1zgwjt7hw] {
    color: #e67e22;
    font-weight: bold;
}

@media (min-width: 768px) {
    .tf-form-actions[b-p1zgwjt7hw] {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .tf-btn[b-p1zgwjt7hw] {
        flex: 1 0 180px;
    }
}


/* 頁面容器不要超出寬度 */
.tf-home-page[b-p1zgwjt7hw] {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* 這行是關鍵 */
}

/* 所有區塊在小尺寸時要占滿寬度、不爆版 */
.tf-form-list[b-p1zgwjt7hw],
.tf-form-detail[b-p1zgwjt7hw] {
    box-sizing: border-box;
    min-width: 100%;
    max-width: 100%;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .tf-form-list[b-p1zgwjt7hw] {
        min-width: 300px;
        max-width: 400px;
        padding-right: 1rem;
        border-right: 1px solid #ddd;
    }

    .tf-form-detail[b-p1zgwjt7hw] {
        min-width: 400px;
        padding-left: 1rem;
    }
}
