[x-cloak] {
	display: none !important;
}

[data-bs-theme="light"] .theme-icon-sun,
[data-theme="light"] .theme-icon-sun,
[data-bs-theme="dark"] .theme-icon-moon,
[data-theme="dark"] .theme-icon-moon {
	display: none !important;
}

:root,
[data-bs-theme="light"],
[data-theme="light"] {
	--bg-body: #f8f9fa;
	--bg-surface: #ffffff;
	--bg-subtle: #f1f3f5;
	--text-main: #212529;
	--text-muted: #5c636a;
	--border-color: rgba(0, 0, 0, 0.08);
	--border-subtle: #dee2e6;
	--table-th-bg: #f1f3f5;
	--table-th-color: #495057;
	--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
}

[data-bs-theme="dark"],
[data-theme="dark"] {
	--bg-body: #121212;
	--bg-surface: #1e1e1e;
	--bg-subtle: #2a2a2a;
	--text-main: #f8f9fa;
	--text-muted: #adb5bd;
	--border-color: rgba(255, 255, 255, 0.12);
	--border-subtle: #343a40;
	--table-th-bg: #262626;
	--table-th-color: #dee2e6;
	--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
}

body {
	font-family: 'Outfit', sans-serif;
	background-color: var(--bg-body);
	color: var(--text-main);
}

body,
.navbar-custom,
.card,
.table th,
.list-group-item,
.theme-toggle-btn {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
	body,
	.navbar-custom,
	.card,
	.table th,
	.list-group-item,
	.theme-toggle-btn {
		transition: none !important;
	}
}

.navbar-custom {
	background-color: var(--bg-surface);
	border-bottom: 1px solid var(--border-color);
}

.card {
	border-radius: 12px;
	border: 1px solid var(--border-color);
	background-color: var(--bg-surface);
}

.card-header {
	background-color: transparent !important;
}

.shadow-sm {
	box-shadow: var(--shadow-sm) !important;
}

.table-responsive {
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--border-color);
}

.table {
	margin-bottom: 0;
	--bs-table-bg: transparent;
}

.table th {
	background-color: var(--table-th-bg);
	font-weight: 600;
	color: var(--table-th-color);
	border-bottom: 2px solid var(--border-subtle);
}

.btn-primary {
	background-color: #0d6efd;
	border-color: #0d6efd;
	font-weight: 500;
}

.btn-primary:hover {
	background-color: #0b5ed7;
	border-color: #0a58ca;
}

.header-title {
	font-weight: 700;
	color: var(--text-main);
	letter-spacing: -0.5px;
}

.theme-toggle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.65rem;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	background-color: var(--bg-subtle);
	color: var(--text-main);
	cursor: pointer;
	line-height: 1;
}

.theme-toggle-btn:hover {
	background-color: var(--border-color);
	color: var(--text-main);
}

[data-bs-theme="dark"] .bg-light {
	background-color: var(--bg-subtle) !important;
	border-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .bg-white {
	background-color: var(--bg-surface) !important;
}

[data-bs-theme="dark"] .list-group-item {
	background-color: var(--bg-surface);
	border-color: var(--border-color);
	color: var(--text-main);
}

[data-bs-theme="dark"] .list-group-item-action:hover,
[data-bs-theme="dark"] .list-group-item-action:focus {
	background-color: var(--bg-subtle);
	color: var(--text-main);
}
