/* Globale mobiele optimalisaties en basisstijl */
body {
    font-family: Arial, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    box-sizing: border-box;
    overflow-x: hidden;
}

.container {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    box-sizing: border-box;
    width: 100%;
}

/* Zorgt dat tabellen netjes horizontaal scrollbaar zijn op mobiel */
table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.85em;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #f2f2f2;
}

.info-box {
    background: #f1f4f9;
    padding: 15px;
    border-left: 4px solid #0055a5;
    margin-bottom: 20px;
    border-radius: 4px;
}

.stats-box {
    background: #e9ecef;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 10px;
}

.melding {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    color: #fff;
    font-weight: bold;
}

.badge-ja { background-color: #28a745; }
.badge-nee { background-color: #dc3545; }
.badge-misschien { background-color: #ffc107; color: #000; }

.melding-footer {
    font-size: 0.85em;
    color: #666;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 5px;
}

button, input, select, textarea {
    padding: 10px;
    margin: 5px 0;
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
}

button {
    background-color: #0055a5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #003d7a;
}

.box {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    box-sizing: border-box;
}

.grid-beheer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.flying-footer {
    position: fixed;
    bottom: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.85);
    padding: 4px 8px;
    font-size: 0.75em;
    color: #777;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    pointer-events: none;
    z-index: 999;
}

@media(max-width: 768px) {
    .grid-beheer { grid-template-columns: 1fr; }
}

/* Voeg dit toe aan je stijl.css */
@media(max-width: 480px) {
    h1 {
        font-size: 1.5rem; /* Maakt de hoofdtitel iets compacter op kleine telefoons */
        word-break: break-word;
    }
}