/*==================================================================================

	BULK QR CODE GENERATOR — STYLES

	Do hissay hain:

	001-002	MODULE KA APNA — list, CSV drop, column mapping, grid,
			progress, skipped rows.

	003		GENERATOR SE LI GAYI NAQAL — panel, labels, colour row aur
			ghost button. Ye global me NAHI hain, sirf qr-code-generator
			ki apni CSS me hain.

			Mushtarka file nahi banai ja sakti (CLAUDE.md: har module ka
			apna code), is liye naqal hi raasta hai. Badalte waqt dono
			jagah dekhni paregi — aur yahi us qaide ki asal qeemat hai.

	Baqi sab (hero, cards, steps, features, table, toast, status) global
	assets/global-custom-web.css me hai. Naya rule likhne se pehle wahan
	dekh len.

==================================================================================*/


/*----------------------------------------------------------
	001 — LIST AUR CSV
----------------------------------------------------------*/

.bq-lines{
	font-family: var(--wiz-font-mono);
	font-size: .82rem;
	line-height: 1.6;
	resize: vertical;
}

.bq-drop{
	border: 2px dashed var(--wiz-border);
	border-radius: var(--wiz-radius-card);
	padding: 1.6rem 1rem;
	text-align: center;
	transition: border-color .15s ease, background-color .15s ease;
}

.bq-drop i{
	display: block;
	font-size: 1.7rem;
	color: var(--wiz-primary);
	opacity: .7;
	margin-bottom: .45rem;
}

.bq-drop p{
	font-size: .9rem;
	margin-bottom: .25rem;
}

.bq-drop.is-over{
	border-color: var(--wiz-primary);
	background: var(--wiz-surface-2, rgba(0,0,0,.02));
}

.bq-drop.is-loaded{
	border-style: solid;
	border-color: var(--wiz-primary);
}

.bq-map-box{
	border: 1px solid var(--wiz-border);
	border-radius: var(--wiz-radius-card);
	padding: .85rem;
}

.bq-map-title{
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	margin-bottom: .6rem;
}

.bq-map-grid{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: .55rem .9rem;
}

.bq-map-row{
	display: grid;
	grid-template-columns: 1fr;
	gap: .2rem;
	font-size: .82rem;
	margin: 0;
}

.bq-map-row > span{
	color: var(--wiz-muted);
}

.bq-req{
	color: #b91c1c;
}


/*----------------------------------------------------------
	002 — PREVIEW, PROGRESS AUR SKIPPED
-----------------------------------------------------------*/

.bq-sticky{
	position: sticky;
	top: 1rem;
}

@media (max-width: 991.98px){
	.bq-sticky{ position: static; }
}

.bq-empty{
	text-align: center;
	padding: 2rem .75rem;
	color: var(--wiz-muted);
	font-size: .9rem;
	border: 1px dashed var(--wiz-border);
	border-radius: var(--wiz-radius-card);
}

.bq-empty i{
	display: block;
	font-size: 1.9rem;
	opacity: .5;
	margin-bottom: .45rem;
}

.bq-grid{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr));
	gap: .6rem;
	max-height: 26rem;
	overflow-y: auto;
}

.bq-cell{
	margin: 0;
	text-align: center;
}

.bq-cell-art{
	border: 1px solid var(--wiz-border);
	border-radius: .4rem;
	overflow: hidden;
	line-height: 0;
}

.bq-cell-art canvas,
.bq-cell-art svg{
	width: 100%;
	height: auto;
	display: block;
}

.bq-cell-bad{
	display: block;
	padding: 1.2rem .2rem;
	font-size: .68rem;
	line-height: 1.3;
	color: #b91c1c;
}

