/**
 * Card Customizer Application Styling
 *
 * @package DigitalCardAndBand
 * @author  Farhan
 */

.dcb-customizer-app {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #0f172a;
}

/* Header */
.dcb-customizer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 16px;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 20px;
}

.dcb-back-link {
	font-size: 13px;
	font-weight: 600;
	color: #0284c7;
	text-decoration: none;
	display: inline-block;
	margin-bottom: 4px;
}

.dcb-customizer-header h1 {
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 4px 0;
	letter-spacing: -0.4px;
}

.dcb-customizer-sub {
	font-size: 14px;
	color: #64748b;
	margin: 0;
}

.dcb-customizer-top-actions {
	display: flex;
	gap: 10px;
}

.dcb-btn-secondary {
	padding: 10px 18px;
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.dcb-btn-secondary:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.dcb-btn-primary {
	padding: 10px 20px;
	background: #0284c7;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.dcb-btn-primary:hover {
	background: #0369a1;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* 2-Column Workspace */
.dcb-customizer-workspace {
	display: grid;
	grid-template-columns: 1fr 480px;
	gap: 40px;
	align-items: flex-start;
}

@media (max-width: 991px) {
	.dcb-customizer-workspace {
		grid-template-columns: 1fr;
	}
}

/* Left Stage */
.dcb-customizer-stage {
	position: sticky;
	top: 40px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 50px 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 420px;
}

.dcb-stage-card-wrapper {
	margin: 0 auto;
}

.dcb-stage-hints {
	margin-top: 24px;
	font-size: 13px;
	color: #64748b;
	font-weight: 500;
}

/* Right Sidebar Controls */
.dcb-customizer-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dcb-ctrl-section {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 22px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.dcb-ctrl-heading {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 16px 0;
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 10px;
}

.dcb-ctrl-row {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dcb-ctrl-row:last-child {
	margin-bottom: 0;
}

.dcb-ctrl-row label {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

/* Radio Pill Group */
.dcb-btn-radio-group {
	display: flex;
	gap: 8px;
}

.dcb-radio-pill {
	flex: 1;
	position: relative;
	cursor: pointer;
}

.dcb-radio-pill input {
	position: absolute;
	opacity: 0;
}

.dcb-radio-pill span {
	display: block;
	padding: 8px 12px;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	color: #475569;
	transition: all 0.2s;
}

.dcb-radio-pill input:checked + span {
	background: #0284c7;
	border-color: #0284c7;
	color: #ffffff;
}

/* Color Input Wrap */
.dcb-color-input-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dcb-color-input-wrap input[type="color"] {
	-webkit-appearance: none;
	border: none;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	cursor: pointer;
	padding: 0;
	background: transparent;
}

.dcb-color-input-wrap input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}

.dcb-color-input-wrap input[type="color"]::-webkit-color-swatch {
	border: 1px solid #cbd5e1;
	border-radius: 8px;
}

.dcb-color-hex-text {
	width: 100px;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 13px;
	font-family: monospace;
	text-transform: uppercase;
}

/* Select & Range */
.dcb-ctrl-row select {
	width: 100%;
	padding: 9px 12px;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	font-size: 13.5px;
	background: #ffffff;
}

.dcb-range-slider {
	width: 100%;
	accent-color: #0284c7;
}

/* Preset Cards */
.dcb-preset-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 10px;
}

.dcb-preset-pill {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 10px;
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
}

.dcb-preset-pill:hover {
	border-color: #0284c7;
	background: #f0f9ff;
}

.dcb-preset-pill.active {
	border-color: #0284c7;
	background: #e0f2fe;
}

.dcb-preset-pill input {
	position: absolute;
	opacity: 0;
}

.dcb-preset-swatch {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dcb-preset-name {
	font-size: 12px;
	font-weight: 600;
	color: #0f172a;
}
