/* Make room for sidebar */
body {
	margin-left: 240px !important;
	background: #0f172a;
	color: #f1f5f9;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

/* Mobile responsive - remove margin on mobile */
@media (max-width: 768px) {
	body {
		margin-left: 0 !important;
	}
}

.left-menu {
	width: 240px;
	padding: 20px 16px;
	background: #1e293b;
	color: #e2e8f0;
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	box-shadow: 2px 0 16px rgba(0, 0, 0, 0.4);
	border-right: 1px solid rgba(148, 163, 184, 0.2);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	overflow-y: auto;
	/* Hide scrollbar but keep functionality */
	scrollbar-width: none;
	/* Firefox */
	-ms-overflow-style: none;
	/* IE and Edge */
}

.left-menu::-webkit-scrollbar {
	display: none;
	/* Chrome, Safari, Opera */
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
	display: none;
	position: fixed;
	top: 16px;
	left: 16px;
	z-index: 1001;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: #1e293b;
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-radius: 8px;
	cursor: pointer;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle:hover {
	background: #334155;
}

.mobile-menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #e2e8f0;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
	opacity: 1;
}

/* Mobile responsive styles for left menu */
@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: flex;
	}

	.mobile-menu-overlay {
		display: block;
	}

	.left-menu {
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		z-index: 1000;
	}

	.left-menu.active {
		transform: translateX(0);
	}
}

.left-menu-title {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 6px 0 14px;
	color: #facc15;
}

.left-menu-logo {
	margin: 0 0 0px 0;
	padding: 0px 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.logo-link {
	display: inline-block;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.logo-link:hover {
	opacity: 0.8;
}

.logo-image {
	height: 50px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
}

.left-menu-list,
.left-menu-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.left-menu-list>li {
	margin: 8px 0;
}

.left-menu a,
.left-menu .submenu-title {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: #cbd5e1;
	font-size: 15px;
	font-weight: 500;
	transition: all 0.2s ease;
	cursor: pointer;
}

.left-menu a:hover,
.left-menu .submenu-title:hover {
	background: rgba(59, 130, 246, 0.15);
	color: #ffffff;
	transform: translateX(3px);
}

/* Active link */
.left-menu a.active,
.left-menu .submenu-title.active {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.25) 100%);
	color: #ffffff;
	font-weight: 600;
	border-left: 3px solid #3b82f6;
}

/* Active state for Create Assets link - higher specificity */
.left-menu .submenu-title.create-assets-link.active,
.left-menu .create-assets-link.active {
	background: rgba(56, 189, 248, 0.35) !important;
	border-left-color: #60a5fa !important;
	color: #f9fafb !important;
	font-weight: 600 !important;
}

.left-menu .create-assets-link.active::before {
	background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%) !important;
}

