/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header and Navigation */
.header {
    background-color: #c0392b;
    color: white;
    padding: 20px 0;
    border-bottom: 4px solid #a93226;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.header h1 a {
    color: white;
    text-decoration: none;
}

.nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav li {
    display: inline-block;
    margin-left: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav a:hover, .nav a.active {
    background-color: #a93226;
}

.nav-toggle {
    display: none; /* Hidden by default */
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.5em;
}

.hamburger {
    display: block;
    position: relative;
    background-color: white;
    width: 2em;
    height: 3px;
    transition: transform 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    background-color: white;
    width: 100%;
    height: 3px;
    transition: transform 0.3s ease-in-out;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
        z-index: 1000;
    }

    .nav__list {
        display: none;
        position: absolute;
        background: #c0392b;
        width: 100%;
        left: 0;
        top: 70px; /* Adjust based on header height */
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .nav__list--visible {
        display: flex;
    }

    .nav li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav a {
        display: block;
        padding: 1em;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid #a93226;
    }
    .nav li:last-child a {
        border-bottom: none;
    }

    .nav-toggle.open .hamburger {
        transform: rotate(45deg);
    }
    .nav-toggle.open .hamburger::before {
        transform: rotate(90deg) translate(-7px, 0px);
    }
    .nav-toggle.open .hamburger::after {
        opacity: 0;
    }
}

/* Main Content */
.content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 30px;
}

h2 { /* General H2 styling */
    color: #c0392b;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 1.5rem; /* Default H2 size */
}

.content > h2 { /* Specific H2 for main page section titles */
     font-size: 1.7rem; /* Larger for section titles like "Grote brandmeldingen van vandaag" */
}

.melding h2 { /* H2 within each melding/alert */
    font-size: 1.2rem; /* Smaller for individual alert titles */
    color: #333; /* Darker color for alert titles */
    border-bottom: 1px solid #ddd; /* Lighter border for alert titles */
    margin-bottom: 10px;
    padding-bottom: 5px;
}


/* Meldingen (Notifications) */
.melding {
    padding: 15px 20px;
    border-bottom: 1px solid #eef;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
    background-color: #fff;
}
.melding:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.melding .tijd {
    font-weight: 600;
    color: #444;
    font-size: 1rem;
}
.melding .locatie {
    color: #666;
    font-size: 0.9em;
}

.melding .details {
    margin-bottom: 8px;
}

.melding .prio, .melding .scale, .melding .wijk {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 700;
    color: white;
    margin-right: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    margin-bottom: 5px; /* Added for spacing if they wrap */
}

.melding .wijk {
    background-color: #3498db; /* Blue for wijk */
}

/* Subtle color distinctions for priority */
.melding.prio-1 {
    background-color: #fdecea;
    border-left: 6px solid #e74c3c;
}
.melding.prio-2 {
    background-color: #fff4e5;
    border-left: 6px solid #f39c12;
}
.melding.prio-3 {
    background-color: #e8f5e9;
    border-left: 6px solid #27ae60;
}

.melding .prio {
    background-color: #e74c3c;
}

.melding .scale {
    background-color: #f39c12;
}

.narrative {
    margin-top: 10px;
    line-height: 1.7;
    color: #444;
}

/* Forms */
form {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #eee;
}
form label {
    font-weight: bold;
    margin-right: 10px;
}
form input[type="date"], form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}
form input[type="submit"] {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
form input[type="submit"]:hover {
    background-color: #a93226;
}


/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
th {
    background-color: #f2f2f2;
    font-weight: bold;
}
tr:nth-child(even) {
    background-color: #f9f9f9;
}
tr:hover {
    background-color: #f1f1f1;
}


/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    font-size: 0.9em;
    color: #777;
    border-top: 1px solid #ddd;
}
.footer a {
    color: #c0392b;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}

/* CTA Button */
.cta {
    margin-top: 10px;
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.cta:hover {
    background: #229954;
}
