:root {
    --kleur-primair: #1e6fea;
    --kleur-primair-donker: #0d4fc4;
    --kleur-tekst: #0f1c3f;
    --kleur-rand: #e5e7eb;
    --kleur-achtergrond: #f7f9fc;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--kleur-tekst);
    background: var(--kleur-achtergrond);
}

.topbar {
    background: white;
    border-bottom: 1px solid var(--kleur-rand);
}
.topbar-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }

.card-login { text-align: center; }
.login-logo { height: 56px; width: auto; margin-bottom: 8px; }
.card-login form { text-align: left; }
.ingelogd-als { margin-right: 12px; color: #6b7280; font-size: 14px; }
.btn-link { color: var(--kleur-primair); text-decoration: none; }

.container { max-width: 1000px; margin: 0 auto; padding: 24px 20px 60px; }

h1 { font-size: 22px; }
h2 { font-size: 18px; margin-top: 32px; }

.card {
    background: white;
    border: 1px solid var(--kleur-rand);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}
.card-smal { max-width: 480px; margin-left: auto; margin-right: auto; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 4px; }
input, select, textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--kleur-rand);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
textarea { resize: vertical; }

.btn {
    display: inline-block;
    margin-top: 16px;
    padding: 9px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.btn-primair { background: var(--kleur-primair); color: white; }
.btn-primair:hover { background: var(--kleur-primair-donker); }

.tabel { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; }
.tabel th, .tabel td { padding: 10px 12px; border-bottom: 1px solid var(--kleur-rand); text-align: left; font-size: 14px; }
.tabel th { background: #f3f4f6; font-weight: 600; }
.rij-klikbaar { cursor: pointer; }
.rij-klikbaar:hover { background: #f3f4f6; }

.status { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-open { background: #fee2e2; color: #b91c1c; }
.status-in_behandeling { background: #fef3c7; color: #92400e; }
.status-wacht_op_klant { background: #e0e7ff; color: #3730a3; }
.status-klaar { background: #d1fae5; color: #065f46; }
.status-geannuleerd { background: #f3f4f6; color: #6b7280; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.badge-html { background: #fce7f3; color: #9d174d; }
.badge-database { background: #dbeafe; color: #1e3a8a; }
.badge-wordpress { background: #ede9fe; color: #5b21b6; }

.melding { padding: 10px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 12px; }
.melding-fout { background: #fee2e2; color: #b91c1c; }
.melding-info { background: #eff6ff; color: #1e40af; margin-top: 16px; }

.filterbalk { margin-bottom: 16px; }
.filterbalk a {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 6px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--kleur-tekst);
    font-size: 14px;
}
.filterbalk a.actief, .filterbalk a:hover { background: var(--kleur-primair); color: white; }

.ticket-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meta { color: #6b7280; font-size: 13px; margin-top: 4px; }

.reacties { margin-bottom: 20px; }
.reactie { background: white; border: 1px solid var(--kleur-rand); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.reactie-tijd { color: #9ca3af; font-size: 12px; margin-left: 8px; }

.terug-link { display: inline-block; margin-bottom: 12px; color: var(--kleur-primair); text-decoration: none; font-size: 14px; }
