body {
	font-family: 'Open Sans'
}
.kc-container {
	max-width: 1200px !important;
	margin: 0 auto;
	padding: 20px;
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 30px;
	align-items: start;
}

.kc-canvas-container {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #dee2e6;
	text-align: center;
	position: relative;
}

#kc-canvas {
	border: 2px solid #ddd;
	background: white;
	display: block;
	margin: 0 auto;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 3 / 4; /* Ratio 3:4 */
}

.kc-controls {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #dee2e6;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.control-group {
	background: white;
	padding: 15px;
	border-radius: 6px;
	border: 1px solid #dee2e6;
}

.control-group h3 {
	margin-top: 0;
	margin-bottom: 10px;
	color: #495057;
	font-size: 16px;
	border-bottom: 1px solid #dee2e6;
	padding-bottom: 8px;
}

.inner-group {
	display: flex;
	justify-content: space-between;
}

.form-group {
	margin-bottom: 5px;
}

.form-group:last-child {
	margin-bottom: 0;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #495057;
	font-size: 14px;
}

.form-control {
	width: 75%;
	padding: 8px 12px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 14px;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	flex: 0 0 60%;
	max-width: 60%;
	box-sizing: border-box;
}

.btn {
	display: inline-block;
	padding: 10px 16px;
	background: #007bff;
	color: white;
	text-decoration: none;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s;
}

#kc-generate {
	background: #ff0000;
}

.btn:hover {
	background: #0056b3;
}

.btn-secondary {
	background: #222222;
}

.btn-secondary:hover {
	background: #545b62;
}

.btn-small {
	padding: 6px 12px;
	font-size: 12px;
}

.kc-images-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.kc-images-container.close {
	display: none;
}

.kc-images-content {
	background: white;
	padding: 20px;
	border-radius: 8px;
	max-width: 90%;
	max-height: 80%;
	overflow-y: auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 10px;
	height: 100%;
	width: 100%;
	position: absolute;
	transform: translate(-50%, -50%);
	left: 50%;
	top: 50%;
}

.kc-images-content img {
	width: 100%;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 4px;
	transition: border-color 0.3s;
}

.kc-images-content img:hover {
	border-color: #ff0000;
}

.kc-download-link-container {
	text-align: center;
	margin-top: 20px;
}

.text-control-row {
	display: flex;
	justify-content: space-between;
}

.bg-color-input,
.icon-color-input,
.text-color-input {
	padding: 3px;
	background: #545b62;
	border: 0;
	max-width: 15%;
	height: auto;
	border-radius: 0;
	flex: 0 0 10%;
}

.bg-color-input,
.icon-color-input {
	max-width: 35px;
	width: 35px;
	height: 35px;
}

.text-size-btn {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	flex: 0 0 25%;
	max-width: 25%;
}

.preview-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.preview-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	background: #e9ecef;
	border-radius: 4px;
}

.preview-label {
	font-weight: bold;
	font-size: 12px;
	color: #495057;
	min-width: 60px;
}

.preview-image {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border: 1px solid #ced4da;
	border-radius: 4px;
}

.preview-color {
	width: 30px;
	height: 30px;
	border: 1px solid #ced4da;
	border-radius: 4px;
}

.remove-btn {
	background: #dc3545;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 4px 8px;
	cursor: pointer;
	font-size: 12px;
	margin-left: auto;
}

.remove-btn:hover {
	background: #c82333;
}

.error {
	color: #dc3545;
}
.success {
	color: #28a745;
}

@media(max-width: 768px) {
	.kc-container {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

.upload-section {
	margin-top: 10px;
	border-top: 1px solid #dee2e6;
	padding-top: 10px;
}

.upload-btn {
	background: #545b62;
	color: white;
	border: none;
	padding: 8px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 5px;
}

.upload-btn:hover {
	background: #3e4145;
}

.upload-btn svg {
	width: 14px;
	height: 14px;
}

.file-input {
	display: none;
}

.upload-info {
	font-size: 11px;
	color: #6c757d;
	margin-top: 5px;
}

.preview-upload {
	max-width: 100%;
	max-height: 100px;
	margin-top: 5px;
	border: 1px solid #dee2e6;
	border-radius: 4px;
}