.shape-card {
	border: 1px solid #e3e3e3;
	padding: 15px;
	border-radius: 8px;
	background-color: #fff;
	transition: box-shadow 0.3s;
	cursor: pointer;
	text-align: center;
}

.mb-3.mt-3.upload-div {
	padding: 15px;
	background-color: aliceblue;
}

.shape-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shape-card.selected {
	border: 2px solid #007bff;
	box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#qrcode-wrapper {
	position: relative;
	display: inline-block;
	padding: 10px;
	background: white;
	border: 4px solid orange !important;
	border-radius: 16px;
	background-image: url("<?= BASE_URL ?>assets/template/qr-squretemplate.png");
	background-size: cover;
	background-position: center;
}

#qrcode img {
	padding: 49px;
}

#qrcode canvas {
	border-radius: 12px;
}

.logo {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 48px;
	height: 48px;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 2;
	background: white;
	padding: 6px;
	border-radius: 50%;
}

a#facebookLink {
	display: none !important;
}

input,
textarea {
	border-radius: 8px !important;
}

#qr-fontstyle .fontFamilyWrap {
	max-width: 800px;
	margin: auto;
}

#qr-fontstyle .font-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 15px;
	margin-top: 20px;
}

#qr-fontstyle .font-item {
	background: white;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
	cursor: pointer;
	transition: border 0.3s;
}

#qr-fontstyle .font-item:hover {
	border: 2px solid #0d6efd;
}

#qr-fontstyle .font-item.active {
	border: 2px solid #0d6efd;
	background-color: #e7f1ff;
}

#qr-fontstyle .font-preview {
	font-size: 24px;
}

#qr-fontstyle .font-label {
	font-size: 13px;
	margin-top: 5px;
}

.shape-card,
.color-card {
	cursor: pointer;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
	border: 2px solid transparent;
	transition: border-color 0.3s;
	user-select: none;
}

.shape-card.selected,
.color-card.selected {
	border-color: #007bff;
	background-color: #e7f1ff;
	box-shadow: 0 0 8px #007bffaa;
}

.shape-card img,
.color-card img {
	max-width: 80px;
	height: auto;
	display: block;
	margin: 0 auto 6px;
}

.color-swatch {
	width: 100%;
	height: 40px;
	border-radius: 6px;
}

#qrDownloadModal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9999;
}

#qrDownloadModal .modal-content {
	background: white;
	padding: 20px;
	margin: auto;
	max-width: 400px;
	border-radius: 8px;
}

#logoUpload,
#stickerUpload {
	max-width: 250px;
}

#qr-code {
	position: relative;
	width: 300px;
	height: 300px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

#qr-code canvas {
	width: 90%;
	height: 90%;
	object-fit: contain;
	display: block;
	padding: 45px;
	margin-top: -80px;
	margin-right: 18px;
}

/* Style the tabs container */
#qrTabs {
	border-bottom: 2px solid #dee2e6;
	background-color: #f9f9f9;
	border-radius: 0.5rem;
	overflow-x: auto;
	white-space: nowrap;
	padding: 0.5rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Tabs themselves */
#qrTabs .nav-link {
	color: #495057;
	font-weight: 500;
	border: none;
	background: transparent;
	padding: 0.5rem 1.2rem;
	margin-right: 0.25rem;
	border-radius: 0.5rem;
	transition: all 0.3s ease;
}

/* Hover effect */
#qrTabs .nav-link:hover {
	background-color: #e2e6ea;
	color: #000;
}

/* Active tab */
#qrTabs .nav-link.active {
	background-color: #007bff;
	color: #fff !important;
	box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
}

#qrTabs::-webkit-scrollbar {
	height: 4px;
}

#qrTabs::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 10px;
}


#outer-box {
	background-color: #f8f2f2;
	padding: 24px;
	margin-top: 30px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	border: 1px solid #e3e3e3;
	margin-bottom: 30px;
}

.output-div {
	background-color: #fff;
	padding: 24px;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	max-width: 400px;
	margin: 40px auto;
	text-align: center;
	transition: all 0.3s ease;
}

.output-div:hover {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.tool-heading {
	position: relative;
	font-size: 2rem;
	font-weight: 600;
	color: #333;
	padding-bottom: 12px;
	margin-bottom: 32px;
	display: inline-block;
	line-height: 1.2;
}

/* Primary colored accent underline */
.tool-heading::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	width: 60px;
	background-color: #1abc9c;
	border-radius: 2px;
}

/* Subtle gray underline behind accent */
.tool-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 1px;
	width: 100%;
	max-width: 280px;
	background-color: #ccc;
}