body {
    font-family: Arial, sans-serif;
    background: #f6f6f6;
    margin: 0;
    padding: 0;
}

nav {
    background: #0077cc;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: .5rem 1rem;
    border-radius: 5px;
}

nav a.active, nav a:hover {
    background: #005fa3;
}

main {
    max-width: 1400px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form, .filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
    align-items: center;
}

input, select, button {
    padding: .5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background: #0077cc;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #005fa3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    border: 1px solid #ddd;
    padding: .6rem;
    text-align: center;
}

a.button-secondary {
    background: #ddd;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
}

a.button-secondary:hover {
    background: #bbb;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}
.warning a {
    color: #004085;
    text-decoration: underline;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.filter-form label {
    display: block;
    font-weight: 600;
}

.filter-form select,
.filter-form input[type="date"] {
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filter-form button {
    background: #0078d7;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.filter-form button:hover {
    background: #005ea3;
}

/* ===== Responsieve layout voor mobiele apparaten ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0 1rem;
    background: #fafafa;
}

h2 {
    font-size: 1.4rem;
    margin-top: 1.2rem;
}

/* Tabellen scrollbaar maken op kleine schermen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

table th, table td {
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
}

table th {
    background: #f0f0f0;
}

/* Formulieren mooi stapelen */
.form,
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form label,
.filter-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.form input,
.form select,
.filter-form input,
.filter-form select {
    width: 100%;
    max-width: 300px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Knoppen */
button,
a.button-secondary {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    font-size: 1rem;
}

button {
    background: #0078d7;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #005ea3;
}

a.button-secondary {
    background: #ddd;
    color: #333;
}

a.button-secondary:hover {
    background: #bbb;
}

/* ===== Menu styling ===== */
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: #0078d7;
    padding: 0.5rem 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
}

nav a:hover {
    background: #005ea3;
}

/* ===== Mobiele aanpassingen ===== */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    h2 {
        font-size: 1.2rem;
        text-align: center;
    }

    nav {
        flex-direction: column;
        align-items: stretch;
    }

    nav a {
        text-align: center;
        padding: 0.7rem;
        background: #0078d7;
        margin-bottom: 0.2rem;
    }

    .form,
    .filter-form {
        flex-direction: column;
    }

    table th, table td {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    button,
    a.button-secondary {
        width: 100%;
        text-align: center;
    }
}

table td a {
    margin-right: 0.5rem;
    color: #0078d7;
    text-decoration: none;
}

table td a:hover {
    text-decoration: underline;
}

.button {
    background-color: #0078d7;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.button:hover {
    background-color: #005fa3;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    border-bottom: 1px solid #ccc;
}

@media (max-width: 600px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ========== Dropdown menu ========== */

nav {
    background: #0077cc;
    padding: 0.5rem 1rem;
}

.menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
    border-radius: 4px;
    font-weight: bold;
}

.menu > li > a:hover {
    background: #005fa3;
}

/* Dropdown inhoud */
.dropdown-content {
    display: none;
    position: absolute;
    background: #0077cc;
    top: 100%;
    left: 0;
    min-width: 180px;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 999;
}

.dropdown-content li a {
    display: block;
    padding: 0.7rem 1rem;
    color: white;
    text-decoration: none;
}

.dropdown-content li a:hover {
    background: #005fa3;
}

/* Hover activeert dropdown */
.dropdown:hover .dropdown-content {
    display: block;
}

/* "Ingelogd als" label mag niet klikken */
.user-label {
    color: #fff;
    padding: 0.5rem 1rem;
    opacity: 0.8;
}

.no-hover:hover {
    background: none !important;
}

/* Mobiel */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        gap: 0.2rem;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background: #006bc0;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}
