﻿.custom-alert-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	backdrop-filter: blur(2px);
}

.custom-alert-box {
	background: #fff;
	border-radius: 12px;
	padding: 24px 28px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.25);
	text-align: center;
	max-width: 320px;
	width: 90%;
	animation: popIn 0.25s ease-out;
}

	.custom-alert-box h3 {
		margin-top: 0;
		font-size: 1.2rem;
		color: #333;
	}

	.custom-alert-box p {
		margin: 12px 0 18px;
		font-size: 1rem;
		color: #555;
	}

	.custom-alert-box button {
		background: #007bff;
		color: white;
		border: none;
		padding: 8px 18px;
		border-radius: 8px;
		cursor: pointer;
		font-weight: 500;
	}

		.custom-alert-box button:hover {
			background: #0069d9;
		}

@keyframes popIn {
	from {
		transform: scale(0.9);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

body {
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #ffffff;
	
}

/* Overlay that covers whole screen and applies blur */
.loading-overlay {
	position: fixed;
	inset: 0; /* top:0; right:0; bottom:0; left:0; */
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	background: rgba(3,8,18,0.55); /* dark translucent fallback */
	backdrop-filter: blur(6px); /* nice blur on supported browsers */
	-webkit-backdrop-filter: blur(6px);
	transition: opacity .18s ease;
}

/* Card that holds spinner + text */
.loading-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 18px 22px;
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
	border: 1px solid rgba(255,255,255,0.04);
	box-shadow: 0 10px 30px rgba(2,6,23,0.6);
	min-width: 220px;
	text-align: center;
}

/* Spinner */
.spinner {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 6px solid rgba(255,255,255,0.08); /* base track */
	border-top-color: rgba(94,234,212,1); /* accent segment */
	border-right-color: rgba(94,234,212,0.45);
	animation: spin 0.95s linear infinite;
	box-sizing: border-box;
}

/* Loading text style */
.loading-text {
	margin: 0;
	font-size: 14px;
	color: #dbeafe; /* light text */
	font-weight: 600;
}

/* Spinner keyframes */
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Small-screen tweaks */
@media (max-width:540px) {
	.loading-card {
		padding: 14px;
		min-width: 170px;
	}

	.spinner {
		width: 46px;
		height: 46px;
		border-width: 5px;
	}

	.loading-text {
		font-size: 13px;
	}
}
.container {
}
.loading-subtext {
	font-size: 13px;
	color: #9ca3af;
	margin: 0 0 8px;
	line-height: 1.4;
}

/* Actions row */
.loading-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 6px;
	width: 100%;
}

/*dd*/
/* Overlay covers full screen */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

