/* styles.css */

/* Base styles for all screen sizes */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Viewport meta tag for responsiveness */
meta[name="viewport"] {
    width: device-width;
    initial-scale: 1;
}

/* Header styles with logo */
header {
    background: #eee;
    color: #000;
    padding: 10px 0;
    display: flex;
    justify-content: space-between; /* Align header elements horizontally */
    align-items: center; /* Vertically center header elements */
}

/* Logo styles */
header .logo {
    display: inline-block;
    vertical-align: middle;
}

/* Title styles adjusted for logo presence */
header h1 {
    margin-left: 20px;
    font-size: 2.25rem; /* Scalable font size */
    color: #333;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.2;
    font-family: 'Arial', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Ensure the path to your logo image is correct */
.logo-img {
    width: auto;
    height: 50px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    background-color: #f4f4f4;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

table td {
    line-height: 1.2;
}

/* Add any additional styles for th if needed, similar to td */
table th {
    padding: 3px;
}

a {
    display: inline-block;
    padding: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

a:hover {
    background-color: #DDD;
    color: #fff;
    text-decoration: none !important;
}

/* Pagination container */
.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}

/* Pagination links */
.pagination a {
    color: #333;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 4px;
}

/* Pagination links hover effect */
.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* Active pagination link */
.pagination a.active {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

/* Pagination "Previous" and "Next" buttons */
.pagination a.prev, .pagination a.next {
    font-weight: bold;
    padding: 8px 20px;
}

/* Disabled "Previous" and "Next" buttons */
.pagination a.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Container for records */
.records-container {
    max-width: 90%;
    margin: 30px auto;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Individual record */
.record {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fafafa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Record title */
.record-title {
    padding: 5px;
    border-radius: 8px;
    background-color: #BBD7F6;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Record row */
.record-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-top: 10px;
}

/* Record row group */
.record-row-group {
    padding-bottom: 15px;
    margin-top: 25px;
    width: 50%;
}

/* Remove bottom border for the last record row */
.record-row:last-child {
    border-bottom: none;
}

/* Record field */
.record-field {
    flex: 1;
    padding: 5px;
    text-align: center;
    font-size: 0.95em;
    color: #555;
}

/* Adjust text alignment for the first and last field */
.record-field:first-child {
    text-align: left;
}

.record-field:last-child {
    text-align: right;
}

/* Record field span */
.record-field span {
    font-size: 1.1em;
    color: #333;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    header {
        padding: 5px 0;
        flex-direction: column;
        text-align: center;
    }

    header .logo {
        margin: 10px 0;
    }

    header h1 {
        font-size: 1.75rem; /* Scalable font size for mobile */
    }

    table {
        font-size: 14px;
    }

    table th,
    table td {
        padding: 5px;
    }
}

.right-aligned-text {
    display: block;
    text-align: right;
    color: gray;
    font-size: smaller;
}