.bq-cell figcaption{
	font-size: .68rem;
	line-height: 1.3;
	margin-top: .25rem;
	color: var(--wiz-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bq-progress-track{
	height: .4rem;
	border-radius: .2rem;
	background: var(--wiz-border);
	overflow: hidden;
}

.bq-progress-track > i{
	display: block;
	height: 100%;
	width: 0;
	background: var(--wiz-primary);
	transition: width .15s linear;
}

.bq-logo{
	border: 1px solid var(--wiz-border);
	border-radius: var(--wiz-radius-card);
	padding: .7rem .85rem;
	font-size: .85rem;
}

.bq-logo-empty{
	display: flex;
	align-items: center;
	gap: .6rem;
}

.bq-logo-empty i{
	font-size: 1.2rem;
	color: var(--wiz-primary);
	opacity: .7;
}

.bq-logo-loaded{
	display: flex;
	align-items: center;
	gap: .7rem;
}

.bq-logo-loaded img{
	border-radius: .3rem;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--wiz-border);
}

.bq-logo-loaded > span{
	flex: 1 1 auto;
	min-width: 0;
}

.bq-skip{
	border: 1px solid var(--wiz-border);
	border-left: 3px solid #d97706;
	border-radius: var(--wiz-radius-card);
	padding: .75rem .9rem;
}

.bq-skip-title{
	font-size: .82rem;
	font-weight: 700;
	margin-bottom: .5rem;
}

.bq-skip-title i{
	color: #d97706;
}

.bq-skip-list{
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: 14rem;
	overflow-y: auto;
	font-size: .76rem;
	line-height: 1.5;
}

.bq-skip-list li{
	padding: .3rem 0;
	border-top: 1px solid var(--wiz-border);
}

.bq-skip-list li:first-child{
	border-top: 0;
}

.bq-skip-line{
	font-weight: 600;
}

.bq-skip-text{
	font-family: var(--wiz-font-mono);
	color: var(--wiz-muted);
	word-break: break-all;
}

.bq-skip-why{
	display: block;
	color: #b45309;
}

[data-bs-theme="dark"] .bq-skip-why{
	color: #fbbf24;
}


/*----------------------------------------------------------
	003 — GENERATOR SE NAQAL

	Ye rules `qr-code-generator/assets/custom.css` me hain aur global me
	NAHI. Mushtarka file nahi ban sakti (CLAUDE.md: har module ka apna
	code), is liye naqal hi raasta hai — aur badalte waqt dono jagah
	dekhni paregi.

	NAQAL HAATH SE NAHI, PARSER SE LI GAYI HAI, AUR IS KI WAJAH HAI.

	Pehle ye regex se nikali gayi thi, aur regex `@media` ke andar aur
	bahar ka farq nahi janti. Nateeja ye hua ke generator ke
	`@media print` ka `display:none` yahan TOP LEVEL par aa gaya, aur
	poora safha screen par khali ho gaya — settings, panels, buttons sab
	gayab. Us ke sath 768px wali mobile rules bhi har width par lag rahi
	thin.

	Ab jo bhi rule kisi @media ke andar tha, wo wapas USI @media ke
	andar likha jata hai (neeche dekhen).

	`@media print` JAAN BOOJH KAR NAHI li gayi: wo generator ke liye hai
	taake chhapte waqt sirf QR rahe. Is safhe ka chhapna koi kaam ka
	maqsad nahi, aur wahi rule yahan khali kaghaz de deti.
-----------------------------------------------------------*/

.wiz-panel-title{
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wiz-text);
}

.wiz-panel-title i{
	color: var(--wiz-primary);
	font-size: .95rem;
}

.wiz-panel{
	border: 1px solid var(--wiz-border);
	border-radius: var(--wiz-radius-card);
	background: var(--wiz-surface-2);
	padding: 1.15rem;
}

.wiz-panel-head{
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wiz-text-muted);
	margin-bottom: 1rem;
}

.wiz-panel-head i{
	color: var(--wiz-primary);
	font-size: .95rem;
}

.qr-label,
.wiz-label{
	display: block;
	font-size: .78rem;
	font-weight: 600;
	color: var(--wiz-text);
	margin-bottom: .35rem;
}

.qr-hint,
.wiz-hint{
	font-size: .76rem;
	line-height: 1.6;
	color: var(--wiz-text-muted);
}

.wiz-color-row{
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .6rem .8rem;
	border: 1px solid var(--wiz-border);
	border-radius: var(--wiz-radius-btn);
	background: var(--wiz-surface);
}

.wiz-color-label{
	flex: 1;
	font-size: .8rem;
	font-weight: 600;
	color: var(--wiz-text);
	white-space: nowrap;
}

.wiz-color-swatch{
	flex-shrink: 0;
	width: 30px;
	height: 26px;
	padding: 0;
	border: 1px solid var(--wiz-border);
	border-radius: 4px;
	background: none;
	cursor: pointer;
}

.wiz-color-swatch::-webkit-color-swatch-wrapper{ padding: 2px; }

.wiz-color-swatch::-webkit-color-swatch{ border: 0; border-radius: 2px; }

.wiz-color-swatch::-moz-color-swatch{ border: 0; border-radius: 2px; }

.wiz-color-hex{
	flex-shrink: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: .74rem;
	color: var(--wiz-text-muted);
	min-width: 62px;
}

.wiz-preview-card{
	position: sticky;
	top: 84px;
}

.wiz-btn-ghost{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	padding: .55rem .4rem;
	font-size: .76rem;
	font-weight: 600;
	color: var(--wiz-text);
	background: var(--wiz-surface);
	border: 1px solid var(--wiz-border);
	border-radius: var(--wiz-radius-btn);
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.wiz-btn-ghost:hover{
	color: var(--wiz-primary);
	border-color: color-mix(in srgb, var(--wiz-primary) 45%, transparent);
	background: color-mix(in srgb, var(--wiz-primary) 7%, transparent);
}

.wiz-btn-ghost i{
	font-size: .85rem;
}

.btn:disabled,
.wiz-btn-ghost:disabled{
	opacity: .45;
	pointer-events: none;
}


@media screen and (max-width: 992px){

	.wiz-preview-card{
			position: static;
		}
}


@media screen and (max-width: 768px){

	.wiz-color-row{
			flex-wrap: wrap;
		}

	.wiz-color-label{
			flex: 1 1 100%;
		}
}