/* Dialog box */
.modal-dialog {
	width: 92%;
	max-height: 88vh;
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	z-index: 1401;
	pointer-events: auto;
	box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

/* Optional smooth entrance animation */
@keyframes popup {
	from {
		transform: scale(0.95);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

/* Responsive tweaks */
@media (max-width: 600px) {
	.modal-dialog {
		width: 96%;
		height: 60vh;
	}
}

/*dd*/
/* My Creation link */
.loading-link {
	display: block;
	background: linear-gradient(135deg, rgba(59,130,246,1), rgba(37,99,235,1));
	color: #fff;
	text-decoration: none;
	text-align: center;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.25s ease;
	box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

	.loading-link:hover {
		background: linear-gradient(135deg, rgba(37,99,235,1), rgba(59,130,246,1));
		transform: translateY(-1px);
		box-shadow: 0 4px 12px rgba(37,99,235,0.4);
	}

/* Close button */
.loading-close-btn {
	background: transparent;
	color: #9ca3af;
	border: 1px solid rgba(255,255,255,0.1);
	padding: 7px 12px;
	border-radius: 8px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.25s ease;
}

	.loading-close-btn:hover {
		color: #e5e7eb;
		border-color: rgba(255,255,255,0.2);
	}

/* Fade out */
.loading-overlay.hide {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

/* Mobile adjustments */
@media (max-width:540px) {
	.loading-actions {
		gap: 6px;
	}
}

.left-panel {
	width: 100%;
	background: rgba(0, 0, 0, 0.8);
	border-right: 1px solid #333;
	padding: 24px;
	overflow-y: auto;
}

.right-panel {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(45deg, #2d1810, #4a3020);
	position: relative;
}

.header {
	margin-bottom: 32px;
}

.title {
	font-size: 24px;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 8px;
}

.section {
	margin-bottom: 32px;
}

.section-title {
	font-size: 16px;
	font-weight: 500;
	color: #ffffff;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 8px;ss
}

.upload-area {
	border-radius: 12px;
	padding: 48px 24px;
	text-align: center;
	background: rgba(255, 255, 255, 0.02);
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

	.upload-area:hover {
		border-color: #666;
		background: rgba(255, 255, 255, 0.05);
	}

	.upload-area.dragover {
		border-color: #8b5cf6;
		background: rgba(139, 92, 246, 0.1);
	}

.upload-icon {
	font-size: 48px;
	color: #666;
	margin-bottom: 16px;
}

.upload-text {
	color: #888;
	font-size: 16px;
	margin-bottom: 16px;
}

.file-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.sample-button {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid #444;
	border-radius: 8px;
	padding: 12px 16px;
	color: #ccc;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	transition: all 0.3s ease;
	margin-bottom: 16px;
}

	.sample-button:hover {
		background: rgba(255, 255, 255, 0.15);
		border-color: #666;
	}

.sample-gallery {
	position: fixed;
	top: 0;
	left: 0%;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.gallery-container {
	background: rgba(20, 20, 20, 0.95);
	border-radius: 20px;
	padding: 32px;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
	border: 1px solid #333;
}

.gallery-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #333;
}

.gallery-title {
	font-size: 20px;
	font-weight: 600;
	color: #fff;
}

.close-gallery {
	background: none;
	border: none;
	color: #888;
	font-size: 24px;
	cursor: pointer;
	padding: 8px;
	border-radius: 8px;
	transition: all 0.3s ease;
}

	.close-gallery:hover {
		background: rgba(255, 255, 255, 0.1);
		color: #fff;
	}

.sample-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}
.sample-image {
	border-radius: 20px;
	padding: 4px;
	background: #1B1B1B !important;
}

.sample-item {
	border-radius: 22px !important;
}

.sample-item {
	background: rgba(30, 30, 30, 0.8);
	border: 2px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
}

	.sample-item:hover {
		border-color: #8b5cf6;
		transform: translateY(-2px);
		box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
	}

.sample-image {
	width: 100%;
	height: 300px;
	object-fit: cover;
	background: linear-gradient(135deg, #333, #555);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	font-size: 12px;
}



.sample-item.no-examples .sample-image {
	background: rgba(40, 40, 40, 0.8);
	border: 2px dashed #555;
}

.dropdown {
	position: relative;
}

.dropdown-toggle {
	background: rgba(30, 30, 30, 0.9);
	border: 1px solid #444;
	border-radius: 8px;
	padding: 12px 16px;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	transition: all 0.3s ease;
	width: 160px;
}

	.dropdown-toggle:hover {
		border-color: #666;
	}

.ai-badge {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ai-icon {
	width: 20px;
	height: 20px;
	background: linear-gradient(135deg, #ff6b6b, #feca57);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: white;
	font-weight: bold;
}
/* Bottom gradient overlay */
.sample-item::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 45%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Title text like “Riley”, “Lena” */
.sample-label {
	position: absolute;
	bottom: 8px;
	left: 12px;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
	z-index: 2;
}

.textarea {
	width: 100%;
	background: rgba(30, 30, 30, 0.8);
	border: 1px solid #444;
	border-radius: 8px;
	padding: 16px;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
	resize: vertical;
	min-height: 120px;
	font-family: inherit;
}

	.textarea:focus {
		outline: none;
		border-color: #8b5cf6;
		box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
	}

.improve-button {
	background: transparent;
	border: none;
	color: #888;
	font-size: 13px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	transition: color 0.3s ease;
}

	.improve-button:hover {
		color: #ccc;
	}

.quality-options {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 16px;
}

.quality-option {
	background: rgba(30, 30, 30, 0.8);
	border: 1px solid #444;
	border-radius: 6px;
	padding: 8px 12px;
	text-align: center;
	color: #ccc;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.3s ease;
}

	.quality-option.active {
		background: rgba(255, 255, 255, 0.1);
		border-color: #8b5cf6;
		color: #fff;
	}

	.quality-option:hover {
		border-color: #666;
	}

.credits-info {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #ccc;
	font-size: 14px;
	margin-bottom: 24px;
}

.credits-icon {
	color: #4ade80;
}

.create-button {
	width: 100%;
	background: linear-gradient(135deg, #8b5cf6, #a855f7);
	border: none;
	border-radius: 12px;
	padding: 16px;
	color: white;
	font-size: 22px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: none;
}

	.create-button:hover {
		transform: translateY(-1px);
		box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
	}

	.create-button:active {
		transform: translateY(0);
	}

.preview-image {
	max-width: 90%;
	max-height: 90%;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
	transition: all 0.3s ease;
}

.floating-particles {
	position: absolute;
	width: 6px;
	height: 6px;
	background: rgba(255, 165, 0, 0.6);
	border-radius: 50%;
	animation: float 6s infinite ease-in-out;
}

	.floating-particles:nth-child(1) {
		top: 20%;
		left: 10%;
		animation-delay: 0s;
	}

	.floating-particles:nth-child(2) {
		top: 60%;
		right: 15%;
		animation-delay: 2s;
	}

	.floating-particles:nth-child(3) {
		top: 40%;
		left: 20%;
		animation-delay: 4s;
	}



50% {
	transform: translateY(-20px) rotate(180deg);
	opacity: 1;
}



.loading {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
}

.spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top: 3px solid #8b5cf6;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 16px;
}



100% {
	transform: rotate(360deg);
}