/**
 * Stunning Premium Glassmorphism Theme for Nail Palette Studio Frontend.
 */

.nps-studio {
	--nps-studio-bg: #09090b;
	--nps-studio-card: rgba(18, 18, 22, 0.6);
	--nps-studio-border: rgba(255, 255, 255, 0.08);
	--nps-studio-primary: #a855f7;
	--nps-studio-primary-glow: rgba(168, 85, 247, 0.4);
	--nps-studio-text: #f4f4f5;
	--nps-studio-muted: #a1a1aa;
	--nps-studio-pinterest: #e60023;
	
	background: var(--nps-studio-bg);
	border: 1px solid var(--nps-studio-border);
	border-radius: 24px;
	padding: 30px;
	color: var(--nps-studio-text);
	font-family: 'Outfit', sans-serif !important;
	position: relative;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0,0,0,0.6);
	max-width: 1100px;
	margin: 20px auto;
}

/* Glass background lighting glows */
.nps-glass-glow-effect {
	position: absolute;
	top: -150px;
	right: -150px;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
	pointer-events: none;
	z-index: 1;
}

.nps-studio-header {
	position: relative;
	z-index: 2;
	border-bottom: 1px solid var(--nps-studio-border);
	padding-bottom: 20px;
	margin-bottom: 24px;
}

.nps-title-block {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nps-studio-logo {
	font-size: 36px;
}

.nps-title-block h2 {
	color: #fff !important;
	font-size: 24px !important;
	font-weight: 800 !important;
	margin: 0 !important;
	letter-spacing: -0.5px;
}

.nps-title-block p {
	margin: 4px 0 0 0 !important;
	color: var(--nps-studio-muted) !important;
	font-size: 13px !important;
	font-weight: 500;
}

/* Studio layout structures */
.nps-studio-body {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 30px;
	position: relative;
	z-index: 2;
}

/* Sidebar styling controls */
.nps-studio-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.nps-sidebar-section {
	background: var(--nps-studio-card);
	border: 1px solid var(--nps-studio-border);
	border-radius: 16px;
	padding: 18px;
	backdrop-filter: blur(20px);
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nps-sidebar-section h3 {
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	margin: 0 0 12px 0 !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.nps-select-field {
	background: #18181b !important;
	border: 1px solid var(--nps-studio-border) !important;
	color: #fff !important;
	border-radius: 10px !important;
	padding: 10px 14px !important;
	font-size: 14px !important;
	width: 100%;
	outline: none;
	cursor: pointer;
	box-shadow: none !important;
}

.nps-select-field:focus {
	border-color: var(--nps-studio-primary) !important;
	box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2) !important;
}

/* Swatches color grids */
.nps-swatches-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	margin-bottom: 15px;
}

.nps-swatch-item {
	aspect-ratio: 1/1;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.08);
	cursor: pointer;
	position: relative;
	transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nps-swatch-item:hover {
	transform: scale(1.15);
	border-color: #fff;
	box-shadow: 0 0 12px rgba(255,255,255,0.2);
}

.nps-swatch-item.active {
	transform: scale(1.1);
	border-color: var(--nps-studio-primary);
	box-shadow: 0 0 15px var(--nps-studio-primary-glow);
}

.nps-swatch-item.active:after {
	content: "✓";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Swatch names tooltips */
.nps-swatch-item[title]:hover:after {
	content: attr(title);
	position: absolute;
	bottom: 120%;
	left: 50%;
	transform: translateX(-50%);
	background: #18181b;
	color: #fff;
	font-size: 10px;
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
	border: 1px solid var(--nps-studio-border);
	box-shadow: 0 4px 10px rgba(0,0,0,0.5);
	z-index: 999;
}

/* Custom pickers */
.nps-custom-color-row {
	display: flex;
	gap: 10px;
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding-top: 12px;
}

.nps-custom-color-picker {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	flex: 1;
}

.nps-custom-color-picker input[type="color"] {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--nps-studio-border);
	overflow: hidden;
	cursor: pointer;
	background: transparent;
	padding: 0;
}

.nps-custom-color-picker label {
	color: var(--nps-studio-muted);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.nps-text-input {
	background: #18181b !important;
	border: 1px solid var(--nps-studio-border) !important;
	color: #fff !important;
	border-radius: 8px !important;
	padding: 6px 10px !important;
	font-size: 12px !important;
	font-family: monospace;
	width: 90px;
	text-transform: uppercase;
}

/* Accent select switches */
.nps-accent-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nps-accent-header h3 {
	margin: 0 !important;
}

.nps-toggle-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 20px;
}

.nps-toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.nps-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0; left: 0; right: 0; bottom: 0;
	background-color: #27272a;
	transition: .3s;
	border-radius: 20px;
}

.nps-toggle-slider:before {
	position: absolute;
	content: "";
	height: 14px;
	width: 14px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .3s;
	border-radius: 50%;
}

input:checked + .nps-toggle-slider {
	background-color: var(--nps-studio-primary);
}

input:checked + .nps-toggle-slider:before {
	transform: translateX(24px);
}

.nps-accent-body {
	margin-top: 10px;
	display: none;
	animation: nps-slide-down 0.25s ease-out;
}

