/* --- Algemene Stijlen --- */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: #f0f2f5; color: #333; margin: 0; padding: 20px; scroll-behavior: smooth; }
.container { max-width: 900px; margin: 0 auto; }
hr { border: none; border-top: 1px solid #ddd; margin: 40px 0; }
h2 { color: #800000; text-align: center; }

/* --- Formulier Opmaak --- */
.form-container { background-color: #ffffff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.form-container h2 { margin-top: 0; color: #800000; text-transform: uppercase; }
label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9em; }
input[type="text"], input[type="date"], input[type="email"], select, textarea { width: 100%; padding: 12px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; font-size: 1em; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #800000; box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1); }
textarea { min-height: 100px; resize: vertical; }
.form-row { display: flex; flex-direction: column; gap: 0; }
.form-group { flex: 1; }
button[type="submit"] { width: 100%; padding: 15px; background-color: #800000; color: white; border: none; border-radius: 6px; font-size: 1.1em; font-weight: bold; cursor: pointer; transition: background-color 0.2s; }
button[type="submit"]:hover { background-color: #a00000; }
.radio-group-buttons { border: none; padding: 0; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.radio-group-buttons legend { font-weight: 600; width: 100%; margin-bottom: 5px; font-size: 0.9em; }
.radio-group-buttons input[type="radio"] { display: none; }
.radio-group-buttons label { flex-grow: 1; text-align: center; padding: 12px; border: 1px solid #ccc; border-radius: 6px; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.radio-group-buttons input[type="radio"]:checked + label { background-color: #800000; color: white; border-color: #800000; }

/* --- Navigatieknoppen --- */
.nav-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 40px; }
.nav-buttons a { display: block; padding: 12px; background-color: #800000; color: white; border-radius: 6px; text-decoration: none; font-weight: bold; text-align: center; transition: all 0.2s; }
.nav-buttons a:hover { opacity: 0.85; }

/* --- Rit Weergave --- */
.full-width-titel { text-align: center; font-size: 1.8em; color: #333; background-color: #e9ecef; padding: 15px; border-radius: 6px; margin: 40px 0 20px 0; }
.category-container { display: grid; grid-template-columns: 1fr; gap: 20px; }
.category-column h4 { border-bottom: 2px solid #800000; padding-bottom: 10px; }
.rit-item { background-color: #f9f9f9; border: 1px solid #ddd; border-left: 5px solid #800000; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.rit-item h5 { margin-top: 0; }
.rit-item p { margin: 5px 0; line-height: 1.5; word-wrap: break-word; }
.rit-item a { color: #800000; font-weight: bold; }

/* --- Beheer en Pop-up --- */
.beheer-item { grid-column: 1 / -1; }
.beheer-knoppen { display: flex; gap: 10px; margin-top: 15px; }
.edit-button, .delete-button { padding: 8px 12px; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; color: white; font-weight: bold; text-align: center; font-size: 0.9em; }
.edit-button { background-color: #007bff; }
.edit-button:hover { background-color: #0056b3; }
.delete-button { background-color: #dc3545; }
.delete-button:hover { background-color: #c82333; }
.cancel-link { display: block; text-align: center; margin-top: 15px; color: #800000; }
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); }
.modal-content { background-color: #ffffff; color: #333; margin: 20% auto; padding: 30px; border-radius: 8px; width: 90%; max-width: 500px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.modal-content h3 { margin-top: 0; color: #800000; }
.modal-buttons { margin-top: 20px; display: flex; justify-content: center; gap: 15px; }
.modal-buttons button { padding: 10px 20px; border: 2px solid #800000; border-radius: 5px; background-color: transparent; color: #800000; font-weight: bold; cursor: pointer; }
.modal-buttons button:hover { background-color: #800000; color: white; }

/* Media query voor grotere schermen */
@media (min-width: 768px) {
    .category-container { grid-template-columns: 1fr 1fr; }
    .form-row { flex-direction: row; }
    .nav-buttons { grid-template-columns: repeat(2, 1fr); }
}