/* Đặt font chung cho toàn trang */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tiêu đề trang */
h1 {
    color: #333;
    margin-top: 20px;
}

/* Định dạng nút */
button, .button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

button:hover, .button:hover {
    background-color: #45a049;
}

/* Căn giữa các nút điều hướng */
.nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.nav a.button {
    padding: 10px 15px;
    color: white;
    background-color: #4CAF50;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.nav a.button:hover {
    background-color: #45a049;
}

/* Bảng */
#movie-list {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap; /* Giữ văn bản trên một dòng */
}

th {
    background-color: #333;
    color: white;
    font-size: 14px;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

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

/* Liên kết trong bảng */
a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Ô tìm kiếm */
form[method="get"] {
    text-align: center;
    margin-bottom: 20px;
}

form[method="get"] input[type="text"] {
    padding: 8px;
    width: 250px;
    font-size: 14px;
    margin-right: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form[method="get"] button {
    padding: 8px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

form[method="get"] button:hover {
    background-color: #45a049;
}

/* Định dạng form */
form {
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="submit"] {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

/* Định dạng thông báo lỗi */
.error {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

.success {
    color: green;
    font-weight: bold;
    margin-top: 10px;
}

/* Phân trang dạng button với khoảng cách đều và kiểu button */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    color: #333;
    background-color: #eee;
    padding: 8px 12px;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #ddd;
}

.pagination a.active {
    background-color: #333;
    color: white;
    pointer-events: none;
}

.pagination .disabled {
    background-color: #ddd;
    color: #999;
    pointer-events: none;
}

/* Checkbox và ô chọn tất cả */
th:first-child, td:first-child {
    text-align: center;
    width: 5%;
}
/* Căn chỉnh hai nút trong cùng một hàng */
.button-group {
    display: flex;
    justify-content: center;
    gap: 10px; /* Khoảng cách giữa các nút */
    margin-bottom: 20px; /* Khoảng cách dưới button-group */
}

.button-group .button {
    padding: 10px 15px;
    font-size: 16px;
}
