/* ============================================
   KALENDER-SPECIFIEKE STYLING
   Gebruikt de componenten uit components.css
   ============================================ */

/* CALENDAR CONTAINERS */
.modern-calendar-container {
	animation: fadeIn 0.4s ease-in-out;
}

.calendar-stats {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	text-align: left;
	padding: 28px;
	background: linear-gradient(135deg, #f8fafb 0%, #f0f4f7 100%);
	border-radius: 12px;
	margin-bottom: 28px;
	border: 1px solid #e8eef5;
	box-shadow: 0 2px 8px rgba(0, 140, 186, 0.05);
}

.calendar-stats-left {
	flex: 1 1 auto;
	min-width: 0;
	align-self: center;
}

.calendar-stats-right {
	flex: 0 1 33%;
	max-width: 320px;
	min-width: 280px;
}

.download-card {
	background: linear-gradient(135deg, #d0d8dd 0%, #b8ccd6 100%);
	border-radius: 12px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: 0 4px 16px rgba(93, 173, 226, 0.2);
	transition: all 0.3s ease;
}

.download-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(93, 173, 226, 0.3);
}

.download-icon-wrapper {
	width: 56px;
	height: 56px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.download-icon {
	width: 32px;
	height: 32px;
	color: white;
	stroke: white;
}

.download-title {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 700;
	color: rgb(7, 7, 7);
	letter-spacing: -0.3px;
}

.download-description {
	margin: 0 0 16px 0;
	font-size: 13px;
	color: white;
	line-height: 1.5;
}

.download-button {
	display: inline-block;
	background: white;
	color: #3A9FD8;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
	border: none;
	letter-spacing: 0.3px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-button:hover {
	background: #f5f5f5;
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-button:active {
	transform: scale(0.98);
}

.calendar-stats h2 {
	margin: 0 0 8px 0;
	font-size: 28px;
	color: #000000;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.calendar-stats p {
	margin: 0;
	color: #5a6c7d;
	font-size: 14px;
	font-weight: 500;
}

.calendar-controls {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

/* MONTH NAVIGATION */
.calendar-month-nav {
	flex: 1;
	min-width: 300px;
}

.calendar-month-nav ul {
	margin: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
}

.calendar-month-nav li {
	flex: 0 0 auto;
}

.calendar-month-nav a, 
.calendar-month-nav span {
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	display: inline-block;
	transition: all 0.2s ease;
	cursor: pointer;
	text-decoration: none;
}

.calendar-month-nav .pagination-previous a,
.calendar-month-nav .pagination-next a {
	background: white;
	border: 1px solid #e8eef5;
	color: #008cba;
}

.calendar-month-nav .pagination-previous a:hover,
.calendar-month-nav .pagination-next a:hover {
	background: #f0f4f7;
	border-color: #008cba;
	transform: scale(1.05);
}

.calendar-month-nav .current span {
	background: linear-gradient(135deg, #008cba 0%, #0074a8 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(0, 140, 186, 0.3);
	border: none;
}

.calendar-month-nav li a {
	background: white;
	border: 1px solid #e8eef5;
	color: #5a6c7d;
}

.calendar-month-nav li a:hover {
	background: #f0f4f7;
	border-color: #008cba;
	color: #008cba;
}

/* FILTER GROUP - uses components.css styling */
.calendar-filter-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	background: linear-gradient(135deg, #f8fafb 0%, #f0f4f7 100%);
	border-radius: 12px;
	border: 1px solid #e8eef5;
	box-shadow: 0 2px 8px rgba(0, 140, 186, 0.05);
	margin-bottom: 24px;
}

.calendar-filter-title {
	font-size: 14px;
	font-weight: 700;
	color: #008cba;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0;
	padding-bottom: 12px;
	border-bottom: 2px solid #e8eef5;
	text-align: center;
}

.calendar-filter-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	align-items: flex-start;
}

.calendar-filter-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-right: 24px;
	border-right: 2px solid #e8eef5;
	position: relative;
	align-items: center;
	text-align: center;
}

.calendar-filter-section:last-child {
	border-right: none;
	padding-right: 0;
}

.calendar-filter-section-title {
	font-size: 13px;
	font-weight: 600;
	color: #5a6c7d;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	opacity: 0.8;
}

/* CATEGORIE FILTERS */
.calendar-categorie-toggle {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	width: 100%;
	text-align: center;
	transition: all 0.2s ease;
}

.calendar-categorie-toggle:hover {
	opacity: 1;
}

.calendar-categorie-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 10px !important;
	padding-top: 12px !important;
}

@media (max-width: 900px) {
	.calendar-categorie-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	.calendar-categorie-grid {
		grid-template-columns: 1fr !important;
	}
}

.calendar-categorie-btn {
	padding: 8px 14px;
	border: 2px solid #008cba;
	border-radius: 6px;
	background: white;
	color: #008cba;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.calendar-categorie-btn:hover {
	background: #008cba;
	color: white;
	box-shadow: 0 2px 6px rgba(0, 140, 186, 0.2);
}

.calendar-categorie-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.calendar-categorie-content.open {
	max-height: 500px;
}

.calendar-filter-options {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.calendar-filter-dropdown {
	padding: 10px 14px;
	border: 2px solid #e8eef5;
	border-radius: 6px;
	background: white;
	color: #333;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 200px;
}

.calendar-filter-dropdown:hover {
	border-color: #008cba;
	box-shadow: 0 2px 4px rgba(0, 140, 186, 0.1);
}

.calendar-filter-dropdown:focus {
	outline: none;
	border-color: #008cba;
	box-shadow: 0 0 0 3px rgba(0, 140, 186, 0.15);
	background: #f8fafb;
}

.calendar-filter-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	padding: 8px 14px;
	background: white;
	border: 2px solid #e8eef5;
	border-radius: 6px;
	transition: all 0.2s ease;
	white-space: nowrap;
	position: relative;
}

.calendar-filter-group label:hover {
	border-color: #008cba;
	background: #f8fafb;
	box-shadow: 0 2px 4px rgba(0, 140, 186, 0.1);
}

.calendar-filter-group input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: #008cba;
	margin: 0;
}

.calendar-filter-group label[for="filter-schaal-1"] {
	border-color: #FF6B6B;
}

.calendar-filter-group label[for="filter-schaal-2"] {
	border-color: #3ECBC9;
}

.calendar-filter-group label[for="filter-schaal-3"] {
	border-color: #FFB84D;
}

.calendar-filter-group label:has(input[type="checkbox"]:checked) {
	background: white;
	border-color: #008cba;
	color: #333;
	font-weight: 500;
	box-shadow: 0 2px 6px rgba(0, 140, 186, 0.15);
}

/* CALENDAR GRID */
.modern-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	--cal-gap: 12px;
	gap: var(--cal-gap);
	margin-bottom: 24px;
	width: 100%;
	box-sizing: border-box;
}

.calendar-weekday-header {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 12px;
	margin-bottom: 8px;
}

.calendar-weekday-header div {
	text-align: center;
	font-weight: 700;
	color: #008cba;
	padding: 12px 8px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid #e8eef5;
}

.calendar-day-cell {
	background: white;
	border: 1px solid #e8eef5;
	border-radius: 8px;
	padding: 12px;
	min-height: 140px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
	overflow: visible;
}

.calendar-day-cell.empty {
	background: #fafbfc;
	border-color: #f0f4f7;
	cursor: default;
}

.calendar-day-cell.empty:hover {
	transform: none;
	border-color: #f0f4f7;
	box-shadow: none;
}

.calendar-day-cell.no-events {
	background: #fafbfc;
	border-color: #f0f4f7;
	cursor: pointer;
}

.calendar-day-cell.has-nacht-bar-start {
	z-index: 5;
}

.calendar-day-cell:hover {
	transform: translateY(-4px);
	border-color: #008cba;
	box-shadow: 0 8px 16px rgba(0, 140, 186, 0.12);
	z-index: 4;
}

.calendar-day-cell.has-nacht-bar-start:hover {
	z-index: 6;
}

.calendar-day-cell.has-nacht-bar:not(.has-nacht-bar-start):hover {
	transform: none;
}

.calendar-day-cell.today {
	background: linear-gradient(135deg, #e3f2fd 0%, #e0f4fb 100%);
	border: 2px solid #ff6b6b;
	box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.calendar-day-cell.today:hover {
	box-shadow: 0 8px 20px rgba(255, 107, 107, 0.25);
	transform: translateY(-4px);
}

.calendar-day-number {
	font-size: 20px;
	font-weight: 700;
	color: #333;
}

.calendar-day-cell.today .calendar-day-number {
	color: #ff6b6b;
}

.calendar-day-number-empty {
	font-size: 18px;
	font-weight: 700;
	color: #999;
}

.calendar-today-badge {
	font-weight: 700;
	font-size: 11px;
	color: #ff6b6b;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.calendar-items {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}

.calendar-day-cell.has-nacht-bar .calendar-items {
	margin-top: 30px;
}

.calendar-day-cell.has-nacht-bar-start .calendar-items {
	margin-top: 4px;
}

.calendar-item-badge {
	display: block;
	padding: 4px 8px;
	border-radius: 4px;
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 600;
	white-space: normal;
	word-break: break-word;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
	max-width: 100%;
	color: white;
}

.calendar-item-badge:hover {
	transform: scale(1.02);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.calendar-item-badge.week {
	background: linear-gradient(135deg, #9B59B6 0%, #B878D8 100%);
}

/* Nacht spanning bar - relatief in flow, overflowt visueel naar naburige cellen */
.nacht-bar {
	position: relative;
	z-index: 3;
	background: linear-gradient(135deg, #2C3E50 0%, #4A6B8A 100%);
	color: white;
	font-size: 11px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 2px 6px rgba(44, 62, 80, 0.3);
	height: 26px;
	line-height: 16px;
	cursor: pointer;
	transition: all 0.2s ease;
	pointer-events: auto;
	flex-shrink: 0;
}

.nacht-bar:hover,
.nacht-bar.nacht-active,
.nacht-hover .nacht-bar {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(44, 62, 80, 0.4);
	filter: brightness(1.15);
}

.nacht-bar.nacht-start {
	border-radius: 6px 0 0 6px;
}

.nacht-bar.nacht-middle {
	border-radius: 0;
}

.nacht-bar.nacht-end {
	border-radius: 0 6px 6px 0;
}

.calendar-item-badge.day.nationaal {
	background: linear-gradient(135deg, #FF6B6B 0%, #FF8787 100%);
}

.calendar-item-badge.day.internationaal {
	background: linear-gradient(135deg, #3ECBC9 0%, #5DDFDC 100%);
}

.calendar-item-badge.day.belgisch {
	background: linear-gradient(135deg, #FFB84D 0%, #FFC66D 100%);
}

/* FILTER VISIBILITY STATES */
.calendar-item-badge.filter-hidden {
	display: none;
}

.calendar-item-badge.filter-visible {
	display: block;
	animation: fadeIn 0.2s ease-in-out;
}

/* Hide extra items beyond first 3 */
.calendar-item-badge.hidden-extra {
	display: none;
}

.calendar-item-more {
	font-size: 10px;
	font-weight: 700;
	color: white;
	background: linear-gradient(135deg, #008cba 0%, #0074a8 100%);
	padding: 4px 8px;
	text-align: center;
	border-radius: 4px;
	flex-shrink: 0;
	box-shadow: 0 2px 4px rgba(0, 140, 186, 0.2);
}

.calendar-item-more.filter-hidden {
	display: none;
}

.calendar-item-more.filter-visible {
	display: block;
}

/* MINI CALENDAR */
.mini-calendar-container {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding: 0;
}

.mini-calendar-header {
	background: linear-gradient(135deg, #008cba 0%, #0074a8 100%);
	color: white;
	padding: 20px;
	text-align: center;
}

.mini-calendar-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.mini-calendar-intro {
	padding: 24px 20px;
	background: linear-gradient(135deg, #f0f7fa 0%, #e6f2f7 100%);
	border-bottom: 1px solid #d8eaf2;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.mini-calendar-intro-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #1a3a4a;
	letter-spacing: -0.2px;
}

.mini-calendar-intro-text {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #5a6c7d;
}

.mini-calendar-intro-btn {
	display: inline-block;
	margin-top: 4px;
	padding: 9px 18px;
	background: linear-gradient(135deg, #008cba 0%, #0074a8 100%);
	color: white;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.2px;
	box-shadow: 0 2px 8px rgba(0, 140, 186, 0.25);
	transition: all 0.2s ease;
}

.mini-calendar-intro-btn:hover {
	background: linear-gradient(135deg, #0074a8 0%, #005f8a 100%);
	box-shadow: 0 4px 12px rgba(0, 140, 186, 0.35);
	transform: translateY(-1px);
	color: white;
}

.mini-calendar-selectors {
	padding: 20px;
	border-bottom: 1px solid #e8eef5;
	background: white;
}

.mini-calendar-selectors select {
	border: 1px solid #e8eef5;
	border-radius: 6px;
	padding: 8px 12px;
	text-indent: 8px;
	font-size: 13px;
	color: #333;
	background-color: white;
	transition: all 0.2s ease;
}

.mini-calendar-selectors select:focus,
.mini-calendar-selectors select:hover {
	border-color: #008cba;
	box-shadow: 0 0 0 3px rgba(0, 140, 186, 0.1);
}

.mini-calendar-grid {
	padding: 20px;
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
	background: white;
	border-bottom: 1px solid #e8eef5;
}

.mini-calendar-weekday-header {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
	padding: 0 20px 12px 20px;
	background: white;
}

.mini-calendar-weekday-header div {
	text-align: center;
	font-weight: 700;
	color: #008cba;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 8px 0;
	border-bottom: 2px solid #e8eef5;
}

.mini-calendar-cell {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid #e8eef5;
	background: white;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #333;
}

.mini-calendar-cell:hover:not(.mini-calendar-no-day) {
	background: #f0f4f7;
	border-color: #008cba;
	transform: translateY(-2px);
	box-shadow: 0 2px 6px rgba(0, 140, 186, 0.1);
}

.mini-calendar-cell.mini-calendar-no-day {
	background: transparent;
	border: none;
	cursor: default;
}

.mini-calendar-cell.mini-calendar-today {
	background: linear-gradient(135deg, #008cba 0%, #0074a8 100%);
	color: white;
	border-color: #008cba;
	font-weight: 700;
}

.mini-calendar-cell.mini-calendar-has-events {
	border-color: #3ECBC9;
	background: rgba(62, 203, 201, 0.1);
}

.mini-calendar-cell-dots {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 2px;
	align-items: center;
	flex-wrap: nowrap;
}

.mini-calendar-dot {
	width: 4px;
	height: 4px;
	margin-left: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.mini-calendar-dot.dot-nationaal {
	background: #FF6B6B;
}

.mini-calendar-dot.dot-internationaal {
	background: #3ECBC9;
}

.mini-calendar-dot.dot-belgisch {
	background: #FFB84D;
}

.mini-calendar-dot.dot-week {
	background: #9B59B6;
}

.mini-calendar-dot.dot-nacht {
	background: #2c3e50;
	border: 1px solid #34495e;
}

.mini-calendar-content {
	padding: 0;
	background: white;
	display: none;
	border-bottom: 1px solid #e8eef5;
	transition: all 0.3s ease;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	margin-top: 12px;
}

.mini-calendar-content .mini-selector-count,
.mini-calendar-content .mini-selector-items,
.mini-calendar-content .mini-selector-empty {
	padding: 16px;
}

.mini-calendar-content .mini-selector-count {
	padding-bottom: 0;
}

.mini-calendar-content.visible {
	display: block;
}

.mini-calendar-nav-buttons {
	display: flex;
	gap: 24px;
	padding: 16px 20px;
	background: white;
	border-bottom: 1px solid #e8eef5;
	justify-content: center;
	align-items: center;
}

.mini-calendar-month-display {
	font-size: 16px;
	font-weight: 600;
	color: #008cba;
	min-width: 100px;
	text-align: center;
}

.mini-calendar-nav-btn {
	background: linear-gradient(135deg, #008cba 0%, #0074a8 100%);
	border: none;
	color: white;
	width: 40px;
	height: 40px;
	border-radius: 6px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	padding: 0;
	box-shadow: 0 2px 4px rgba(0, 140, 186, 0.2);
}

.mini-calendar-nav-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 140, 186, 0.3);
}

.mini-calendar-nav-btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(0, 140, 186, 0.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
	.calendar-stats {
		flex-direction: column;
		text-align: left;
		padding: 20px;
	}

	.calendar-stats-right {
		flex: 1 1 auto;
		max-width: none;
		width: 100%;
		min-width: auto;
	}

	.download-card {
		margin-top: 16px;
	}
	
	.calendar-controls {
		flex-direction: column;
		gap: 16px;
	}
	
	.calendar-month-nav {
		width: 100%;
		min-width: auto;
	}
	
	.calendar-filter-content {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.calendar-filter-section {
		border-right: none;
		border-bottom: 2px solid #e8eef5;
		padding-right: 0;
		padding-bottom: 16px;
	}
	
	.calendar-filter-section:last-child {
		border-bottom: none;
		padding-bottom: 0;
	}
	
	.calendar-filter-group {
		justify-content: center;
		width: 100%;
	}
	
	.modern-calendar-grid {
		--cal-gap: 8px;
		gap: var(--cal-gap);
	}
	
	.calendar-day-cell {
		min-height: 120px;
		padding: 10px;
	}
	
	.calendar-day-number {
		font-size: 16px;
	}
	
	.calendar-item-badge {
		font-size: 10px;
		padding: 3px 6px;
	}

	.nacht-bar {
		font-size: 10px;
		padding: 4px 8px;
		height: 22px;
		line-height: 14px;
	}

	.mini-calendar-header {
		padding: 16px;
	}

	.mini-calendar-header h3 {
		font-size: 16px;
		margin-bottom: 8px;
	}

	.mini-calendar-grid {
		padding: 16px;
		gap: 6px;
	}

	.mini-calendar-weekday-header {
		padding: 0 16px 8px 16px;
	}

	.mini-calendar-cell {
		font-size: 11px;
	}
}

@media (max-width: 640px) {
	.calendar-stats h2 {
		font-size: 22px;
	}
	
	.calendar-month-nav ul {
		gap: 4px;
	}
	
	.calendar-month-nav a, .calendar-month-nav span {
		padding: 6px 10px;
		font-size: 11px;
	}
	
	.modern-calendar-grid {
		--cal-gap: 6px;
		gap: var(--cal-gap);
	}
	
	.calendar-day-cell {
		min-height: 100px;
		padding: 8px;
	}
	
	.calendar-day-number {
		font-size: 14px;
	}
	
	.calendar-item-badge {
		font-size: 9px;
		padding: 2px 4px;
	}

	.nacht-bar {
		font-size: 9px;
		padding: 3px 6px;
		height: 20px;
		line-height: 14px;
	}
}

/* CALENDAR GRID VIEW STYLES (from kalender.php) */
.calendar-grid-wrapper {
	margin-top: 20px;
	overflow-x: auto;
}

.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
	min-width: 100%;
}

.calendar-header {
	text-align: center;
	font-weight: 700;
	color: #008C9E;
	padding: 12px 4px;
	font-size: 0.95em;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid #e0e0e0;
	grid-column: 1 / -1;
	display: contents;
}

.calendar-header-day {
	text-align: center;
	font-weight: 700;
	color: #008C9E;
	padding: 12px 4px;
	font-size: 0.95em;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid #e0e0e0;
}

.calendar-cell {
	aspect-ratio: 1;
	min-height: 110px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 6px 8px;
	background: white;
	position: relative;
	transition: all 0.25s ease;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 3px;
	overflow-y: auto;
	overflow-x: hidden;
	box-sizing: border-box;
}

.calendar-cell:hover {
	border-color: #008C9E;
	box-shadow: 0 4px 12px rgba(0, 140, 158, 0.15);
	transform: translateY(-2px);
}

.calendar-cell.empty {
	background: #f9f9f9;
	border-color: #f0f0f0;
	cursor: pointer;
}

.calendar-cell.empty:hover {
	border-color: #008C9E;
	box-shadow: 0 4px 12px rgba(0, 140, 158, 0.15);
	transform: translateY(-2px);
}

.calendar-cell.today {
	background: linear-gradient(135deg, #e8f8fa 0%, #d4f1f8 100%);
	border-color: #FF6B6B;
	box-shadow: inset 0 0 0 1px #FF6B6B;
}

.calendar-cell.today:hover {
	border-color: #FF6B6B;
	box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2), inset 0 0 0 1px #FF6B6B;
}

.calendar-day-number {
	font-weight: 700;
	font-size: 1.1em;
	color: #333;
}

.calendar-cell.today .calendar-day-number {
	color: #FF6B6B;
}

.calendar-day-number.empty-label {
	color: #ccc;
}

.calendar-items {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 0;
}

.calendar-item-badge-grid {
	display: block;
	padding: 4px 6px;
	border-radius: 3px;
	flex-shrink: 0;
	font-size: 0.75em;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1.3;
	width: 100%;
	text-align: left;
}

.calendar-item-badge-grid:hover {
	transform: scale(1.02);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.calendar-item-badge-grid.day {
	background: linear-gradient(135deg, #FF6B6B 0%, #FF8787 100%);
	color: white;
}

.calendar-item-badge-grid.day.nationaal {
	background: linear-gradient(135deg, #FF6B6B 0%, #FF8787 100%);
}

.calendar-item-badge-grid.day.internationaal {
	background: linear-gradient(135deg, #4ECDC4 0%, #6FE5DD 100%);
}

.calendar-item-badge-grid.day.belgisch {
	background: linear-gradient(135deg, #FFB84D 0%, #FFC66D 100%);
}

.calendar-item-badge-grid.week {
	background: linear-gradient(135deg, #9B59B6 0%, #B878D8 100%);
	color: white;
	font-size: 0.65em;
}

.calendar-item-more-grid {
	font-size: 0.7em;
	font-weight: 700;
	color: white;
	background: linear-gradient(135deg, #008C9E 0%, #00A8BE 100%);
	padding: 4px 6px;
	text-align: center;
	border-radius: 3px;
	flex-shrink: 0;
}

.calendar-cell::-webkit-scrollbar {
	width: 4px;
}

.calendar-cell::-webkit-scrollbar-track {
	background: transparent;
}

.calendar-cell::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 2px;
}

.calendar-cell::-webkit-scrollbar-thumb:hover {
	background: #999;
}

/* MODAL REVEAL STYLING - auto height, vertically centered */
#show_reveal.reveal {
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	z-index: 9999 !important;
	width: 50vw !important;
	max-width: 85vw !important;
	height: auto !important;
	max-height: calc(100vh - 50px) !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	right: auto !important;
	bottom: auto !important;
}

/* Sticky header in modal */
#show_reveal.reveal > div:first-child {
	position: sticky;
	top: 0;
	z-index: 10;
}

.reveal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9998;
}

@media (max-width: 768px) {
	.calendar-cell {
		min-height: 100px;
		padding: 6px;
	}

	.calendar-day-number {
		font-size: 1em;
	}

	.calendar-item-badge-grid {
		font-size: 0.65em;
		padding: 2px 4px;
	}
}

@media (max-width: 640px) {
	.calendar-grid {
		gap: 4px;
	}

	.calendar-cell {
		min-height: 80px;
		padding: 4px;
		gap: 3px;
	}

	.calendar-day-number {
		font-size: 0.9em;
	}

	.calendar-item-badge-grid {
		font-size: 0.6em;
		padding: 2px 3px;
	}
}

/* =====================================================
   MINIKALENDER POPUP CONTENT - Modern Card Styling
   ===================================================== */

.mini-selector-header {
	background: linear-gradient(135deg, #008cba 0%, #0074a8 100%);
	color: white;
	padding: 16px 20px;
	border-radius: 8px 8px 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0;
}

.mini-selector-header h4 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
	color: white;
}

.mini-selector-badge {
	background: rgba(255, 255, 255, 0.2);
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	white-space: nowrap;
}

.mini-selector-count {
	color: #5a6c7d;
	font-size: 0.95rem;
	margin-bottom: 12px;
	padding: 0 4px;
}

.mini-selector-items {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mini-selector-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	background: #f8fafc;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: all 0.2s ease;
	border: 1px solid #e8eef5;
}

.mini-selector-item:hover {
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
	border-color: #3ECBC9;
}

.mini-selector-item:hover .mini-selector-item-title {
	color: #008cba;
}

.mini-selector-item-img {
	width: 70px;
	height: 70px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: #e0e8f0;
}

.mini-selector-item-content {
	flex: 1;
	min-width: 0;
}

.mini-selector-item-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: #2c3e50;
	margin: 0 0 4px 0;
	line-height: 1.3;
	transition: color 0.2s ease;
}

.mini-selector-item-date {
	font-size: 0.8rem;
	color: #8896a4;
	margin: 0;
}

.mini-selector-item-badge {
	padding: 3px 8px;
	border-radius: 12px;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
	flex-shrink: 0;
}

.mini-selector-item-badge.nationaal {
	background: rgba(255, 107, 107, 0.15);
	color: #e74c3c;
}

.mini-selector-item-badge.internationaal {
	background: rgba(62, 203, 201, 0.15);
	color: #00a099;
}

.mini-selector-item-badge.belgisch {
	background: rgba(255, 184, 77, 0.15);
	color: #d68910;
}

.mini-selector-item-badge.week {
	background: rgba(155, 89, 182, 0.15);
	color: #8e44ad;
}

.mini-selector-item-badge.nacht {
	background: rgba(44, 62, 80, 0.15);
	color: #2c3e50;
}

.mini-selector-empty {
	text-align: center;
	padding: 30px 20px;
	color: #5a6c7d;
}

.mini-selector-empty-icon {
	font-size: 2.5rem;
	margin-bottom: 10px;
	opacity: 0.5;
}

.mini-selector-empty p {
	margin: 0;
	font-size: 0.95rem;
}

.mini-selector-funfact {
	margin-top: 16px;
	padding: 14px 16px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 10px;
	border-left: 3px solid #3ECBC9;
	text-align: left;
}

.mini-selector-funfact-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: #3ECBC9;
	margin-bottom: 6px;
}

.mini-selector-funfact p {
	font-size: 0.9rem;
	color: #2c3e50;
	line-height: 1.5;
	margin: 0;
}

.mini-selector-funfact ul,
.mini-selector-funfact ol {
	font-size: 0.9rem;
	color: #2c3e50;
	line-height: 1.5;
	margin: 0;
	padding-left: 20px;
}

.mini-selector-funfact li {
	font-size: 0.9rem;
	margin-bottom: 4px;
}

.mini-selector-funfact a {
	color: #008cba;
	text-decoration: underline;
}
