
	/* AI Creator Styles */
.ai-creator-container {
	max-width: 800px;
	margin: 20px auto;
	background-color: var(--foreground);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid var(--grey-border);
}

#createAiPage h2 {
	color: var(--color1);
	margin-bottom: 25px;
	text-align: center;
	font-size: 1.8rem;
}

#createAiPage h2 i {
	margin-right: 10px;
	vertical-align: middle;
}

/* Stepper */
.stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 40px;
	flex-grow: 1;
	flex-wrap: wrap;
	gap: 10px;
}

.step {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #666; /* Dimmed color for inactive steps */
	font-size: 0.9rem;
	text-align: center;
	position: relative;
	flex-shrink: 0; /* Prevent steps from shrinking */
}

.step span {
	display: inline-block;
	width: 30px;
	height: 30px;
	line-height: 30px;
	border-radius: 50%;
	background-color: #444; /* Darker grey for inactive step number */
	color: #888;
	margin-bottom: 8px;
	font-weight: bold;
	cursor: pointer;
}

.step.active span {
	background-color: var(--color1);
	color: white;
}

.step.active {
	color: var(--text-color); /* Active step text color */
	font-weight: bold;
}

.step-line {
	flex-grow: 1;
	height: 2px;
	background-color: #444; /* Line color */
	margin: 0 10px; /* Space between line and steps */
	/* Position below the number circle */
	position: relative;
	top: -24px; /* Adjust based on step span height and desired alignment */
	z-index: -1; /* Place behind step text */
}

/* Form Steps */
.form-step {
	display: none;
}

.form-step.active {
	display: block;
}

.form-step h3 {
	color: var(--color1);
	margin-top: 30px;
	margin-bottom: 20px;
	font-size: 1.3rem;
	border-bottom: 1px solid var(--grey-border);
	padding-bottom: 10px;
}

.style-heading-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.style-heading-row h3 {
	flex: 1 1 auto;
	margin-right: 0;
}

.gender-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	margin-top: 30px;
}

.gender-toggle-btn {
	width: 42px;
	height: 42px;
	padding: 0;
	box-sizing: border-box;
	border-radius: 999px;
	border: 2px solid transparent;
	background-color: #2a2a2a;
	color: rgba(255, 255, 255, 0.82);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition:
		transform 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease,
		box-shadow 0.15s ease;
}

.gender-toggle-btn i {
	font-size: 24px;
	line-height: 1;
	display: block;
	transform: translateY(0);
	opacity: 1;
}

.gender-toggle-btn:hover {
	transform: translateY(-1px);
	border-color: #555;
}

.gender-toggle-btn[data-gender="Female"] {
	color: rgba(247, 42, 141, 0.98);
}

.gender-toggle-btn[data-gender="Male"] {
	color: rgba(70, 123, 239, 0.98);
}

.gender-toggle-btn:not(.active) {
	color: rgba(255, 255, 255, 0.72);
}

.gender-toggle-btn.active {
	color: var(--color1);
	border-color: var(--color1);
	box-shadow: 0 0 0 2px rgba(245, 75, 115, 0.14);
}

/* Choice Grids (for images) */
.choice-grid {
	display: grid;
	gap: 20px;
	margin-bottom: 30px;
}

/* Mobile Fixes for AI Creator */
@media (max-width: 600px) {
	.ai-creator-container {
		padding: 20px 10px;
		margin: 10px;
		border-radius: 8px;
	}

	#createAiPage h2 {
		font-size: 1.4rem;
		margin-bottom: 20px;
	}

	.stepper {
		flex-wrap: nowrap;
		gap: 0;
		margin-bottom: 25px;
		justify-content: space-between;
		padding: 0;
	}

	.step {
		font-size: 0.6rem;
		flex: 1;
		min-width: 0; /* Allow shrinking */
		white-space: nowrap;
	}

	.step span {
		width: 22px;
		height: 22px;
		line-height: 22px;
		font-size: 0.75rem;
		margin-bottom: 4px;
	}

	.step-line {
		display: none; /* Hide lines on mobile to save space */
	}

	.form-step h3 {
		font-size: 1.1rem;
		margin-top: 15px;
	}

	.style-heading-row {
		align-items: flex-start;
		gap: 8px;
	}

	.gender-toggle {
		margin-top: 15px;
		gap: 6px;
	}

	.gender-toggle-btn {
		width: 36px;
		height: 36px;
	}

	.gender-toggle-btn i {
		font-size: 20px;
	}

	.form-navigation {
		margin-top: 25px;
		padding-top: 20px;
		flex-direction: row; /* Keep side-by-side but smaller */
		gap: 10px;
	}

	.form-navigation button {
		padding: 8px 15px;
		font-size: 0.9rem;
		flex: 1;
	}

	.banner-div {
		padding: 20px 15px;
		margin-top: 20px;
	}

	.banner-div .step {
		font-size: 14px !important;
	}
}


.choice-grid.two-cols {
	grid-template-columns: repeat(2, 1fr);
}

.choice-grid.five-cols {
	/* Adjust minmax for smaller cards */
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.choice-card {
	display: block;
	background-color: #2a2a2a; /* Slightly lighter background for cards */
	border-radius: 8px;
	padding: 10px;
	text-align: center;
	cursor: pointer;
	border: 2px solid transparent;
	transition:
		border-color 0.2s,
		transform 0.2s;
	position: relative;
}

.choice-card img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin-bottom: 10px;
	display: block;
}

