body {
    font-family: Arial, sans-serif;
}

/* --- Main container for the data table --- */
.data-table-container {
    max-width: 100%;
    margin: 20px 20px;
    padding: 20px 0px 0px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- Filter controls styling --- */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-controls label {
    font-weight: bold;
    color: #555;
}

.filter-controls input,
.filter-controls select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.filter-controls button {
    padding: 10px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-controls button:hover {
    background-color: #0056b3;
}

/* --- Table styling --- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

.table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table tbody tr:hover {
    background-color: #f1f1f1;
}

/* --- Loading spinner styling --- */
#loadingSpinner {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #555;
    padding: 20px;
}

/* --- Pagination controls styling --- */
.pagination-controls {
    display: flex;
    justify-content: left;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 20px;
}

.pagination-controls button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 35px; /* Ensures buttons have a consistent size */
    text-align: center;
}

.pagination-controls button:hover:not(.active):not(.disabled) {
    background-color: #e2e6ea;
}

.pagination-controls button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: bold;
    cursor: default;
}

.pagination-controls button.disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #e9ecef;
    opacity: 0.6;
}

.pagination-controls button.disabled:hover {
    background-color: #e9ecef;
}
