/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* Header for inner pages */
header {
    background-color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.logo {
    max-width: 100px;
    margin-right: 20px;
}

header h1 {
    font-size: 1.8em;
    margin: 0;
    color: #005a9e;
}

/* Main Content */
main {
    padding: 20px 0;
}

.button-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.button-container .btn {
    margin-top: 0;
}

h2 {
    font-size: 1.5em;
    color: #005a9e;
    border-bottom: 2px solid #005a9e;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Table Styles */
.table-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #005a9e;
    color: #fff;
}

th, td {
    padding: 15px;
    text-align: left;
}

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

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

tbody td strong {
    color: #005a9e;
    font-size: 1.2em;
}

.year-row,
.year-row:hover {
    background-color: #eaf2fa;
}

.empty {
    text-align: center;
    color: #666;
    font-style: italic;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow: auto;
}

#pdfIframe {
    width: 100%;
    height: 90vh;
    border: none;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin: 0 0 10px 0;
    }

    .button-container {
        justify-content: center;
        text-align: center;
    }

    th, td {
        padding: 10px;
        font-size: 0.9em;
    }
}