@keyframes nps-slide-down {
	from { opacity: 0; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}

.nps-section-note {
	font-size: 12px;
	color: var(--nps-studio-muted);
	margin: 0 0 10px 0 !important;
	line-height: 1.3;
}

.nps-finger-buttons-row {
	display: flex;
	gap: 6px;
}

.nps-finger-btn {
	flex: 1;
	background: #18181b !important;
	border: 1px solid var(--nps-studio-border) !important;
	color: var(--nps-studio-muted) !important;
	padding: 8px 0 !important;
	border-radius: 8px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.nps-finger-btn:hover {
	color: #fff !important;
	background: rgba(255,255,255,0.03) !important;
}

.nps-finger-btn.active {
	background: var(--nps-studio-primary) !important;
	color: #fff !important;
	border-color: var(--nps-studio-primary) !important;
	box-shadow: 0 2px 8px var(--nps-studio-primary-glow);
}

/* Finish Styles Card Grids */
.nps-finish-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.nps-finish-btn {
	background: #18181b !important;
	border: 1px solid var(--nps-studio-border) !important;
	color: var(--nps-studio-muted) !important;
	border-radius: 10px !important;
	padding: 10px 8px !important;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: flex-start;
}

.nps-finish-btn:hover {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.15) !important;
}

.nps-finish-btn.active {
	background: rgba(168, 85, 247, 0.08) !important;
	border-color: var(--nps-studio-primary) !important;
	color: #fff !important;
	box-shadow: 0 4px 10px rgba(168, 85, 247, 0.15);
}

.finish-pill-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

.dot-glossy { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.dot-matte { background: #94a3b8; }
.dot-chrome { background: #f472b6; box-shadow: 0 0 6px #f472b6; }
.dot-jelly { background: #34d399; box-shadow: 0 0 6px #34d399; }
.dot-velvet { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }

.finish-title {
	font-size: 12px;
	font-weight: 600;
}

/* Studio Canvas Preview spaces */
.nps-studio-preview {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.nps-canvas-container {
	background: #000;
	border: 1px solid var(--nps-studio-border);
	border-radius: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	height: 480px;
	box-shadow: inset 0 0 50px rgba(0,0,0,0.9);
	position: relative;
}

.nps-canvas-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.nps-canvas-wrapper canvas {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	z-index: 2;
}

.nps-canvas-loader {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.85);
	backdrop-filter: blur(10px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 15px;
	z-index: 10;
	transition: opacity 0.3s ease;
}

.nps-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(168, 85, 247, 0.1);
	border-top-color: var(--nps-studio-primary);
	border-radius: 50%;
	animation: nps-spin 1s infinite linear;
	box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

@keyframes nps-spin {
	to { transform: rotate(360deg); }
}

.nps-canvas-loader p {
	color: var(--nps-studio-text);
	font-size: 14px;
	font-weight: 500;
	margin: 0 !important;
}

/* Colors Footer bar */
.nps-colors-footer-bar {
	background: var(--nps-studio-card);
	border: 1px solid var(--nps-studio-border);
	border-radius: 16px;
	padding: 12px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 15px;
	backdrop-filter: blur(20px);
}

.nps-active-color-swatches {
	display: flex;
	gap: 8px;
}

.nps-footer-swatch-pill {
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--nps-studio-border);
	padding: 4px 8px;
	border-radius: 50px;
	font-size: 11px;
	font-weight: 600;
}

.nps-footer-swatch-pill span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

/* Detailed Description AI section footer */
.nps-studio-footer-details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-top: 30px;
	border-top: 1px solid var(--nps-studio-border);
	padding-top: 30px;
	position: relative;
	z-index: 2;
}

.nps-footer-aesthetic-block {
	background: var(--nps-studio-card);
	border: 1px solid var(--nps-studio-border);
	border-radius: 20px;
	padding: 24px;
	backdrop-filter: blur(20px);
}

.nps-aesthetic-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(168, 85, 247, 0.1);
	border: 1px solid rgba(168, 85, 247, 0.2);
	color: #d8b4fe;
	padding: 6px 14px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 16px;
}

.nps-footer-aesthetic-block h3 {
	color: #fff !important;
	font-size: 20px !important;
	font-weight: 800 !important;
	margin: 0 0 6px 0 !important;
}

.nps-aesthetic-tagline {
	color: var(--nps-studio-primary) !important;
	font-size: 13px !important;
	font-weight: 600;
	margin: 0 0 12px 0 !important;
}

.nps-aesthetic-desc {
	color: var(--nps-studio-muted);
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 20px 0 !important;
}

.nps-matching-suggestions h4 {
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	margin: 0 0 10px 0 !important;
}

.nps-suggested-dots-row {
	display: flex;
	gap: 10px;
}

.nps-suggested-dot-wrapper {
	text-align: center;
	cursor: pointer;
}

.nps-suggested-dot {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	margin: 0 auto 4px auto;
	border: 1.5px solid rgba(255,255,255,0.1);
	transition: transform 0.2s;
}

.nps-suggested-dot-wrapper:hover .nps-suggested-dot {
	transform: scale(1.15);
}

.nps-suggested-dot-wrapper span {
	font-size: 10px;
	color: var(--nps-studio-muted);
	display: block;
}

/* AI Copilot Panel */
.nps-footer-ai-block {
	background: rgba(168, 85, 247, 0.02);
	border: 1px solid var(--nps-studio-border);
	border-radius: 20px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.nps-ai-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.2));
	border: 1px solid rgba(168, 85, 247, 0.2);
	color: #e9d5ff;
	padding: 6px 14px;
	border-radius: 50px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.ai-sparkle {
	color: #fbbf24;
	animation: nps-sparkle 1.5s infinite;
}

@keyframes nps-sparkle {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 1; }
}

#nps-ai-caption-text {
	color: #fff !important;
	font-family: inherit;
	font-size: 15px !important;
	line-height: 1.5 !important;
	font-style: italic;
	font-weight: 500;
	margin: 0 0 10px 0 !important;
	border: none !important;
	padding: 0 !important;
	background: transparent !important;
}

