:root {
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	background: #f5f7fa;
	color: #0f172a;
}

body {
	display: flex;
	flex-direction: column;
}

.navbar {
	display: flex;
	align-items: stretch;
	min-height: 58px;
	padding: 0 18px;
	border-bottom: 1px solid #e2e8f0;
	background: #ffffff;
	position: relative;
}

.brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	margin: 0;
	padding: 8px 0;
	flex: 0 0 auto;
}

.brand-logo {
	height: 32px;
	width: auto;
	display: block;
}

.nav-menu {
	margin-left: auto;
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.nav-toggle {
	display: none;
	margin-left: auto;
	align-self: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	cursor: pointer;
}

.nav-toggle-bar {
	display: block;
	width: 18px;
	height: 2px;
	margin: 3px auto;
	background: #0f172a;
	border-radius: 999px;
}

.nav-tabs {
	display: flex;
	align-items: stretch;
}

.nav-tab {
	display: inline-flex;
	align-items: center;
	height: 100%;
	gap: 8px;
	padding: 0 14px;
	border-radius: 0;
	border: none;
	text-decoration: none;
	color: #0f172a;
	font-weight: 600;
	font-size: 0.92rem;
	background: transparent;
}

.nav-tab.active {
	background: #e2e8f0;
}

.nav-tab-icon {
	width: 25px;
	height: 25px;
	display: block;
	flex-shrink: 0;
	fill: currentColor;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 14px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid #cbd5e1;
	color: #0f172a;
	background: #ffffff;
	cursor: pointer;
}

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

.btn-primary {
	border-color: #0f172a;
	background: #0f172a;
	color: #ffffff;
}

.btn-danger {
	border-color: #b91c1c;
	background: #b91c1c;
	color: #ffffff;
}

.btn-icon {
	width: 20px;
	height: 20px;
	display: block;
	flex-shrink: 0;
	fill: currentColor;
}

.hidden {
	display: none;
}

@media (max-width: 900px) {
	.navbar {
		align-items: center;
		min-height: 58px;
		padding: 0 12px;
	}

	.nav-toggle {
		display: inline-block;
	}

	.nav-menu {
		position: absolute;
		left: 10px;
		right: 10px;
		top: calc(100% + 8px);
		background: #ffffff;
		border: 1px solid #e2e8f0;
		border-radius: 10px;
		box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
		padding: 8px;
		display: none;
		flex-direction: column;
		gap: 8px;
		z-index: 120;
	}

	.nav-menu.open {
		display: flex;
	}

	.nav-tabs,
	.nav-actions {
		width: 100%;
	}

	.nav-tabs {
		flex-direction: column;
	}

	.nav-tab {
		height: auto;
		padding: 10px 12px;
		border-radius: 8px;
		border: 1px solid #cbd5e1;
	}

	.nav-actions {
		padding: 0;
		flex-direction: column;
		align-items: stretch;
	}

	.nav-actions .btn {
		width: 100%;
		justify-content: flex-start;
	}
}
