* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f0f5fa;
    color: #1f2937;
}

header,
footer {
    padding: 1rem;
    background: #1f2937;
    color: white;
}

nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 80vh;
}

a {
    color: #075985
}

a:focus-visible,
input:focus-visible,
button:focus-visible,
select:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem
}

input,
select,
button {
    font: inherit;
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid #64748b;
}

button {
    background: #075985;
    color: white;
    cursor: pointer;
}

.table-wrapper {
    overflow-x: auto;
}

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

th,
td {
    padding: 0.8rem;
    border-bottom: 1px solid #cbd5e1;
    text-align: left;
}

th {
    background: #1f2937;
    color: white;
}

footer {
    text-align: center;
}

@media (max-width: 600px) {
    main {
        padding: 1rem;
    }

    nav {
        flex-direction: column;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    position: relative;
    width: 100%;
    height: 350px;
}

@media (max-width: 600px) {
    .chart-container {
        height: 280px;
    }
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-weight: bold;
}

@media (max-width: 600px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .form-field input {
        width: 100%;
    }
}