.nps-ai-tags {
	color: var(--nps-studio-primary);
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 20px;
}

.nps-ai-actions {
	display: flex;
	gap: 10px;
}

.nps-action-btn-ai {
	background: linear-gradient(135deg, var(--nps-studio-primary), #6366f1) !important;
	border: none !important;
	color: #fff !important;
	border-radius: 10px !important;
	padding: 10px 18px !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.nps-action-btn-ai:hover {
	box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4);
	transform: translateY(-1px);
}

.nps-action-btn-ai.loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Exports toolbar footer */
.nps-exports-toolbar {
	background: linear-gradient(135deg, #121215, #09090b);
	border: 1px solid var(--nps-studio-border);
	border-radius: 20px;
	padding: 20px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 30px;
	position: relative;
	z-index: 2;
}

.exports-meta h4 {
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	margin: 0 0 4px 0 !important;
}

.exports-meta p {
	margin: 0 !important;
	color: var(--nps-studio-muted) !important;
	font-size: 12px !important;
}

.exports-buttons-row {
	display: flex;
	gap: 12px;
}

/* Custom visual buttons classes */
.nps-action-btn-primary {
	background: var(--nps-studio-primary) !important;
	border: 1px solid var(--nps-studio-primary) !important;
	color: #fff !important;
	border-radius: 10px !important;
	padding: 12px 24px !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	cursor: pointer;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

.nps-action-btn-primary:hover {
	background: #c084fc !important;
	box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
	transform: translateY(-1px);
}

.nps-action-btn-secondary {
	background: transparent !important;
	border: 1px solid var(--nps-studio-border) !important;
	color: var(--nps-studio-text) !important;
	border-radius: 10px !important;
	padding: 10px 18px !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	cursor: pointer;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nps-action-btn-secondary:hover {
	background: rgba(255,255,255,0.03) !important;
	border-color: rgba(255,255,255,0.2) !important;
}

.nps-action-btn-pinterest {
	background: var(--nps-studio-pinterest) !important;
	border: 1px solid var(--nps-studio-pinterest) !important;
	color: #fff !important;
	border-radius: 10px !important;
	padding: 12px 24px !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	cursor: pointer;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 4px 15px rgba(230, 0, 35, 0.25);
}

.nps-action-btn-pinterest:hover {
	background: #ff1a3c !important;
	box-shadow: 0 6px 20px rgba(230, 0, 35, 0.35);
	transform: translateY(-1px);
}

/* Gradient Mode & Presets UI Elements */
.nps-mode-btn:hover {
	color: #fff !important;
	background: rgba(255,255,255,0.02) !important;
}
.nps-mode-btn.active:hover {
	background: var(--nps-studio-primary) !important;
}
.nps-gradient-item:hover {
	transform: scale(1.15);
	border-color: #fff !important;
	box-shadow: 0 0 12px rgba(255,255,255,0.2) !important;
}
.nps-gradient-item.active {
	transform: scale(1.1);
	border-color: var(--nps-studio-primary) !important;
	box-shadow: 0 0 15px var(--nps-studio-primary-glow) !important;
	position: relative;
}
.nps-gradient-item.active:after {
	content: "✓";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.nps-gradient-item[title]:hover:after {
	content: attr(title);
	position: absolute;
	bottom: 120%;
	left: 50%;
	transform: translateX(-50%);
	background: #18181b;
	color: #fff;
	font-size: 10px;
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
	border: 1px solid var(--nps-studio-border);
	box-shadow: 0 4px 10px rgba(0,0,0,0.5);
	z-index: 999;
}

/* Mobile Responsiveness media queries */
@media (max-width: 900px) {
	.nps-studio {
		padding: 20px;
	}
	.nps-studio-body {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.nps-studio-footer-details {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-top: 20px;
		padding-top: 20px;
	}
	.nps-exports-toolbar {
		flex-direction: column;
		gap: 15px;
		align-items: flex-start;
		padding: 16px;
		margin-top: 20px;
	}
	.exports-buttons-row {
		width: 100%;
	}
	.exports-buttons-row button {
		flex: 1;
		justify-content: center;
	}
}
