.theme-selector {
	margin-top: 10px;
}

.theme-selector h3 {
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--highlight);
	text-align: center;
	font-family: "Pixel NES", 'Press Start 2P', cursive;
}

.theme-buttons {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.theme-button {
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid var(--border);
	color: var(--text-main);
	padding: 6px 10px;
	cursor: pointer;
	font-family: "VT323", monospace;
	font-size: 12px;
	transition: all 0.2s ease;
	text-align: left;
	display: flex;
	align-items: center;
	gap: 8px;
}

.theme-button:hover {
	background: var(--primary);
	border-color: var(--highlight);
	box-shadow: 0 0 5px var(--shadow);
	transform: translateX(2px);
}

.theme-button.active {
	background: var(--primary);
	border-color: var(--highlight);
	box-shadow: 0 0 8px var(--shadow);
}

.theme-button::before {
	content: "○";
	font-size: 16px;
	color: var(--accent);
}

.theme-button.active::before {
	content: "●";
	color: var(--highlight);
}

.theme-preview {
	display: flex;
	gap: 2px;
}

.theme-preview-color {
	width: 12px;
	height: 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .theme-selector,
body.dark-mode .theme-popup-content,
body.dark-mode .theme-button {
	filter: grayscale(100%);
}

.theme-selector-btn {
	background: transparent;
	border: none;
	color: var(--text-main);
	padding: 0;
	cursor: pointer;
	font-family: "NEC_APC3", monospace;
	font-size: 24px;
	transition: all 0.2s ease;
	line-height: 1;
	font-weight: bold;
}

.theme-selector-btn:hover {
	color: var(--highlight);
	text-shadow: 0 0 5px var(--glow);
	transform: scale(1.2);
}

/* Theme Popup */
.theme-popup {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 10000;
	align-items: center;
	justify-content: center;
}

.theme-popup-content {
	background: var(--secondary);
	border: 2px solid var(--border);
	padding: 20px;
	max-width: 400px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
}

.theme-popup-content h2 {
	margin: 0 0 15px;
	font-size: 16px;
	color: var(--highlight);
	text-align: center;
	font-family: "Pixel NES", 'Press Start 2P', cursive;
}

.theme-popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: transparent;
	border: none;
	color: var(--text-main);
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	line-height: 1;
	transition: all 0.2s ease;
}

.theme-popup-close:hover {
	color: var(--highlight);
	transform: scale(1.2);
}

