/* --- 表格優化 --- */
/* 表格美化 */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}
.table thead th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #1abc9c !important;
    padding: 15px;
}
.table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}
.table tr:hover {
    background-color: #f8f9fa;
}
/* --- 分頁容器優化 --- */
/* 分頁容器優化 */
#MainPageDiv_Id, 
#Contain_1_PageDiv_Id{
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;    /* 垂直對齊 */
    padding: 20px 0;
    width: 100%;
}

.Pagination-Container {
    display: flex;
    align-items: center;         /* 垂直置中 */
    justify-content: center;    /* 新增：水平置中，讓分頁按鈕移到畫面中間 */
    width: 100%;                /* 新增：確保容器橫跨整個寬度，否則置中會無效 */
    gap: 8px;                   /* 元素之間的固定間距 */
    margin: 20px 0;           /* 建議：增加與上方表格的距離 */
}

/* 修正按鈕在寬螢幕下的樣式 */
.Pagination-Container .w3-button {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 修正下拉選單高度與按鈕一致 */
.Pagination-Container .w3-select {
    height: 38px;
    padding: 0 10px;
    background-color: white;
    width: auto;                /* 確保下拉選單不會寬度失控 */
}
/* --- 搜尋界面優化 --- */
/* 容器樣式 */
.search-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 輸入框樣式 */
.search-input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px; /* 圓角造型 */
    outline: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.search-input:focus {
    border-color: #17a2b8; /* 與 btn-info 顏色呼應 */
    box-shadow: 0 0 5px rgba(23, 162, 184, 0.3);
}

/* 按鈕樣式 */
.search-btn {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background-color: #138496;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}