.gfg-widget {
	--gfg-primary: #6c3ce9;
	--gfg-primary-dark: #4f26b8;
	--gfg-bg: #ffffff;
	--gfg-border: #e3e1f7;
	--gfg-text: #211f36;
	--gfg-muted: #6b6885;
	--gfg-radius: 14px;
	box-sizing: border-box;
	max-width: 960px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--gfg-text);

	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: start;
}
.gfg-widget *, .gfg-widget *::before, .gfg-widget *::after { box-sizing: border-box; }

.gfg-col {
	background: var(--gfg-bg);
	border: 1px solid var(--gfg-border);
	border-radius: var(--gfg-radius);
	padding: 18px;
	box-shadow: 0 4px 18px rgba(76, 42, 190, 0.06);
}

.gfg-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.gfg-field:last-of-type { margin-bottom: 0; }

.gfg-field-row {
	display: flex;
	gap: 14px;
	margin-bottom: 14px;
}
.gfg-field-row .gfg-field { flex: 1; margin-bottom: 0; }

.gfg-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--gfg-muted);
}

.gfg-input,
.gfg-style-select {
	width: 100%;
	border: 1px solid var(--gfg-border);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--gfg-text);
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.gfg-input { resize: vertical; min-height: 70px; }
.gfg-input:focus,
.gfg-style-select:focus {
	outline: none;
	border-color: var(--gfg-primary);
	box-shadow: 0 0 0 3px rgba(108, 60, 233, 0.15);
}

input[type="color"].gfg-font-color,
input[type="color"].gfg-bg-color {
	width: 100%;
	height: 40px;
	padding: 3px;
	border: 1px solid var(--gfg-border);
	border-radius: 10px;
	cursor: pointer;
	background: #fff;
}

.gfg-generate-btn {
	width: 100%;
	background: linear-gradient(135deg, var(--gfg-primary), var(--gfg-primary-dark));
	color: #fff;
	border: none;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 999px;
	cursor: pointer;
	letter-spacing: .2px;
	transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
	box-shadow: 0 6px 16px rgba(108, 60, 233, 0.35);
	margin-top: 4px;
}
.gfg-generate-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(108, 60, 233, 0.4); }
.gfg-generate-btn:active { transform: translateY(0); }
.gfg-generate-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.gfg-status {
	min-height: 16px;
	font-size: 13px;
	color: var(--gfg-muted);
	margin-top: 10px;
}
.gfg-status.gfg-status-error { color: #d1341f; }

.gfg-col-right { display: flex; flex-direction: column; gap: 14px; }

.gfg-preview-box {
	flex: 1;
	min-height: 180px;
	border: 1px solid var(--gfg-border);
	border-radius: var(--gfg-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	transition: background-color .15s ease;
	overflow-wrap: anywhere;
}

.gfg-preview-text {
	font-size: 26px;
	line-height: 1.5;
	text-align: center;
	word-break: break-word;
	transition: color .15s ease;
}

.gfg-result-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gfg-action-btn {
	background: #fff;
	border: 1px solid var(--gfg-border);
	color: var(--gfg-text);
	font-size: 12px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 999px;
	cursor: pointer;
	transition: background .12s ease, border-color .12s ease;
	flex: 1;
	min-width: 100px;
}
.gfg-action-btn:hover { background: #f1edff; border-color: var(--gfg-primary); }
.gfg-action-btn.gfg-copied { background: #22a06b; border-color: #22a06b; color: #fff; }

@media (max-width: 720px) {
	.gfg-widget { grid-template-columns: 1fr; }
}
