:root {
	color-scheme: light;
}

body {
	background-color: #f8f9fa;
	color: #212529;
}

.navbar-logo {
	display: block;
	width: auto;
	height: 34px;
	max-width: 220px;
}

.login-logo {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	margin: 0 auto 18px;
}

.theme-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #f1f3f5;
	cursor: pointer;
	font-size: 0.875rem;
}

.theme-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.theme-slider {
	position: relative;
	display: inline-block;
	width: 38px;
	height: 22px;
	border-radius: 11px;
	background-color: #6c757d;
	transition: background-color 0.2s ease;
}

.theme-slider::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #fff;
	transition: transform 0.2s ease;
}

.theme-switch input:checked + .theme-slider {
	background-color: #198754;
}

.theme-switch input:checked + .theme-slider::after {
	transform: translateX(16px);
}

.theme-switch input:focus-visible + .theme-slider {
	outline: 2px solid #8ecae6;
	outline-offset: 2px;
}

[data-theme="dark"] {
	color-scheme: dark;
}

[data-theme="dark"] body {
	background-color: #121212 !important;
	color: #f1f3f5;
}

[data-theme="dark"] .card,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .list-group-item {
	background-color: #1e1e1e;
	color: #f1f3f5;
	border-color: #444;
}

[data-theme="dark"] .card-header {
	background-color: #1e1e1e !important;
}

[data-theme="dark"] .table {
	--bs-table-color: #f1f3f5;
	--bs-table-bg: #1e1e1e;
	--bs-table-border-color: #444;
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
	--bs-table-accent-bg: #292929;
	color: #f1f3f5;
}

[data-theme="dark"] .table-light > * {
	--bs-table-bg: #343a40;
	--bs-table-color: #f1f3f5;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
	background-color: #242424;
	color: #f1f3f5;
	border-color: #666;
}

[data-theme="dark"] .form-control::placeholder {
	color: #adb5bd;
}

[data-theme="dark"] .text-dark,
[data-theme="dark"] .text-muted {
	color: #f1f3f5 !important;
}

[data-theme="dark"] .bg-light {
	background-color: #343a40 !important;
	color: #f1f3f5 !important;
}

[data-theme="dark"] .btn-outline-secondary {
	color: #f1f3f5;
	border-color: #adb5bd;
}

[data-theme="dark"] a:not(.btn):not(.nav-link):not(.navbar-brand) {
	color: #8ecae6;
}
