/* style.css */
/* General body styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    padding: 20px;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
}

/* Center align the main heading */
h1 {
    text-align: center;
    color: #343a40;
    margin-bottom: 0.5em;
}

/* Style the introductory paragraph */
p {
    text-align: left;
    color: #6c757d;
    margin-bottom: 2em;
}

/* Style code elements within text */
code {
    background-color: #e9ecef;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
}

/* Styling for the table container */
.table-container {
    overflow-x: auto;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5em;
}

/* Basic table styling */
#dataTable {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

/* Table header and cell styling */
#dataTable th,
#dataTable td {
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    text-align: left;
    vertical-align: top; /* Keep content aligned top */
    font-size: 0.95rem;
}

/* Header specific styling */
#dataTable thead th { /* Style both header rows */
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky; /* Make header sticky */
    top: 0; /* Stick to the top */
    z-index: 10;
}

/* Adjust sticky top position for the second header row (filters) */
#dataTable thead tr:nth-child(2) th {
    top: 50px; /* Adjust this value based on the height of your first header row */
    /* If header height varies, this might need JS adjustment, but usually fixed height is fine */
    background-color: #f1f3f5; /* Slightly different background for filter row */
}


#dataTable thead tr:first-child th { /* Style only the first header row */
    border-bottom-width: 2px;
}

/* Styling for the filter row specifically */
.filter-row th {
    padding: 8px; /* Less padding for filter cells */
    vertical-align: middle; /* Center input vertically */
}

/* Styling for the filter input fields within the header */
.column-filter {
    width: 95%; /* Make input fill most of the cell width */
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9em; /* Slightly smaller font for filters */
    box-sizing: border-box; /* Include padding and border in element's total width/height */
}

.column-filter:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}


/* Alternating row colors for better readability */
#dataTable tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

#dataTable tbody tr:hover {
    background-color: #e9ecef;
}

/* Make URLs clickable and style them */
#dataTable td a {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
}
#dataTable td a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Styling for status messages (loading, error, no results) */
.status-message {
    text-align: center;
    font-style: italic;
    color: #6c757d;
    padding: 30px;
    font-size: 1rem;
}

/* Styling for the pagination controls */
.pagination-container {
    margin-top: 20px;
    text-align: center;
    padding: 10px 0;
}

.pagination-container button {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.pagination-container button:hover:not(:disabled) {
    background-color: #0056b3;
    border-color: #0056b3;
}

.pagination-container button:disabled {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
}

/* Style for the page info text */
.pagination-container span {
    margin: 0 15px;
    vertical-align: middle;
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}

/* Remove old filter container style if present */
/*
.filter-container {
    margin-bottom: 1.5em;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#filterInput {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-width: 250px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#filterInput:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
*/
