<h2 class="mb-4"><i class="bi bi-sliders"></i> Configuratie</h2>

<div class="card shadow-sm">
    <div class="card-header">
        <i class="bi bi-filetype-json"></i> config.json
    </div>
    <div class="card-body">
        <form method="POST" action="/admin/config">
            <input type="hidden" name="csrf_token" value="<?= $csrf ?>">
            <div class="mb-3">
                <textarea name="config_content" class="form-control font-monospace" rows="25" style="font-size: 0.9rem; tab-size: 4;"><?= htmlspecialchars($siteConfig) ?></textarea>
                <small class="form-text text-muted">Bewerk de JSON configuratie. Ongeldige JSON wordt niet opgeslagen.</small>
            </div>
            <button type="submit" class="btn btn-primary">
                <i class="bi bi-check-lg"></i> Opslaan
            </button>
        </form>
    </div>
</div>
