/* Rustiger en duidelijker beheerscherm: compactere ruimtes, zichtbare invoervelden, beter leesbare kleine tekst.
   Wordt na output.css geladen; werkt met `main …` zodat het de Tailwind-klassen in de sjablonen overstemt. */
:root {
  --veld-bg: 40 25% 97%;          /* licht: net anders dan de witte kaart */
  --veld-rand: 217 12% 58%;       /* duidelijke rand: ruim 3:1 tegen wit */
  --kaart-rand: 40 12% 82%;
}
.dark {
  --veld-bg: 218 35% 8%;          /* donker: dieper dan de kaart */
  --veld-rand: 218 16% 42%;
  --kaart-rand: 218 20% 24%;
}

/* ---------- ruimte ---------- */
main > div.max-w-7xl { padding: 1.25rem 1.25rem 2rem; }
@media (min-width: 768px) { main > div.max-w-7xl { padding: 1.75rem 2rem 2.5rem; } }
main .p-10 { padding: 1.5rem; }
main .p-8 { padding: 1.25rem; }
main .p-6 { padding: 1rem; }
main .px-8 { padding-left: 1.25rem; padding-right: 1.25rem; }
main .px-6 { padding-left: 1rem; padding-right: 1rem; }
main td.py-6, main th.py-6, main td.py-5, main th.py-5, main td.py-4, main th.py-4 { padding-top: .6rem; padding-bottom: .6rem; }
main .py-8 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
main .mb-12 { margin-bottom: 2rem; }
main .mb-10 { margin-bottom: 1.5rem; }
main .mb-8 { margin-bottom: 1.25rem; }
main .space-y-10 > * + * { margin-top: 1.5rem; }
main .space-y-8 > * + * { margin-top: 1.25rem; }
main .space-y-6 > * + * { margin-top: 1rem; }
main .gap-10 { gap: 1.5rem; }
main .gap-8 { gap: 1.25rem; }
main .gap-6 { gap: 1rem; }
main h1.text-4xl, main h1.text-3xl { font-size: 1.75rem; line-height: 2.1rem; }
main h2.text-2xl { font-size: 1.35rem; line-height: 1.75rem; }

/* ---------- vormen ---------- */
main .rounded-3xl, main [class*="rounded-[3"], main [class*="rounded-[4"], main [class*="rounded-[2"] { border-radius: 1rem; }
main .rounded-2xl { border-radius: .75rem; }
main .shadow-2xl, main .shadow-xl { box-shadow: 0 6px 18px -6px rgb(0 0 0 / .18); }
main .bg-mariapark-card.border { border-color: hsl(var(--kaart-rand)); }

