:root {
	--bg: #0a0a0a;
	--bg-light: #111111;
	--text: #ffffff;
	--text-dim: #a1a1aa;
	--accent: #18181b;
	--border: #27272a;
	--primary: #ffffff;
	--glow: rgba(255, 255, 255, 0.1);
}

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

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	min-height: 100vh;
}

@media (min-width: 769px) {
	body::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background:
			radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
			radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
			radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
		pointer-events: none;
		z-index: -1;
		animation: float 20s ease-in-out infinite;
	}
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0px) rotate(0deg);
	}

	50% {
		transform: translateY(-10px) rotate(1deg);
	}
}

/* Navigation */
nav {
	position: fixed;
	top: 0;
	width: 100%;
	background: rgba(10, 10, 10, 0.8);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	z-index: 100;
	border-bottom: 1px solid var(--border);
}

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

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary);
	text-decoration: none;
	letter-spacing: -0.05em;
}

.back-btn {
	background: rgba(255, 255, 255, 0.1);
	color: var(--text);
	padding: 0.75rem 1.5rem;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 1px solid var(--border);
}

.back-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

/* Main content */
.main-content {
	margin-top: 70px;
	padding: 2rem;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

.page-header {
	text-align: center;
	margin-bottom: 3rem;
}

.page-header h1 {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.page-header p {
	color: var(--text-dim);
	font-size: 1.1rem;
}

/* Layout */
.configurator-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.configurator-layout {
		grid-template-columns: 1fr 1fr;
	}
}

/* Form styles */
.config-panel {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 2rem;
	backdrop-filter: blur(10px);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 0.75rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	font-size: 1rem;
	transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
	resize: vertical;
	min-height: 80px;
}

.color-input-wrapper {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.color-input {
	width: 50px !important;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.radio-group {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.radio-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

.radio-item input[type="radio"] {
	width: auto;
	margin: 0;
}

/* Preview panel */
.preview-panel {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 2rem;
	backdrop-filter: blur(10px);
	position: relative;
	min-height: 400px;
}

/* Installation guide */
.installation-guide {
	margin-top: 2rem;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 1.5rem;
}

.install-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.tab-btn {
	padding: 0.5rem 1rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--text-dim);
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	flex: 1;
	min-width: 80px;
}

@media (max-width: 768px) {
	.tab-btn {
		flex: none;
		min-width: 70px;
		padding: 0.4rem 0.8rem;
		font-size: 0.8rem;
	}
}

.tab-btn.active,
.tab-btn:hover {
	background: var(--primary);
	color: var(--bg);
	border-color: var(--primary);
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

.tab-content h4 {
	font-size: 1.1rem;
	margin-bottom: 1rem;
	color: var(--text);
}

.tab-content ol {
	margin-left: 1.2rem;
	margin-bottom: 1rem;
}

.tab-content li {
	margin-bottom: 0.5rem;
	line-height: 1.5;
	color: var(--text-dim);
}

.tab-content code {
	background: rgba(255, 255, 255, 0.1);
	padding: 0.2rem 0.4rem;
	border-radius: 4px;
	font-family: 'Consolas', 'Monaco', monospace;
	font-size: 0.9rem;
	color: var(--text);
}

.tab-content strong {
	color: var(--text);
}

.install-note {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1rem;
	margin-top: 1.5rem;
}

.install-note p {
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	color: var(--text-dim);
}

.install-note p:last-child {
	margin-bottom: 0;
}

.preview-area {
	background:
		url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect width="400" height="300" fill="%23f8f9fa"/><rect width="400" height="60" fill="%23495057"/><rect x="20" y="25" width="8" height="8" rx="2" fill="%23ffb3ba"/><rect x="35" y="25" width="8" height="8" rx="2" fill="%23bae1ff"/><rect x="50" y="25" width="8" height="8" rx="2" fill="%23b8ffb3"/><rect x="70" y="22" width="80" height="16" rx="8" fill="%23e6e6fa"/><rect x="320" y="22" width="60" height="16" rx="8" fill="%23dfe7fd"/><rect x="20" y="80" width="180" height="140" fill="%23ffffff" stroke="%23e0e6ed" stroke-width="1"/><rect x="30" y="95" width="160" height="20" rx="4" fill="%23f0f8ff"/><rect x="40" y="130" width="50" height="40" rx="8" fill="%23dfe7fd"/><rect x="100" y="130" width="50" height="40" rx="8" fill="%23d4edda"/><rect x="160" y="130" width="30" height="40" rx="8" fill="%23fff3cd"/><rect x="30" y="185" width="70" height="20" rx="10" fill="%23cce5ff"/><rect x="110" y="185" width="70" height="20" rx="10" fill="%23ffffff" stroke="%23dfe7fd" stroke-width="1"/><rect x="220" y="80" width="180" height="140" fill="%23000000"/><rect x="230" y="95" width="160" height="20" rx="4" fill="%23333333"/><rect x="240" y="130" width="45" height="30" rx="4" fill="%23555555"/><rect x="295" y="130" width="45" height="30" rx="4" fill="%23444444"/><rect x="350" y="130" width="35" height="30" rx="4" fill="%23666666"/><rect x="235" y="170" width="70" height="20" rx="4" fill="%23404040"/><rect x="315" y="170" width="70" height="20" rx="4" fill="%23505050"/><rect x="235" y="200" width="150" height="15" rx="4" fill="%23383838"/><rect y="240" width="400" height="60" fill="%23f5f5f5"/><rect x="20" y="255" width="200" height="10" rx="2" fill="%23d1ecf1"/><rect x="20" y="270" width="40" height="15" rx="4" fill="%23bee5eb"/><rect x="70" y="270" width="40" height="15" rx="4" fill="%23d1f2eb"/><rect x="120" y="270" width="40" height="15" rx="4" fill="%23f8d7da"/><rect x="170" y="270" width="40" height="15" rx="4" fill="%23fff3cd"/><rect x="300" y="255" width="80" height="25" rx="4" fill="%23e2e3e5"/></svg>');
	background-size: cover;
	background-position: center;
	border-radius: 12px;
	height: 360px;
	position: relative;
	overflow: hidden;
	margin-bottom: 2rem;
	border: 1px solid var(--border);
}

/* Code output */
.code-output {
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 1.5rem;
	margin-top: 2rem;
	position: relative;
}

.code-output pre {
	color: #e6e6e6;
	font-family: 'Consolas', 'Monaco', monospace;
	font-size: 0.5rem;
	line-height: 1.5;
	height: 30vh;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-all;
}

.copy-btn {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: var(--primary);
	color: var(--bg);
	border: none;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.3s ease;
}

.copy-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.section-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: var(--text);
	border-bottom: 1px solid var(--border);
	padding-bottom: 0.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.main-content {
		padding: 1rem;
	}

	.config-panel,
	.preview-panel {
		padding: 1.5rem;
	}

	.nav-container {
		padding: 0 1rem;
	}
}

#color-picker {
	width: 50px;
	height: 40px;
	border-radius: 6px;
	border: 1px solid var(--border);
}

.pickr {
	background: transparent !important;
	border: 1px solid var(--border) !important;
	border-radius: 6px !important;
}

.pcr-app {
	background: var(--bg-light) !important;
	border: 1px solid var(--border) !important;
	border-radius: 8px !important;
}

.pcr-interaction input {
	background: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid var(--border) !important;
	color: var(--text) !important;
}