/* babel specifieke css */

@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900&family=Parkinsans:wght@300..800&display=swap');

:root {
	--font-heading: 'Parkinsans', Helvetica, Arial, sans-serif;
	--font-body: 'Parkinsans', Helvetica, Arial, sans-serif;
	--font-quote: 'Bitter', Georgia, serif;

	--heading-size: 2rem;

	/* ── Brand colours ───────────────────────────────────── */

	/* Primary */
	--color-primary:       #70001f;
	--color-primary-light: #faf7e8;

	/* Secondary */
	--color-secondary:       #c2a31f;
	--color-secondary-light: #edde7d;

	/* Accent */
	--color-accent:       #cc87e5;
	--color-accent-light: #f5f775;

	/* Text */
	--color-white:      #ffffff;
	--color-black:      #000000;
	--color-text-brown: #92732e;
}

/* Platte tekst – Parkinsans Regular, interlinie 1.4 */
body, table, input, textarea, select {
	font-family: var(--font-body);
	font-weight: 400;
	line-height: 1.4;
	color: var(--color-black);
}

/* Koppen – Parkinsans Medium, interlinie 1.1 */
h1, h2 {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 24px;
	line-height: 32px;
	color: var(--color-primary) !important;
}

/* Subkoppen – Parkinsans Medium, ½ kopgrootte, interlinie 1.4 */
h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: calc(var(--heading-size) / 2);
	line-height: 1.4;
}

/* Streamers & quotes – Bitter Medium, interlinie 1.2 */
blockquote, .streamer {
	font-family: var(--font-quote);
	font-weight: 500;
	line-height: 1.2;
}

/* ── Page background ─────────────────────────────────── */

body {
	background-color: var(--color-primary-light);
}

/* ── Cards / panels ──────────────────────────────────── */

.panel,
.panel-default {
	background-color: var(--color-white);
	border: 1px solid #d4d2c9;
	border-radius: 16px;
	box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.04);
}

.panel > .panel-heading {
	background-color: var(--color-white);
	border-bottom: none;
	border-radius: 16px 16px 0 0;
	color: var(--color-primary);
}

.panel > .panel-footer {
	background-color: var(--color-white);
	border-top: 1px solid #d4d2c9;
	border-radius: 0 0 16px 16px;
}

/* ── Filters block ───────────────────────────────────── */

.filters {
	background-color: var(--color-white);
	border-radius: 32px;
	box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.16);
	padding: 2.5rem 5rem;
	margin-bottom: 10px;
}

.filters .top-space-20 {
	padding-top: 5px !important;
}

@media (max-width: 767px) {
	.filters {
		padding: 2rem 1.5rem;
	}
}

.filters h2 {
	text-align: center;
	margin-bottom: 1.5rem;
}

.filters form {
	background-color: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
}

.filters label {
	display: none;
}

.filters .filter-row {
	display: flex;
	align-items: center;
	background-color: var(--color-primary-light);
	border: 1px solid var(--color-primary-light);
	border-radius: 9999px;
	padding: 0.5rem;
	margin-left: 0;
	margin-right: 0;
}

.filters .filter-row + .filter-row {
	margin-top: 20px;
}

.filters .filter-row {
	margin-bottom: 0px !important;
}

.filters .filter-row > [class*="col-"] {
	float: none;
}

.filters .filter-row > [class*="col-"] > .form-group > [class*="col-"] {
	width: 100%;
}

.filters .filter-row .form-group {
	margin-bottom: 0;
}

.filters .form-control,
.filters input[type="date"],
.filters select {
	border-radius: 9999px !important;
	border: 1px solid #fafafa !important;
	background-color: var(--color-white) !important;
	padding: 1rem 1.5rem !important;
	height: auto !important;
	min-height: 56px !important;
}

.filters select,
.filters select.form-control {
	padding-right: 2.5rem !important;
}

.filters .form-control:focus,
.filters input[type="date"]:focus,
.filters select:focus {
	border-color: var(--color-primary) !important;
	box-shadow: 0 0 0 3px rgba(112, 0, 31, 0.12) !important;
}

.filters .form-group {
	margin-bottom: 0.75rem;
}

.filters input[type="submit"].btn {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-white);
}

.filters input[type="submit"].btn:hover,
.filters input[type="submit"].btn:focus {
	background-color: #4a0014;
	border-color: #4a0014;
	color: var(--color-white);
}

/* ── Form groups ─────────────────────────────────────── */

.form-group {
	margin-bottom: 1.25rem;
}

/* ── Form labels ─────────────────────────────────────── */

label,
.control-label {
	color: #38000f;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	margin-bottom: 6px;
}