/* ---------- invoervelden: duidelijk te zien, ook op een witte kaart ---------- */
/* :not([data-x]) verhoogt de specificiteit zodat dit de klassen px-6/py-4 in de sjablonen overstemt */
main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]):not([type=file]):not([type=color]),
main select:not([data-x]), main textarea:not([data-x]) {
  background-color: hsl(var(--veld-bg));
  border: 1px solid hsl(var(--veld-rand));
  border-radius: .6rem;
  padding-top: .5rem; padding-bottom: .5rem; padding-right: .75rem; padding-left: .75rem;
  font-size: .875rem;
  line-height: 1.35rem;
  color: hsl(var(--text));
  box-shadow: inset 0 1px 1px rgb(0 0 0 / .04);
}
main select:not([data-x]) { padding-right: 2rem; }
main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]):not([type=file]):not([type=color])[class*="pl-"] { padding-left: 2.75rem; }
main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]):not([type=file]):not([type=color])[class*="pr-1"] { padding-right: 2.25rem; }
main textarea:not([data-x]) { min-height: 5.5rem; }
main input::placeholder, main textarea::placeholder { color: hsl(var(--muted)); opacity: .75; font-weight: 400; }
main input:not([type=checkbox]):not([type=radio]):hover, main select:hover, main textarea:hover { border-color: hsl(var(--text) / .55); }
main input:focus, main select:focus, main textarea:focus {
  outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / .25);
}
.dark { color-scheme: dark; }
.dark main input:focus, .dark main select:focus, .dark main textarea:focus { border-color: hsl(217 60% 68%); box-shadow: 0 0 0 3px hsl(217 60% 68% / .3); }
main input[type=checkbox], main input[type=radio] { width: 1.1rem; height: 1.1rem; accent-color: hsl(var(--primary)); }
.dark main input[type=checkbox], .dark main input[type=radio] { accent-color: hsl(217 60% 68%); }
main input:disabled, main select:disabled, main textarea:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- kleine tekst leesbaar houden ---------- */
main [class*="text-[8px]"], main [class*="text-[9px]"] { font-size: .66rem; }
main [class*="text-[10px]"] { font-size: .72rem; }
main [class*="text-[11px]"] { font-size: .76rem; }
main .tracking-widest { letter-spacing: .06em; }
main .tracking-\[0\.2em\], main .tracking-\[0\.3em\] { letter-spacing: .08em; }
main label.uppercase, main label[class*="text-[10px]"] { font-weight: 600; }
main .text-mariapark-muted { opacity: 1; }

/* ---------- knoppen ---------- */
main a[class*="py-4"], main button[class*="py-4"] { padding-top: .65rem; padding-bottom: .65rem; }
main a[class*="py-3"], main button[class*="py-3"] { padding-top: .5rem; padding-bottom: .5rem; }

