/* สไตล์สำหรับส่วนของตาราง */
.container {
    width: 90%;
    margin: 20px auto;
    font-family: 'Arial', sans-serif;
}

h1 {
    text-align: center;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

/* สไตล์สำหรับช่องค้นหา */
.search-bar {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.search-bar:focus {
    border-color: #47b1e2;
    outline: none;
}



/* สไตล์สำหรับตาราง */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #4c90af;
    color: white;
    font-weight: bold;
}

td {
    background-color: #f9f9f9;
}

td:hover {
    background-color: #f1f1f1;
}

/* สไตล์สำหรับปุ่ม Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination a {
    padding: 10px 20px;
    background-color: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: #4CAF50;
    color: white;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
}

.pagination a.disabled {
    background-color: #e0e0e0;
    color: #b5b5b5;
    pointer-events: none;
}

.pagination a.first,
.pagination a.prev,
.pagination a.next,
.pagination a.last {
    font-size: 16px;
}

/* เพิ่มการแสดงผลของปุ่มแรกและปุ่มสุดท้าย */
.pagination a.first,
.pagination a.last {
    font-size: 16px;
    padding: 10px 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* สไตล์เมื่อมีการแสดงหน้า */
.pagination a.active,
.pagination a:hover {
    background-color: #009688;
    color: white;
}