/* ── Form inputs, textarea & select ─────────────────── */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
textarea,
select,
.form-control {
	border-radius: 12px !important;
	border: 1px solid #d4d2c9 !important;
	box-shadow: none !important;
	background-color: var(--color-white) !important;
	padding: 16px 12px !important;
	height: auto !important;
	min-height: 56px !important;
	width: 100%;
	font-size: 16px !important;
	line-height: 24px !important;
	color: var(--color-black);
	transition: border-color 0.2s, box-shadow 0.2s;
}

/* Remove native select arrow, add custom chevron */
select,
select.form-control {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2338000f' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 0.75rem center !important;
	background-size: 1.25rem !important;
	padding-right: 2.5rem !important;
}

/* Focus state */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus,
.form-control:focus {
	border-color: var(--color-primary) !important;
	box-shadow: 0 0 0 3px rgba(112, 0, 31, 0.12) !important;
	outline: none !important;
}

/* Disabled / readonly */
input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="number"]:disabled,
input[type="tel"]:disabled,
input[type="url"]:disabled,
input[type="search"]:disabled,
input[type="date"]:disabled,
textarea:disabled,
select:disabled,
.form-control[disabled],
.form-control[readonly] {
	background-color: #f5f4ee !important;
	opacity: 0.6;
	cursor: not-allowed;
}

/* File input — keep native picker, only adjust border */
input[type="file"] {
	border-radius: 12px;
	border: 1px solid #d4d2c9;
	background-color: var(--color-white);
	padding: 0.5rem 0.75rem;
	width: 100%;
	font-size: 1rem;
}

/* Placeholder text */
input::placeholder,
textarea::placeholder {
	color: #6b7280;
	opacity: 1;
}

/* Chrome/Edge autofill — override the blue background; font-size cannot be forced in this state */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 1000px var(--color-white) inset !important;
	-webkit-text-fill-color: var(--color-black) !important;
	caret-color: var(--color-black);
}

/* Validation states — override Bootstrap's colour scheme */
.has-error .form-control,
.has-error input[type="text"],
.has-error input[type="email"],
.has-error input[type="password"],
.has-error select,
.has-error textarea {
	border-color: #c0392b !important;
	box-shadow: none !important;
}

.has-error .form-control:focus,
.has-error input:focus,
.has-error select:focus,
.has-error textarea:focus {
	border-color: #c0392b !important;
	box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15) !important;
}

.has-error label,
.has-error .control-label,
.has-error .help-block {
	color: #c0392b;
}

.has-success .form-control,
.has-success input,
.has-success select,
.has-success textarea {
	border-color: #27ae60 !important;
	box-shadow: none !important;
}

.has-success label,
.has-success .control-label {
	color: #27ae60;
}

/* ── Buttons ─────────────────────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	height: 56px;
	font-weight: 500;
	padding: 1rem 3rem;
	transition: color .3s, background-color .3s, border-color .3s;
}

.btn-block {
	display: flex;
}

.btn::after {
	content: '';
	display: inline-block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.12 9.91 14.25 6a1 1 0 1 0-1.42 1.41L16.39 11H6a1 1 0 0 0 0 2h10.45l-3.62 3.61a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.22l3.87-3.88a3 3 0 0 0 0-4.24Z' fill='black'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.12 9.91 14.25 6a1 1 0 1 0-1.42 1.41L16.39 11H6a1 1 0 0 0 0 2h10.45l-3.62 3.61a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.22l3.87-3.88a3 3 0 0 0 0-4.24Z' fill='black'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-position: center;
	mask-position: center;
}

.btn-primary {
	background-color: var(--color-accent);
	border-color: var(--color-accent);
	color: #38000f;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
	background-color: #9e5ab5;
	border-color: #9e5ab5;
	color: var(--color-white);
}

.btn-default {
	background-color: var(--color-white);
	border: 1px solid var(--color-primary);
	color: #38000f;
}

.btn-default:hover,
.btn-default:focus {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-white);
}

.btn-secondary {
	background-color: var(--color-white);
	border: 1px solid #d4d2c9;
	color: #38000f;
}

.btn-secondary:hover,
.btn-secondary:focus {
	background-color: var(--color-primary-light);
	border-color: #b8b5ac;
	color: #38000f;
}

/* ── Navbar ──────────────────────────────────────────── */

.navbar,
.navbar-default {
	background-color: var(--color-primary-light);
	border-color: #d4d2c9;
	border-bottom: 1px solid #d4d2c9;
	box-shadow: none;
}

/* Main navbar — 88px: (88 - 28px line-height) / 2 = 30px padding each side */
.navbar-default {
	min-height: 88px;
}

.navbar-default div {
	padding-top: 0;
	padding-bottom: 0;
}

