.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--nav-bg);
	border-bottom: 1px solid var(--nav-border);
	backdrop-filter: blur(10px);
	font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

.nav-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0.75rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.terminal-prompt {
	display: flex;
	align-items: center;
	gap: 0;
}

.terminal-prompt .user {
	color: var(--nav-accent);
}

.terminal-prompt .separator {
	color: var(--nav-text);
}

.terminal-prompt .path {
	color: var(--nav-primary);
}

.terminal-prompt .symbol {
	color: var(--nav-text);
	margin-left: 0.25rem;
}

.cursor {
	width: 0.5em;
	height: 1.1em;
	background: var(--nav-primary);
	animation: blink 1s step-end infinite;
	margin-left: 0.25rem;
	vertical-align: baseline;
	transform: translateY(0.15em);
}

@keyframes blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

.mobile-toggle {
	display: none;
	background: none;
	border: none;
	padding: 0.5rem;
	cursor: pointer;
}

.hamburger {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--nav-text);
	position: relative;
	transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
	content: '';
	position: absolute;
	width: 24px;
	height: 2px;
	background: var(--nav-text);
	transition: all 0.3s ease;
}

.hamburger::before {
	top: -7px;
}

.hamburger::after {
	top: 7px;
}

.hamburger.open {
	background: transparent;
}

.hamburger.open::before {
	top: 0;
	transform: rotate(45deg);
}

.hamburger.open::after {
	top: 0;
	transform: rotate(-45deg);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex: 1;
}

.nav-link {
	color: var(--nav-text);
	text-decoration: none;
	font-size: 0.85rem;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.nav-link::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--nav-primary);
	transition: width 0.3s ease;
}

.nav-link:hover::before {
	width: 100%;
}

.nav-link:hover {
	color: var(--nav-primary);
}

.link-prefix {
	color: var(--nav-muted);
	margin-right: 2px;
}

.nav-controls {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.theme-selector {
	position: relative;
}

.theme-button {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: transparent;
	border: 1px solid var(--nav-border);
	border-radius: 6px;
	color: var(--nav-text);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.8rem;
	transition: all 0.2s ease;
}

.theme-button:hover {
	border-color: var(--nav-primary);
	background: color-mix(in srgb, var(--nav-primary) 10%, transparent);
}

.theme-icon {
	font-size: 1rem;
	display: flex;
	align-items: center;
}

.theme-label {
	text-transform: capitalize;
}

:global(.dropdown-arrow) {
	transition: transform 0.2s ease;
}

:global(.dropdown-arrow.open) {
	transform: rotate(180deg);
}

.theme-dropdown {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	min-width: 180px;
	background: var(--nav-bg);
	border: 1px solid var(--nav-border);
	border-radius: 8px;
	padding: 0.5rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	z-index: 1001;
}

.theme-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	padding: 0.625rem 0.75rem;
	background: transparent;
	border: none;
	border-radius: 6px;
	color: var(--nav-text);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.85rem;
	text-align: left;
	transition: all 0.2s ease;
}

.theme-option:hover {
	background: color-mix(in srgb, var(--nav-primary) 15%, transparent);
}

.theme-option.active {
	background: color-mix(in srgb, var(--nav-primary) 20%, transparent);
	color: var(--nav-primary);
}

.option-icon {
	font-size: 1.1rem;
	display: flex;
	align-items: center;
}

.option-label {
	flex: 1;
}

:global(.check-mark) {
	color: var(--nav-primary);
}

.mode-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid var(--nav-border);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	color: var(--nav-text);
}

.mode-toggle:hover {
	border-color: var(--nav-primary);
	background: color-mix(in srgb, var(--nav-primary) 10%, transparent);
	color: var(--nav-primary);
}

.backdrop {
	position: fixed;
	inset: 0;
	background: transparent;
	z-index: 999;
	border: none;
	cursor: default;
}

@media (max-width: 768px) {
	.nav-container {
		flex-wrap: wrap;
		padding: 0.75rem 1rem;
	}

	.mobile-toggle {
		display: block;
		order: 2;
	}

	.nav-links {
		order: 4;
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease, padding 0.3s ease;
	}

	.nav-links.expanded {
		max-height: 200px;
		padding-top: 1rem;
	}

	.nav-controls {
		order: 3;
		margin-left: auto;
		margin-right: 1rem;
	}

	.theme-label {
		display: none;
	}

	.theme-button {
		padding: 0.5rem;
	}
}
