:root {
	--bg: #f4f6f9;
	--surface: #ffffff;
	--border: #d8dee9;
	--text: #1f2937;
	--muted: #6b7280;
	--accent: #2563eb;
	--accent-hover: #1d4ed8;
	--danger: #dc2626;
	--shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	--radius: 12px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	background: var(--bg);
	color: var(--text);
	min-height: 100vh;
	line-height: 1.5;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.topbar {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	padding: 0.9rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 600;
	font-size: 1.05rem;
}

.brand-mark {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, #2563eb, #1e40af);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 0.85rem;
	font-weight: 700;
}

.center-wrap {
	flex: 1;
	display: grid;
	place-items: center;
	padding: 2rem 1rem;
}

.card {
	width: 100%;
	max-width: 420px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 2rem;
}

.card h1 {
	font-size: 1.5rem;
	margin-bottom: 0.35rem;
}

.card .subtitle {
	color: var(--muted);
	margin-bottom: 1.75rem;
	font-size: 0.95rem;
}

.field {
	margin-bottom: 1rem;
}

.field label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.4rem;
}

.field input {
	width: 100%;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	font: inherit;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 1rem 0 1.25rem;
	font-size: 0.875rem;
}

.checkbox {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--muted);
}

.btn {
	width: 100%;
	border: none;
	border-radius: 8px;
	padding: 0.8rem 1rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	background: var(--accent);
	color: #fff;
	transition: background 0.15s;
}

.btn:hover {
	background: var(--accent-hover);
}

.btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.alert {
	display: none;
	margin-bottom: 1rem;
	padding: 0.75rem 0.85rem;
	border-radius: 8px;
	font-size: 0.875rem;
	background: #fef2f2;
	color: var(--danger);
	border: 1px solid #fecaca;
}

.alert.visible {
	display: block;
}

.footer-note {
	margin-top: 1.25rem;
	text-align: center;
	font-size: 0.8rem;
	color: var(--muted);
}

.layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	min-height: calc(100vh - 57px);
}

.sidebar {
	background: #111827;
	color: #e5e7eb;
	padding: 1.25rem 1rem;
}

.sidebar h2 {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #9ca3af;
	margin-bottom: 0.75rem;
}

.nav-item {
	display: block;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	color: #e5e7eb;
	margin-bottom: 0.25rem;
	font-size: 0.925rem;
}

.nav-item.active,
.nav-item:hover {
	background: rgba(255, 255, 255, 0.08);
	text-decoration: none;
}

.content {
	padding: 1.5rem;
}

.content-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}

.content-header h1 {
	font-size: 1.35rem;
}

.user-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.35rem 0.75rem 0.35rem 0.35rem;
	font-size: 0.875rem;
}

.avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #dbeafe;
	color: #1d4ed8;
	display: grid;
	place-items: center;
	font-size: 0.75rem;
	font-weight: 700;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.stat {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem;
}

.stat .label {
	color: var(--muted);
	font-size: 0.8rem;
	margin-bottom: 0.35rem;
}

.stat .value {
	font-size: 1.4rem;
	font-weight: 700;
}

.panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem;
}

.panel h2 {
	font-size: 1rem;
	margin-bottom: 0.75rem;
}

.table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.table th,
.table td {
	text-align: left;
	padding: 0.65rem 0.5rem;
	border-bottom: 1px solid var(--border);
}

.table th {
	color: var(--muted);
	font-weight: 500;
}

.badge {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
}

.badge.ok {
	background: #dcfce7;
	color: #166534;
}

.badge.pending {
	background: #fef3c7;
	color: #92400e;
}

.logout {
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
	border-radius: 8px;
	padding: 0.45rem 0.75rem;
	font: inherit;
	cursor: pointer;
}

@media (max-width: 768px) {
	.layout {
		grid-template-columns: 1fr;
	}

	.sidebar {
		display: none;
	}
}