/* Bootstrap applies clearfix (content:" "; display:table) on nav, div, and other elements — zero them all */
.navbar-default::before,
.navbar-default::after,
.navbar-default div::before,
.navbar-default div::after {
	content: '';
	display: block;
}

/* Force row to exact navbar height at desktop breakpoint */
@media (min-width: 992px) {
	.navbar-default .row {
		height: 88px;
	}
}

.navbar-default .navbar-nav > li > a {
	padding-top: 32px;
	padding-bottom: 32px;
	line-height: 24px;
	color: var(--color-primary);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -0.02em;
	position: relative;
	background-color: transparent;
}

.navbar-default .navbar-nav > li > a::after {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: 1rem;
	width: calc(100% - 2rem);
	height: 1px;
	background-color: var(--color-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li > a:active,
.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li.active > a:hover,
.navbar-default .navbar-nav > li.active > a:focus,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
	color: #a64b63;
	background-color: transparent !important;
	background-image: none !important;
}

.navbar-default .navbar-nav > li > a:hover::after,
.navbar-default .navbar-nav > li > a:focus::after,
.navbar-default .navbar-nav > li.active > a::after {
	transform: scaleX(1);
}

/* ── Dropdown submenu ────────────────────────────────── */

.navbar-default .navbar-nav .dropdown-menu {
	background-color: var(--color-white);
	border: 1px solid #edebe1;
	border-radius: 16px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	min-width: 200px;
	width: max-content;
	padding: 1rem 0;
	top: 100%;
	left: 0;
}

.navbar-default .navbar-nav .dropdown-menu > li > a {
	color: var(--color-primary);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	padding: 12px 20px;
	background-color: transparent;
}

.navbar-default .navbar-nav .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .dropdown-menu > li > a:focus {
	color: #a64b63;
	background-color: transparent;
	text-decoration: none;
}

.navbar-default .navbar-brand {
	color: #38000f;
	height: 88px;
}

.navbar-default .navbar-brand>img {
    padding: 10px;
}

/* Top header bar — 36px */
.top-header {
	height: 36px;
}

/* Override Bootstrap's .navbar min-height: 50px inside the top bar */
.top-header .navbar-top {
	min-height: 36px;
	height: 36px;
}

.top-header .navbar-nav > li > a {
	padding-top: 0;
	padding-bottom: 0;
	line-height: 36px;
    border-left: 0px none;
}

/* ── Login dropdown ───────────────────────────────── */
span.icon-edu,span.icon-portal {
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-flex;
    height: 24px;
    margin-right: 14px;
    vertical-align: middle;
    width: 24px
}
span.icon-edu {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='24' height='24' rx='12' fill='%23E5C2F1'/%3E%3Cpath d='M18.665 10.667v4M8 12.333v2.334c0 .53.422 1.039 1.172 1.414s1.767.586 2.828.586 2.078-.21 2.829-.586c.75-.375 1.171-.884 1.171-1.414v-2.334m2.28-1.052a.667.667 0 0 0-.012-1.225l-5.714-2.603a1.333 1.333 0 0 0-1.107 0l-5.713 2.6a.667.667 0 0 0 0 1.222l5.713 2.605a1.334 1.334 0 0 0 1.107 0l5.727-2.599Z' stroke='%239E5AB5' stroke-width='1.33' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
}
span.icon-portal {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='24' height='24' rx='12' fill='%23EDDE7D'/%3E%3Cpath d='M13.335 5.333V8a1.334 1.334 0 0 0 1.333 1.333h2.667M10.668 10H9.335m5.333 2.667H9.335m5.333 2.666H9.335m4.663-10h-6a1.333 1.333 0 0 0-1.333 1.334v10.666a1.333 1.333 0 0 0 1.333 1.334h8a1.334 1.334 0 0 0 1.334-1.334V8.667l-3.334-3.334Z' stroke='%238B6C27' stroke-width='1.33' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
}

/* ── Language dropdown ───────────────────────────────── */

/* Trigger button */
.lang-dropdown > a.lang-trigger {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	height: 36px;
	padding: 0 8px !important;
	line-height: 1 !important;
	color: var(--color-primary) !important;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: -0.02em;
	text-decoration: none;
	background: none;
}

.lang-dropdown > a.lang-trigger:hover,
.lang-dropdown > a.lang-trigger:focus,
.lang-dropdown.open > a.lang-trigger {
	color: #4a0014 !important;
	background: none !important;
    text-decoration: none !important;

}

/* Flag images — circular crop */
.lang-dropdown img {
	width: 20px;
	height: 20px;
	object-fit: cover;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

/* Chevron icon using mask */
.lang-chevron {
	display: inline-block;
	width: 14px;
	height: 14px;
	background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	transition: transform 0.2s;
}

.lang-dropdown.open .lang-chevron {
	transform: rotate(180deg);
}

/* Dropdown menu */
.lang-dropdown .dropdown-menu {
	background-color: var(--color-white);
	border: 1px solid #d4d2c9 !important;
	border-radius: 12px !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
	padding: 16px 0 !important;
	min-width: 180px !important;
}

.lang-dropdown .dropdown-menu > li > a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px !important;
	color: #38000f !important;
	font-size: 16px;
	font-weight: 400 !important;
	letter-spacing: -0.02em;
	line-height: 1;
}

.lang-dropdown .dropdown-menu > li > a:hover,
.lang-dropdown .dropdown-menu > li > a:focus {
	background-color: var(--color-white) !important;
	color: var(--color-primary) !important;
}

.navbar-top {
	border-bottom: none;
}

/* ── Links ───────────────────────────────────────────── */

a {
	color: var(--color-primary);
}

a:hover,
a:focus {
	color: #4a0014;
}

/* ── Info / notification box ─────────────────────────── */

.alert-info,
.well {
	background-color: var(--color-primary-light);
	border: 1px solid var(--color-secondary-light);
	border-radius: 8px;
	color: var(--color-black);
	box-shadow: none;
}

/* ── Checkboxes & radio buttons ─────────────────────── */

input[type="radio"],
input[type="checkbox"] {
	accent-color: #38000f;
	width: auto;
	flex-shrink: 0;
}

input[type="radio"] {
	width: 1.5rem;
	height: 1.5rem;
}

input[type="checkbox"] {
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 2px;
}

/* ── Tables ──────────────────────────────────────────── */

.result {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.08);
}

