:root {
    --primary-color: #005A8D;
    --secondary-color: #E8F0F3;
    --text-color: #333;
    --bg-color: #F9FAFB;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 2rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3 {
    margin: 0.2rem 0 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover {
    color: #003e61;
}

.topnav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.event {
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--primary-color);
    margin: 0.5rem 0;
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.impacts {
    font-size: 0.85em;
    margin-top: 0.5rem;
    display: block;
}

.impact-positive {
    color: green;
    font-weight: bold;
}

.impact-negative {
    color: red;
    font-weight: bold;
}

.scrollable-content {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 1rem;
}

.actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.action-card {
    flex: 1 1 300px;
}

input,
select,
button {
    padding: 0.75rem;
    margin: 0.4rem 0;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 90, 141, 0.2);
}

button {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
}

button:hover {
    background-color: #00456b;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .grid,
    .cards,
    .actions-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }
}



.grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid {
        flex-direction: column;
        align-items: center;
    }
}


.auth-forms {
    max-width: 400px;
    margin: 2rem auto;
}
.auth-forms .link-switch {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9em;
}
.error-msg {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: #fcc;
    color: #a00;
}
.success-msg {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: #cfc;
    color: #0a0;
}