body {
    margin: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    background-color: #f6f9fc;
    color: #333;
    box-sizing: border-box; /* Voeg toe om padding binnen breedte te houden */
    overflow-x: hidden; /* Voorkomt horizontale scroll op body-niveau */
}

header {
    padding: 0;
    border-bottom: 2px solid #b2ebf2;
    background-color: transparent;
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px; /* zelfde als .main */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header img {
    height: 60px;
    margin-right: 20px;
    flex-shrink: 0;
}

nav {
    margin-left: auto;
    transition: all 0.3s ease;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #00796b;
    font-weight: 500;
}

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

main {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
}

footer {
    background-color: #e0f7fa;
    padding: 1px;
    border-top: 2px solid #b2ebf2;
    font-size: 0.9em;
    color: #004d40;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box; /* Zorgt dat padding binnen breedte blijft */
}

.footer-left, .footer-right {
    margin: 5px 0;
}

footer a {
    color: #00796b;
    text-decoration: none;
    margin: 0 5px;
}

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

/* Hamburger menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: #004d40;
    cursor: pointer;
    margin-left: auto;
}

@media (max-width: 768px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        position: relative;
        z-index: 1000;
        height: 70px; /* Vaste hoogte voor consistente positionering */
    }

    header img {
        height: 50px;
        margin-right: 0;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 26px;
        color: #004d40;
        cursor: pointer;
        padding: 10px;
        position: absolute; /* Gebruik absolute positionering */
        top: 10px; /* Afstand vanaf bovenkant header */
        right: 40px; /* Afstand vanaf rechterkant, kan naar links verplaatst worden */
        z-index: 1002;
        margin: 0; /* Verwijder marges */
    }

    nav {
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        text-align: center;
        background-color: #e0f7fa;
        margin-top: 0;
        padding: 0 20px 20px;
        opacity: 0;
        transform: translateY(-10px);
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 1001;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
        transition: max-height 0.4s ease, padding-bottom 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
        box-sizing: border-box;
    }

    nav.show {
        max-height: 700px;
        padding-bottom: 20px;
        opacity: 1;
        transform: translateY(0);
    }

    nav a {
        padding: 12px 0;
        margin: 0;
        border-top: 1px solid #b2ebf2;
        display: block;
        width: 100%;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    main {
        padding: 10px;
        margin: 10px;
        position: relative;
        z-index: 1;
        margin-top: 90px;
    }
}
/* --- Route Tabellen Styling --- */
.route-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 2rem;
    font-family: sans-serif;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.route-table th, .route-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.route-table th {
    background-color: #f0f8ff;
    font-weight: bold;
}

.route-table tr:hover {
    background-color: #f9f9f9;
}

.route-table a {
    color: #0077cc;
    text-decoration: none;
}

.route-table a:hover {
    text-decoration: underline;
}

/* --- Admin Dashboard Buttons --- */
.admin-button {
    display: inline-block;
    padding: 10px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    background: #e6f2ff;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    color: #000;
    transition: background 0.2s ease;
}

.admin-button:hover {
    background: #d4e9fb;
}

.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Standaardstijl voor input-velden om ze altijd goed zichtbaar te maken */
input, textarea {
    background-color: #ffffff;
    color: #1f2937;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

/* Uitzondering voor input type="color" om native styling te behouden */
input[type="color"] {
    background-color: unset;
    color: unset;
    border: unset;
    border-radius: unset;
    padding: unset;
}

/* Focus-effecten voor input-velden */
input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Grid voor menu-knoppen */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}

/* Medium schermen (min-width: 768px, equivalent aan Tailwind's md:) */
@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Grote schermen (min-width: 1024px, equivalent aan Tailwind's lg:) */
@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Grid voor statistieken */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

/* Grote schermen (min-width: 768px, equivalent aan Tailwind's md:) */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Tabelstijlen */
.table {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

.table th {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    color: #374151;
}

.table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    color: #4b5563;
}

.table tr:hover {
    background-color: #f9fafb;
}

/* Contactformulier */
.contact-form {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.contact-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #004d40;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    background-color: #ffffff;
    color: #1f2937;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background-color: #00796b;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #004d40;
}

.contact-form .form-error,
.contact-form .form-succes {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-form .form-error {
    background: #ffe6e6;
    border: 1px solid #ff9999;
    color: #a00;
}

.contact-form .form-succes {
    background: #e6ffea;
    border: 1px solid #99ffb3;
    color: #007a33;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #004d40;
    color: #ffffff;
    padding: 15px;
    z-index: 9999;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
    box-sizing: border-box; /* Zorgt dat padding binnen breedte blijft */
}

.cookie-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.cookie-container p {
    flex: 1 1 70%;
    margin: 0;
    overflow: hidden; /* Voorkomt overloop */
    text-overflow: ellipsis; /* Voegt ... toe als tekst te lang is */
}

.cookie-container a {
    color: #80deea;
    text-decoration: underline;
}

.cookie-buttons {
    flex: 1 1 30%;
    text-align: right;
}

.cookie-buttons button {
    background-color: #80cbc4;
    color: #004d40;
    border: none;
    padding: 8px 12px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
}

.cookie-buttons button:hover {
    background-color: #4db6ac;
}
/* Grote letters functionaliteit */
.large-text {
  font-size: 1.25em;
}

.large-text p,
.large-text li,
.large-text td,
.large-text th,
.large-text a {
  font-size: 1.3em !important;
}

.large-text h1 {
  font-size: 2em !important;
}
.large-text h2 {
  font-size: 1.8em !important;
}
.large-text h3 {
  font-size: 1.5em !important;
}
nav a#toggleFontSize {
  padding: 0.5em;
  font-size: 1.2em;
  text-decoration: none;
}
.align-with-main {
  max-width: 900px; /* 900 - 2×20px padding van main */
  margin: 0 auto;
  width: 100%;
}
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-button {
  background: none;
  border: none;
  color: #00796b;
  font-weight: 500;
  cursor: pointer;
  font-size: 1em;
}

.user-menu {
  display: none;
  position: absolute;
  right: 0;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 6px;
  overflow: hidden;
}

.user-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #004d40;
  background: #e0f7fa;
}

.user-menu a:hover {
  background-color: #b2ebf2;
}

.user-dropdown:hover .user-menu {
  display: block;
}
.search-container {
  position: relative;
  display: inline-block;
}

#searchForm {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  padding: 5px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#searchInput {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 180px;
}

.search-container.active #searchForm {
  display: block;
}
.search-results {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.search-results li {
  padding: 8px 0;
  border-bottom: 1px solid #ccc;
}

.search-results a {
  color: #00796b;
  font-weight: 500;
  text-decoration: none;
}

.search-results a:hover {
  text-decoration: underline;
}
.search-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.search-table th,
.search-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.search-table th {
  cursor: pointer;
  background-color: #e0f7fa;
  color: #00796b;
}

.search-table tr:hover {
  background-color: #f9f9f9;
}

.search-container button {
  background: none;
  border: none;
  color: #00796b;
  font-size: 1em;
  cursor: pointer;
  padding: 0;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
}