.table {
	margin-bottom: 0;
	border-collapse: collapse;
}

/* Header row — tr.info used as header in templates */
.table > tbody > tr.info > th,
.table > tbody > tr.info > td,
.table > thead > tr > th {
	background-color: var(--color-primary) !important;
	color: var(--color-white);
	border: none;
	padding: 1rem 1.25rem;
	font-weight: 500;
}

.table > tbody > tr.info > th a,
.table > tbody > tr.info > td a,
.table > thead > tr > th a {
	color: var(--color-white);
}

.table > tbody > tr.info > th a:hover,
.table > tbody > tr.info > td a:hover,
.table > thead > tr > th a:hover {
	color: var(--color-secondary-light);
}

/* Striped rows */
.table-striped > tbody > tr:nth-of-type(odd) > td {
	background-color: var(--color-primary-light);
}

.table-striped > tbody > tr:nth-of-type(even) > td {
	background-color: var(--color-white);
}

/* Ensure header row always gets burgundy regardless of nth position */
.table-striped > tbody > tr.info > th,
.table-striped > tbody > tr.info > td {
	background-color: var(--color-primary) !important;
}

/* Cell padding & divider */
.table > tbody > tr > td {
	padding: 0.875rem 1.25rem;
	border-top: 1px solid #ede9d4;
	color: var(--color-black);
}

/* Hover */
.table-striped > tbody > tr:not(.info):hover > td {
	background-color: var(--color-secondary-light);
	transition: background-color 0.15s;
}

/* Links in data rows */
.table > tbody > tr > td a {
	color: var(--color-primary);
}

.table > tbody > tr > td a:hover {
	color: #4a0014;
}

/* ── FullCalendar buttons ────────────────────────────── */
.fc .fc-head th {
	font-weight: normal;
}

.fc-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 40px;
	padding: 0 16px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1 !important;
	background-image: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	outline: none;
	transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.fc-state-default {
	background-color: #ffffff !important;
	background-image: none !important;
	border: 1px solid #70001f !important;
	color: #38000f !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

.fc-state-default:hover,
.fc-state-hover {
	background-color: #70001f !important;
	background-image: none !important;
	border-color: #70001f !important;
	color: #ffffff !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

.fc-state-active,
.fc-state-active:hover {
	background-color: #70001f !important;
	background-image: none !important;
	border-color: #70001f !important;
	color: #ffffff !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

.fc-state-disabled,
.fc-state-disabled:hover,
.fc-state-disabled:focus {
	background-color: #f5f4ee !important;
	border-color: #d4d2c9 !important;
	color: #999999 !important;
	cursor: not-allowed;
	opacity: 0.6;
}

.fc-button-group .fc-button {
	border-radius: 0 !important;
}

.fc-button-group .fc-corner-left {
	border-radius: 9999px 0 0 9999px !important;
}

.fc-button-group .fc-corner-right {
	border-radius: 0 9999px 9999px 0 !important;
}

.fc-button.fc-corner-left.fc-corner-right {
	border-radius: 9999px !important;
}

.fc-button-group .fc-button + .fc-button {
	border-left: none !important;
}
