body {
	background: #0f172a;
	color: #e5e7eb;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.navbar {
	background: #020617 !important;
}

.navbar-brand {
	font-weight: 600;
}

.page-title {
	font-weight: 600;
	color: #e5e7eb;
}

.page-subtitle {
	font-size: 0.85rem;
	color: #9ca3af;
}

.badge {
	font-size: 0.8rem;
}

.card {
	border-radius: 1rem;
	border: 1px solid rgba(148, 163, 184, 0.2);
	background: #020617;
	color: #e5e7eb;
}

.card-header {
	border-bottom: 1px solid rgba(148, 163, 184, 0.2);
	background: transparent;
	color: #cbd5f5;
	font-weight: 500;
}

.target-card {
	background: #020617;
	transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.target-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 30px rgba(15, 23, 42, 0.6);
	border-color: rgba(96, 165, 250, 0.6);
}

.pill-success {
	background-color: #16a34a;
}

.pill-danger {
	background-color: #dc2626;
}

.badge-type {
	background: #1e293b;
	color: #e5e7eb;
	font-size: 0.7rem;
	padding: 0.2rem 0.5rem;
}

.target-url {
	font-size: 0.8rem;
	color: #93c5fd;
	word-break: break-all;
}

.target-url a {
	color: inherit;
	text-decoration: none;
}

.target-url a:hover {
	text-decoration: underline;
}

.checks-list {
	font-size: 0.75rem;
	color: #9ca3af;
}

.uptime-meta {
	font-size: 0.75rem;
	color: #9ca3af;
}

.uptime-24 {
	font-weight: 500;
}

.header-subtitle {
	font-size: 0.8rem;
	color: #9ca3af;
}

.chart-tooltip {
	position: absolute;
	z-index: 9999;
	max-width: 260px;
	background: #020617;
	color: #e5e7eb;
	border-radius: 0.75rem;
	padding: 0.5rem 0.75rem;
	font-size: 0.75rem;
	line-height: 1.25;
	box-shadow: 0 18px 30px rgba(15, 23, 42, 0.7);
	pointer-events: none;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.12s ease-out, transform 0.12s ease-out;
	white-space: normal;
	word-break: break-word;
}

.chart-tooltip-title {
	font-weight: 600;
	margin-bottom: 0.25rem;
	font-size: 0.78rem;
	color: #e5e7eb;
}

.chart-tooltip-body {
	font-size: 0.75rem;
	color: #cbd5f5;
}

.btn-outline-light.btn-nav {
	border-radius: 0.6rem;
	border-width: 1px;
	font-size: 0.8rem;
	padding-inline: 1rem;
}

.project-card {
	background: #020617;
	transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
	cursor: pointer;
	text-decoration: none !important;
	color: inherit;
}

.project-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 30px rgba(15, 23, 42, 0.6);
	border-color: rgba(96, 165, 250, 0.6);
}

.project-name {
	font-size: 1rem;
	font-weight: 500;
	margin-bottom: 0.15rem;
}

.project-date {
	font-size: 0.8rem;
	color: #9ca3af;
}

.badge-unread {
	border-radius: 999px;
	background: #dc2626;
	color: #fef2f2;
	padding: 0.1rem 0.45rem;
	font-size: 0.7rem;
	font-weight: 600;
}

.badge-unread-dot {
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: #dc2626;
}

.new-project-card .form-control,
.new-project-card textarea {
	background: #020617;
	border-color: rgba(148, 163, 184, 0.4);
	color: #e5e7eb;
}

.new-project-card .form-control:focus,
.new-project-card textarea:focus {
	border-color: #60a5fa;
	box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.new-project-card label {
	font-size: 0.8rem;
	color: #9ca3af;
}

.new-project-card .btn-primary {
	background: #2563eb;
	border-color: #2563eb;
	border-radius: 0.9rem;
}

.empty-placeholder {
	border-radius: 1rem;
	border: 1px dashed rgba(148, 163, 184, 0.4);
	background: rgba(15, 23, 42, 0.6);
	color: #9ca3af;
	font-size: 0.9rem;
}

.region-card {
	background: #020617;
	transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.region-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 30px rgba(15, 23, 42, 0.6);
	border-color: rgba(96, 165, 250, 0.6);
}

.region-name {
	font-size: 0.95rem;
	font-weight: 500;
}

.proxy-line {
	font-size: 0.8rem;
	color: #9ca3af;
	word-break: break-all;
}

.regions-empty {
	border-radius: 1rem;
	border: 1px dashed rgba(148, 163, 184, 0.4);
	background: rgba(15, 23, 42, 0.6);
	color: #9ca3af;
	font-size: 0.9rem;
}

.sidebar-card .form-control,
.sidebar-card .form-select,
.sidebar-card textarea {
	background: #020617;
	border-color: rgba(148, 163, 184, 0.4);
	color: #e5e7eb;
}

.sidebar-card .form-control:focus,
.sidebar-card .form-select:focus,
.sidebar-card textarea:focus {
	border-color: #60a5fa;
	box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.sidebar-card label {
	font-size: 0.8rem;
	color: #9ca3af;
}

.sidebar-card .btn-primary {
	background: #2563eb;
	border-color: #2563eb;
	border-radius: 0.9rem;
}

.sidebar-card .btn-outline-primary {
	border-color: #60a5fa;
	color: #bfdbfe;
}

.sidebar-card .btn-outline-primary:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #e5e7eb;
}

.sidebar-card .form-control::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.sidebar-card .form-control::-webkit-input-placeholder {
	color: #9ca3af;
}

.sidebar-card .form-control:-ms-input-placeholder {
	color: #9ca3af;
}

.sidebar-card .form-control::-ms-input-placeholder {
	color: #9ca3af;
}

.btn-outline-danger.btn-sm,
.btn-outline-success.btn-sm {
	border-radius: 999px;
	font-size: 0.7rem;
	padding: 0.18rem 0.7rem;
}

.login-wrapper {
	min-height: calc(100vh - 56px);
}

.login-card {
	max-width: 420px;
}

.login-card .btn-primary {
	background: #2563eb;
	border-color: #2563eb;
}

.region-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
}

.region-actions form {
	margin: 0;
	display: flex;
	align-items: center;
}

.region-toggle-btn,
.region-delete-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 25px;
	border-radius: 999px;
}

.region-toggle-btn {
	position: relative;
	width: 46px;
	border: 1px solid rgba(148, 163, 184, 0.5);
	background: #020617;
	padding: 0;
	cursor: pointer;
	outline: none;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.8);
	transition: background 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.region-toggle-btn::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: #6b7280;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
	transform: translateX(0);
	transition: transform 0.16s ease-out, background 0.16s ease-out, box-shadow 0.16s ease-out;
}

.region-toggle-btn--active {
	background: rgba(22, 163, 74, 0.15);
	border-color: #16a34a;
}

.region-toggle-btn--active::before {
	transform: translateX(20px);
	background: #22c55e;
	box-shadow:
		0 0 0 1px rgba(34, 197, 94, 0.65),
		0 4px 10px rgba(22, 163, 74, 0.7);
}

.region-toggle-btn:focus-visible {
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.6);
}

.region-delete-btn {
	padding: 0 12px;
	font-size: 0.7rem;
	line-height: 1;
}

.target-card--disabled {
	opacity: 0.55;
}

.target-card--disabled .status-pill {
	background-color: #6b7280;
}

.target-actions {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.target-actions form {
	margin: 0;
}