.choice-card .choice-placeholder {
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 6px;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: 1px dashed rgba(255, 255, 255, 0.14);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18)),
		#2f2f2f;
}

.choice-card .choice-placeholder.female {
	background:
		linear-gradient(180deg, rgba(245, 75, 115, 0.2), rgba(0, 0, 0, 0.18)),
		#302b30;
}

.choice-card .choice-placeholder.male {
	background:
		linear-gradient(180deg, rgba(83, 163, 255, 0.22), rgba(0, 0, 0, 0.18)),
		#2a2f38;
}

.choice-card input[type="radio"] {
	display: none; /* Hide the actual radio button */
}

.choice-card .choice-label {
	display: block;
	color: var(--text-color);
	font-weight: 500;
}

.choice-card:hover {
	border-color: #555;
	transform: translateY(-3px);
}

.choice-card input[type="radio"]:checked + img + .choice-label,
.choice-card input[type="radio"]:checked + .choice-placeholder + .choice-label {
	color: var(--color1);
}

/* Apply border to the label when checked */
:has(> input[type="radio"]:checked).choice-card {
	border-color: var(--color1);
}

/* Disabled State for Cards */
.choice-card.disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.choice-card.disabled:hover {
	border-color: transparent;
	transform: none;
}

.choice-card.disabled .choice-label i {
	margin-right: 5px;
	color: #aaa; /* Grey out lock icon */
}

/* Choice Pills (for text options) */
.choice-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
}

.choice-pills label {
	background-color: #333;
	color: var(--text-color);
	padding: 8px 15px;
	border-radius: 20px;
	cursor: pointer;
	transition:
		background-color 0.2s,
		color 0.2s;
	display: inline-flex; /* Align items */
	align-items: center;
	font-size: 0.9rem;
}

.choice-pills input[type="radio"] {
	display: none; /* Hide radio */
}

.choice-pills label:hover {
	background-color: #444;
}


/* Style the label when its radio is checked */
:has(> input[type="radio"]:checked).choice-pills label,
.choice-pills label:has(input[type="radio"]:checked) {
	background-color: var(--color1);
	color: white;
	font-weight: bold;
}

/* Disabled Pills */
.choice-pills label.disabled {
	background-color: #2a2a2a;
	color: #666;
	cursor: not-allowed;
	opacity: 0.7;
}

.choice-pills label.disabled i {
	margin-left: 5px;
}

.choice-pills label.disabled:hover {
	background-color: #2a2a2a;
}

/* Color Swatches */
.color-swatch {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	margin-right: 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	vertical-align: middle;
}

.eye-colors .brown,
.hair-colors .brown {
	background-color: #964b00;
}
.eye-colors .blue,
.hair-colors .blue {
	background-color: #007bff;
}
.eye-colors .green,
.hair-colors .green {
	background-color: #28a745;
}
.hair-colors .blonde {
	background-color: #f5e0a0;
}
.hair-colors .brunette {
	background-color: #a56a44;
}
.hair-colors .black {
	background-color: #222;
}
.hair-colors .red {
	background-color: #dc3545;
}
.hair-colors .pink {
	background-color: #e83e8c;
}

/* Text Inputs & Textarea */
.form-step .form-group {
	margin-bottom: 20px;
}

.form-step .form-group label {
	display: block;
	margin-bottom: 8px;
	color: #ccc;
	font-weight: 500;
}

.form-step .form-group input[type="text"],
.form-step .form-group textarea {
	width: 100%;
	padding: 12px;
	background-color: #2b2b2b;
	border: 1px solid #444;
	border-radius: 6px;
	color: var(--text-color);
	font-size: 1rem;
}

.form-step .form-group input[type="text"]:focus,
.form-step .form-group textarea:focus {
	outline: none;
	border-color: var(--color1);
	box-shadow: 0 0 0 2px rgba(245, 75, 115, 0.3);
}

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

/* Button Styles */
button.outline {
	background-color: transparent;
	border: 2px solid var(--color1);
	color: var(--color1);
	transition: all 0.2s ease;
}

button.outline:hover {
	background-color: var(--color1);
	color: white;
	box-shadow: 0 0 15px rgba(245, 75, 115, 0.4);
}

button.outline.disabled {
	border-color: #444 !important;
	color: #666 !important;
	cursor: not-allowed;
	pointer-events: none;
}

/* Navigation Buttons */
.form-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 40px;
	border-top: 1px solid var(--grey-border);
	padding-top: 30px;
	gap: 15px;
}

#nextBtnCreateChar, #createWaifuBtnSubmit {
	margin-left: auto;
}

.banner-div {
	padding: 30px 20px;
	border-radius: 12px;
	border: 2px solid var(--color1);
	background-color: rgba(245, 75, 115, 0.15);
	color: white;
	margin-top: 30px;
	text-align: center;
	transition: transform 0.2s ease, background-color 0.2s ease;
	cursor: pointer;
}

.banner-div:hover {
	background-color: rgba(245, 75, 115, 0.25);
	transform: translateY(-2px);
}

.import-subtext {
	color: #aaa;
	font-size: 12px;
	text-align: center;
	margin-top: 12px;
	display: block;
}

.prev-btn:hover {
	background-color: #555;
}

.next-btn:hover,
.submit-btn:hover {
	background-color: #ff45a3; /* Lighter pink on hover */
}
