/* BASISSTIJLEN */
body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	background-color: #f0f0f0;
	margin: 0;
	padding: 0;
	color: #333;
}
header {
	background-color: #464545;
	color: white;
	padding: 1rem;
	text-align: center;
}
main {
	max-width: 900px;
	margin: auto;
	padding: 1rem;
}
label, input, select, textarea, button {
	display: block;
	width: 100%;
	margin-bottom: 1rem;
	padding: 0.6rem;
	box-sizing: border-box;
	font-size: 1rem;
}
input, select, textarea {
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
	color: #333;
}
::placeholder {
 color:#9B9596;
}
a {
	color: #ff9800;
}
button {
	background-color: #ff9800;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
button:hover {
	background-color: #d5d5d5;
}
.btn-edit {
	margin-top: 8px;
}
.btn-verwijder {
	background-color: #f44336; /* rood */
	color: white;
	border: none;
	cursor: pointer;
}
.btn-verwijder:hover {
	background-color: #d32f2f;
}
.btn-export {
	background-color: #02666B; /* groen */
	color: white;
	border: none;
	cursor: pointer;
}
.btn-export:hover {
	background-color: #04B4B7;
}
.hidden {
	display: none;
}
#kalender-navigatie {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}
#kalender-navigatie button {
	display: inline-flex;
	padding: 0.4rem 0.8rem;
	font-size: 0.9rem;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	text-align: center;
}
#kalender-navigatie button:hover {
	background-color: #d5d5d5;
}

@media (max-width: 480px) {
#kalender-navigatie {
	flex-direction: column;
	align-items: center;
}
#kalender-navigatie button {
	width: 80%;
}
}
/* KALENDERSTIJLEN */
#calendar-container {
	display: grid;
	grid-template-columns: 40px repeat(7, 1fr);
	gap: 0.25rem;
	margin: 2rem auto;
	max-width: 100%;
}
.calendar-day, .empty-day, .week-number {
	background-color: #e0e0e0;
	padding: 0.75rem;
	text-align: center;
	border-radius: 4px;
	font-size: 0.9rem;
}
.calendar-day {
	cursor: pointer;
	background-color: #f2f2f2;
	transition: background-color 0.2s ease;
}
.calendar-day:hover {
	background-color: #ddd;
}
.weekend {
	background-color: #c9c9c9;
}
.week-number {
	background-color: #b0b0b0;
	font-weight: bold;
	cursor: default;
	color: #333;
}
.calendar-day.met-bon {
	background-color: #e0f7e9;
	border: 1px solid #104501;
}
.calendar-day.met-bon:hover {
	background-color: #05AF33;
	border: 1px solid #104501;
}
.today {
	background-color: #ff9800 !important;
	border: 1px solid #3E0102;
	color: white;
	font-weight: bold;
}
/* WERKBON-LIJST EN FORMULIER */
em {
	margin-bottom: 10px;
	font-style: italic;
}
#werkbon-lijst div {
	background-color: #fff;
	padding: 1rem;
	margin-bottom: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 0.95rem;
}
fieldset {
	display: block;
	padding: 0.5rem;
	border: 1px solid #ccc;
	margin-bottom: 1rem;
}
fieldset legend {
	margin-bottom: 0.5rem;
}
.materiaal-groep {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.5rem 1rem;
}
.materiaal-groep label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.95rem;
	cursor: pointer;
}
.materiaal-groep input[type="radio"] {
	width: 16px;
	height: 16px;
	margin: 0;
}

/* RESPONSIVE ONTWERP */
@media (max-width: 768px) {
#calendar-container {
	grid-template-columns: 30px repeat(3, 1fr);
}
header, main {
	padding: 1rem;
}
.calendar-day, .empty-day, .week-number {
	padding: 0.5rem;
	font-size: 0.8rem;
}
label, input, select, textarea, button {
	font-size: 1rem;
}
}

@media (max-width: 480px) {
#calendar-container {
	grid-template-columns: 30px repeat(2, 1fr);
}
}
.calendar-day {
	position: relative;
}
.aantal-bonnen {
	position: absolute;
	bottom: 3px;
	right: 4px;
	background: #4caf50;
	color: white;
	font-size: 0.7rem;
	padding: 2px 6px;
	border-radius: 12px;
	line-height: 1;
	min-width: 16px;
	text-align: center;
}

@media (max-width: 600px) {
#calendar-container {
	grid-template-columns: repeat(8, 1fr); /* 7 dagen + 1 weeknummer */
}
.calendar-day,  .empty-day,  .week-number {
	font-size: 0.7rem;
	padding: 6px 2px;
}
.week-number {
	writing-mode: vertical-lr;
	transform: rotate(180deg);
	text-align: center;
	font-weight: bold;
	background-color: #f0f0f0;
}
}
/*Formulier nieuwe gebruiker in beheerpaneel*/
form.createuser {
	margin: 2rem auto;
	display: inline-flex;
	align-items: center;
}
form.createuser label {
	font-weight: 500;
	text-align: right;
	margin-right: 10px;
	padding-right: 10px;
	display: inline-flex;
}
form.createuser input, form.createuser select {
	padding: 6px 10px;
	font-size: 0.9rem;
	width: 100%;
}
form.createuser button {
	padding: 8px 12px;
	font-size: 1rem;
	cursor: pointer;
	color: white;
	border: none;
	border-radius: 4px;
}
form.createuser button:hover {
	background-color: #d5d5d5;
}
