body {
    font-family: system-ui, -apple-system, sans-serif;
}

h1, h2, h3 {
    font-weight: 700;
}

.card-title {
    font-size: 1.25rem;
}

footer {
    font-size: 0.9rem;
}

/* Dark mode overrides */
.dark-mode {
	background-color: #121212;
	color: #e0e0e0;
}

.dark-mode .bg-light {
	background-color: #1e1e1e !important;
}

.dark-mode .card {
	background-color: #1c1c1c;
	color: #e0e0e0;
}

.dark-mode a {
	color: #90caf9;
}

.dark-mode footer {
	background-color: #000000;
}

/* Hide the default checkbox */
.form-check-input {
	display: none;
}

/* Style the label to be the toggle switch */
.form-check-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 50px;
	height: 25px;
	background-color: #ccc;
	border-radius: 50px;
	padding: 5px;
	cursor: pointer;
	position: relative;
	transition: background-color 0.3s;
}

/* Sun and Moon icons in toggle */
.icon-sun, .icon-moon {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.2rem;
	transition: opacity 0.3s;
}

/* Position sun on the right, moon on the left */
.icon-sun {
	right: 5px;
	opacity: 0;
}

.icon-moon {
	left: 5px;
	opacity: 1;
}

/* Move the toggle to the right when checked (dark mode) */
.form-check-input:checked + .form-check-label {
	background-color: #333;
}

/* Align the tickbox switch vertically with other nav items */
.nav-item {
	display: flex;
	align-items: center;
}

/* Ensure label's inner content (the toggle) is centered */
.form-check-label {
	margin-bottom: 0; /* Reset any unwanted bottom margin */
}

.form-check-input:checked + .form-check-label .icon-sun {
	opacity: 1;
}

.form-check-input:checked + .form-check-label .icon-moon {
	opacity: 0;
}
