/* --- Modern Color Palette & Fonts --- */
:root {
    --primary-color: #0d47a1; /* Deeper Blue */
    --secondary-color: #1976d2; /* Brighter Blue */
    --accent-color: #64b5f6;  /* Light Blue for accents on dark bg */
    --dark-bg: #263238;      /* Dark Slate Gray for Hero/Footer */
    --light-bg: #f4f7f9;     /* Light Gray for Body Background */
    --text-color: #37474f;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Header & Navigation (Blue Background) --- */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 2rem;
}

nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease-out;
}

nav a:hover, nav a.active {
    color: var(--text-light);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}


/* --- Hero Section (Homepage) --- */
.hero {
    background-color: var(--dark-bg);
    color: var(--text-light);
    text-align: center;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--text-light); /* Explicitly set color for hero heading */
    border: none;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero .cta-button {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.hero .cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* --- Main Content & Sections --- */
main {
    flex: 1;
    width: 100%;
}

.content-wrapper {
    max-width: 1024px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-section {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

main h1, main h2 {
    color: var(--primary-color);
    padding-bottom: 0.75rem;
    margin-top: 0;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

main p {
    margin-bottom: 1.2rem;
    text-align: justify;
}


/* --- Footer --- */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

/* --- Table & Pagination (Statement Page) --- */
#records-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden; /* For border-radius to work on table */
    box-shadow: 0 4px 15px var(--shadow-color);
}

#records-table th, #records-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

#records-table th {
    background-color: #f7f9fc;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
}

#records-table tbody tr:last-child td {
    border-bottom: none;
}

#records-table tbody tr:hover {
    background-color: #e3f2fd;
}

#pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

#pagination-controls button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    margin: 0 0.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

#pagination-controls button:hover:not(:disabled) {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

#pagination-controls button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

#page-info {
    font-weight: 500;
    color: var(--text-color);
    min-width: 100px;
    text-align: center;
}

/* --- Contact Info --- */
.contact-info {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}
.contact-info li {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}
.contact-info strong {
    display: inline-block;
    width: 120px;
    color: var(--primary-color);
    font-weight: 600;
}