/* ---------- kleuren met te weinig contrast ---------- */
.text-green-500, .text-green-600, .text-emerald-500, .text-emerald-600, .text-teal-500 { color: #166534; }
.text-orange-500, .text-orange-600, .text-amber-500, .text-amber-600 { color: #9a3412; }
.text-violet-500, .text-violet-600, .text-purple-500, .text-purple-600 { color: #5b21b6; }
.text-indigo-500, .text-indigo-600 { color: #3730a3; }
.text-red-500, .text-red-600, .text-rose-500 { color: #991b1b; }
.text-blue-500, .text-blue-600, .text-sky-500 { color: #1e40af; }
.text-red-500\/60, .text-red-500\/70, .text-red-500\/80 { color: #991b1b; }
.dark .text-green-500, .dark .text-green-600, .dark .text-emerald-500, .dark .text-emerald-600, .dark .text-teal-500 { color: #86efac; }
.dark .text-orange-500, .dark .text-orange-600, .dark .text-amber-500, .dark .text-amber-600 { color: #fdba74; }
.dark .text-violet-500, .dark .text-violet-600, .dark .text-purple-500, .dark .text-purple-600 { color: #c4b5fd; }
.dark .text-indigo-500, .dark .text-indigo-600 { color: #a5b4fc; }
.dark .text-red-500, .dark .text-red-600, .dark .text-rose-500 { color: #fca5a5; }
.dark .text-blue-500, .dark .text-blue-600, .dark .text-sky-500 { color: #93c5fd; }
.dark .text-red-500\/60, .dark .text-red-500\/70, .dark .text-red-500\/80 { color: #fca5a5; }
.text-gray-400, .text-gray-500 { color: hsl(var(--muted)); }
[class*="text-mariapark-muted/"] { color: hsl(var(--muted)); }
.dark .text-mariapark-primary { color: hsl(217 70% 76%); }
.dark .bg-mariapark-primary .text-mariapark-primary { color: #fff; }
.dark .hover\:text-mariapark-primary:hover { color: hsl(217 70% 80%); }
.dark .bg-mariapark-primary { background-color: hsl(217 45% 40%); }
select[name=year] { border-color: hsl(var(--veld-rand)); }

/* koppen met titel + knoppen mogen op een smal scherm onder elkaar */
main .flex.justify-between.mb-10, main .flex.justify-between.mb-8 { flex-wrap: wrap; gap: .75rem; }
@media (max-width: 640px) { main h1.text-4xl, main h1.text-3xl { font-size: 1.5rem; line-height: 1.9rem; } }

/* ---------- agenda (FullCalendar) ---------- */
.fc { --fc-border-color: hsl(var(--border)); --fc-page-bg-color: transparent; --fc-neutral-bg-color: hsl(var(--bg)); --fc-today-bg-color: hsl(var(--primary) / .07); --fc-event-border-color: transparent; font-family: inherit; }
.fc .fc-toolbar-title { font-size: 1.15rem; font-weight: 700; text-transform: capitalize; }
.fc .fc-col-header-cell-cushion { padding: .5rem 0; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted)); }
.fc .fc-daygrid-day-number { padding: .35rem .5rem; font-size: .8rem; font-weight: 600; color: hsl(var(--text)); }
.fc .fc-day-other .fc-daygrid-day-number { color: hsl(var(--muted)); opacity: .55; }
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number { background: hsl(var(--primary)); color: #fff; border-radius: 999px; margin: .25rem; padding: .15rem .5rem; }
.fc .fc-daygrid-event { border-radius: 6px; padding: 2px 6px; margin: 1px 3px 2px; font-size: .78rem; font-weight: 600; line-height: 1.25rem; box-shadow: 0 1px 1px rgb(0 0 0 / .12); cursor: pointer; }
.fc .fc-daygrid-block-event .fc-event-title { padding: 0; }
.fc .fc-daygrid-event-harness-start .fc-daygrid-event, .fc .fc-event-start { margin-left: 3px; }
.fc .fc-event:hover { filter: brightness(1.12); }
.fc .fc-button { background: hsl(var(--card)); border: 1px solid hsl(var(--veld-rand)); color: hsl(var(--text)); font-weight: 700; font-size: .8rem; padding: .4rem .8rem; border-radius: .6rem; box-shadow: none; text-transform: none; }
.fc .fc-button:hover { background: hsl(var(--bg)); border-color: hsl(var(--text) / .5); color: hsl(var(--text)); }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: #fff; }
.dark .fc .fc-button-primary:not(:disabled).fc-button-active { background: hsl(217 45% 40%); border-color: hsl(217 45% 40%); }
.fc .fc-button:focus { box-shadow: 0 0 0 3px hsl(var(--primary) / .25); }
.fc .fc-daygrid-more-link { font-size: .75rem; font-weight: 700; color: hsl(var(--primary)); padding: 0 .4rem; }
.dark .fc .fc-daygrid-more-link { color: hsl(217 70% 76%); }
.fc .fc-list-event:hover td { background: hsl(var(--bg)); }
.fc .fc-list-day-cushion { background: hsl(var(--bg)); }

/* kleuren van de agenda per status (licht en donker); de legenda gebruikt dezelfde kleuren */
.ev-bezet, .ev-dot-bezet { background-color: #1a2a44; border-color: #1a2a44; color: #fff; }
.ev-optie, .ev-dot-optie { background-color: #f2b13c; border-color: #f2b13c; color: #3a2800; }
.ev-aanvraag, .ev-dot-aanvraag { background-color: #3b82c4; border-color: #3b82c4; color: #fff; }
.ev-conflict, .ev-dot-conflict { background-color: #c0392b; border-color: #c0392b; color: #fff; }
.ev-overig, .ev-dot-overig { background-color: #7f8c8d; border-color: #7f8c8d; color: #fff; }
.dark .ev-bezet, .dark .ev-dot-bezet { background-color: #3d5f96; border-color: #3d5f96; color: #fff; }
.fc .fc-event .fc-event-main, .fc .fc-event .fc-event-title { color: inherit; }
.fc .fc-list-event .ev-bezet, .fc .fc-list-event .ev-optie { background: transparent; }
