/* layout.css */
/* =========================
   版面基本結構
========================= */

.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    max-width: 100vw;
}

.sidebar {
    width: 16%;
    padding: 20px;
    box-sizing: border-box;
    background: transparent;
    border-right: 2px solid #999;
    flex-shrink: 0;
    /* 禁止側邊欄被表格擠扁 */
}

.main-content {
    flex: 1;
    min-width: 0;
}

.content {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* 這裡不需要 overflow: hidden，交給裡面的容器處理 */
}

/* =========================
   標題設定
========================= */

h1 {
    background-color: #f8f9fa;
    color: #333;
    padding: 12px 20px;
    margin: 40px 0 20px 0;
    font-size: 25px;
    font-weight: 600;
    border-radius: 4px;
    border-left: 4px solid #4A90E2;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}



h1.subjectsTitle {
    margin-top: 40px;
}



.content h1 {
    margin-top: 0;
    margin-bottom: 5px;
}

footer {
    /* 1. 最上層的分割線：設定粗細、樣式與顏色 */
    border-top: 1px solid #ccc;

    /* 2. 置中設定 */
    text-align: center;

    /* 3. 間距調整：padding 讓文字跟線條、頁面底部保持距離 */
    padding: 20px 0;

    /* 4. 讓頁尾與上方內容區塊保持一點距離（選填） */
    margin-top: 40px;
}

.footer-content p {
    /* 調整段落間距，避免預設的 margin 太大 */
    margin: 5px 0;
    color: #666;
    /* 調整文字顏色為灰色，看起來更專業 */
    font-size: 14px;
}