.left-menu .icon {
	width: 22px;
	min-width: 22px;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.menu-icon-image {
	width: 22px;
	height: 22px;
	min-width: 22px;
	min-height: 22px;
	object-fit: contain;
	display: block;
	vertical-align: middle;
}

.left-menu .label {
	flex: 1;
}

/* Submenu */
.left-menu .has-sub {
	margin-top: 10px;
}

.left-menu .submenu {
	margin-top: 4px;
	margin-left: 12px;
	border-left: 1px solid rgba(148, 163, 184, 0.4);
	padding-left: 6px;
}

.left-menu .submenu li {
	margin: 4px 0;
}

.left-menu .submenu a {
	font-size: 13px;
	padding: 6px 8px;
	border-radius: 999px;
}

/* Create Assets - Distinct styling from games */
.left-menu .create-assets-item {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 2px solid rgba(148, 163, 184, 0.3);
	position: relative;
}

.left-menu .create-assets-item::before {
	content: "Tools";
	position: absolute;
	top: 0;
	left: 10px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #94a3b8;
	background: #050816;
	padding: 0 6px;
	transform: translateY(-50%);
}

.left-menu .create-assets-link {
	position: relative;
	padding-left: 14px;
	border-left: 3px solid #8b5cf6;
	font-weight: 500;
	color: #c4b5fd;
}

.left-menu .create-assets-link::before {
	content: "";
	position: absolute;
	left: -3px;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 60%;
	background: linear-gradient(180deg, #8b5cf6 0%, #6366f1 100%);
	border-radius: 0 2px 2px 0;
}

.left-menu .create-assets-link:hover {
	background: rgba(139, 92, 246, 0.12);
	color: #ddd6fe;
	transform: translateX(2px);
	border-left-color: #a78bfa;
}

.left-menu .create-assets-link .icon {
	font-size: 18px;
}

canvas {
	background: #020617;
	border-radius: 1rem;
	cursor: crosshair;
	max-width: 100%;
	height: auto;
}

/* Make canvas container responsive */
@media (max-width: 768px) {
	canvas {
		width: 100% !important;
		height: auto !important;
	}

	/* Adjust padding for mobile */
	.max-w-5xl {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}

	/* Button spacing on mobile */
	.flex-wrap.gap-3 button {
		font-size: 0.875rem;
		padding: 0.5rem 1rem;
	}

	/* Shape buttons on mobile */
	.flex-wrap.gap-2 button {
		font-size: 0.75rem;
		padding: 0.375rem 0.75rem;
	}
}

.shape-btn.active {
	background-color: rgb(34 211 238);
	color: #020617;
}

.grid-container {
	margin-top: 20px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
}

.grid-container canvas:hover {
	transform: scale(1.05);
	transition: transform 0.2s ease;
}

/* Extension content styling for shoot-anything page */
.extension-content {
	border-radius: 12px;
	padding: 2.5rem 3rem;
	margin: 2rem auto;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(148, 163, 184, 0.1);
}

/* Extension header styling */
.extension-header {
	text-align: center;
	padding: 0 0 2rem 0;
	margin-bottom: 2.5rem;
	border-bottom: 2px solid rgba(56, 189, 248, 0.2);
}

.extension-title {
	font-size: 2.75rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 1rem;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.extension-subtitle {
	font-size: 1.125rem;
	color: #cbd5e1;
	margin-bottom: 2rem;
	line-height: 1.6;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.install-button {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: #ffffff;
	font-size: 1.125rem;
	font-weight: 600;
	padding: 1.125rem 2.25rem;
	border-radius: 10px;
	text-decoration: none;
	transition: all 0.25s ease;
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
	margin-bottom: 1rem;
	border: none;
}

.install-button:hover {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(59, 130, 246, 0.6);
}

.install-button:active {
	transform: translateY(0);
}

.button-icon {
	font-size: 1.25rem;
}

.extension-note {
	font-size: 0.875rem;
	color: #94a3b8;
	margin-top: 0.5rem;
	margin-bottom: 0;
}

.extension-content p {
	color: #e2e8f0;
	line-height: 1.8;
	margin-bottom: 1.25rem;
	font-size: 17px;
	text-align: left;
}

.extension-content h3 {
	color: #ffffff;
	font-size: 1.75rem;
	font-weight: 600;
	margin-top: 2.5rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid rgba(59, 130, 246, 0.4);
	letter-spacing: -0.01em;
}

.extension-content h3:first-of-type {
	margin-top: 0;
}

.extension-content p:first-of-type {
	font-size: 18px;
	font-weight: 500;
	color: #cbd5e1;
	margin-bottom: 1.5rem;
}

.extension-content p br {
	line-height: 2;
}

/* Improve readability for list items */
.extension-content p:has(br) {
	line-height: 2;
}

/* Responsive design */
@media (max-width: 768px) {
	.extension-content {
		padding: 1.5rem 1.5rem;
		margin: 1rem;
	}

	.extension-content h3 {
		font-size: 1.25rem;
	}

	.extension-content p {
		font-size: 15px;
	}

	.extension-title {
		font-size: 1.875rem;
	}

	.extension-subtitle {
		font-size: 1rem;
	}

	.install-button {
		font-size: 1rem;
		padding: 0.875rem 1.5rem;
	}
}

/* Homepage introduction styling */
.homepage-intro {
	border-radius: 12px;
	padding: 0rem;
	margin: 2rem auto;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(148, 163, 184, 0.1);
}

.intro-title {
	font-size: 2.75rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 0.75rem;
	text-align: center;
	text-shadow: 0 2px 12px rgba(59, 130, 246, 0.4);
	letter-spacing: -0.02em;
}

.intro-subtitle {
	font-size: 1.625rem;
	color: #cbd5e1;
	text-align: center;
	margin-bottom: 3.5rem;
	font-weight: 400;
	line-height: 1.6;
}

.intro-content {
	margin: 0 auto;
}

.intro-paragraph {
	color: #e2e8f0;
	line-height: 1.85;
	margin-bottom: 1.75rem;
	font-size: 17px;
	text-align: left;
}

.intro-paragraph strong {
	color: #facc15;
	font-weight: 600;
}

.intro-section-title {
	color: #ffffff;
	font-size: 2rem;
	font-weight: 600;
	margin-top: 3rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid rgba(59, 130, 246, 0.4);
	letter-spacing: -0.01em;
}

.intro-cta {
	text-align: center;
	margin-top: 3rem;
	padding: 2rem;
	background: rgba(56, 189, 248, 0.1);
	border-radius: 12px;
	border: 1px solid rgba(56, 189, 248, 0.2);
}

.cta-button {
	display: inline-block;
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 600;
	padding: 1.125rem 2.5rem;
	border-radius: 10px;
	text-decoration: none;
	transition: all 0.25s ease;
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
	margin-bottom: 1rem;
	border: none;
}

.cta-button:hover {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(59, 130, 246, 0.6);
}

.cta-note {
	font-size: 0.875rem;
	color: #94a3b8;
	margin-top: 0.5rem;
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.homepage-intro {
		padding: 2rem 1.5rem;
		margin: 1rem;
	}

	.intro-title {
		font-size: 2rem;
	}

	.intro-subtitle {
		font-size: 1.25rem;
	}

	.intro-section-title {
		font-size: 1.5rem;
	}

	.cta-button {
		font-size: 1.125rem;
		padding: 0.875rem 2rem;
	}
}