/**
 * Chữ viết tay page – styles (only rules not in global.css)
 */

.style_sections .section:nth-child(even) {
	border-bottom: 1px solid #f5f5f5;
}

.textarea .name {
	float: left;
	width: 29%;
	font-size: 20px;
	line-height: 1.2;
	margin-left: 16px;
}

.textarea textarea {
	font: inherit;
	font-size: 20px;
	box-sizing: border-box;
	float: left;
	width: 71%;
	background: rgba(255, 255, 255, .5);
	border: transparent;
	line-height: 1.2;
	height: 4.8em;
	padding: 10px;
	box-sizing: border-box;
	border: #CCC solid 1px;
	border-radius: 5px;
}

.section {
	padding: 10px 12px !important;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.section .section_inner {
	max-width: 100%;
	text-align: center;
}

.section .main_image {
	clear: right;
	float: right;
	max-width: 100%;
	height: auto;
	margin: 0 0 10px 10px;
	box-sizing: border-box;
}

.section.title_section {
	padding-top: 0;
}

/* Layout ngang: [Nhãn | Nội dung mẫu | Nút Sao chép] – dùng flex để value_inner luôn hiển thị */
.style_sections .section .section_inner {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	text-align: left;
}

.style_sections .example {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	text-align: left;
}

.style_sections .example .value_inner {
	flex: 1;
	min-width: 0;
	word-break: break-all;
	white-space: normal;
	order: 1;
}

.style_sections .name {
	flex-shrink: 0;
	width: 140px;
	text-align: left;
	font-size: 16px;
	margin-top: 0;
}

.style_sections .buttons {
	flex-shrink: 0;
	order: 2;
	position: relative;
	padding-left: 0;
}

.style_sections .buttons button:hover {
	box-shadow: 0 4px 12px rgba(122, 93, 232, 0.35);
}

.style_sections .buttons button {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 20px;
	min-width: 100px;
	white-space: nowrap;
	border-radius: 10px;
	cursor: pointer;
}

/* Input + output cards: modern highlighted style */
.section.textarea {
	margin: 14px 0 20px;
	background: linear-gradient(135deg, #f8f5ff 0%, #eef8ff 100%);
	border: 1px solid #d9ccff;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(95, 70, 170, 0.12);
}

.section.textarea .section_inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
}

.section.textarea .name {
	font-size: 18px;
	font-weight: 700;
	color: #46327d;
	white-space: nowrap;
	float: none;
	width: auto;
}

.section.textarea textarea {
	float: none;
	width: 100%;
	min-height: 110px;
	border: 1px solid #c9b8ff;
	border-radius: 10px;
	background: #ffffff;
	color: #2b2b2b;
	font-size: 16px;
	line-height: 1.6;
	padding: 12px 14px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.section.textarea textarea:focus {
	outline: none;
	border-color: #7a5de8;
	box-shadow: 0 0 0 4px rgba(122, 93, 232, 0.16);
}

.style_sections .section {
	margin-bottom: 12px;
	padding: 12px 14px;
	border: 1px solid #e2e8ff;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(66, 99, 235, 0.08);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.style_sections .section:hover {
	border-color: #c8d5ff;
}

.style_sections .name {
	color: #314073;
	font-weight: 700;
}

.style_sections .value_inner {
	color: #1f1f2e;
}

.style_sections .buttons button {
	background: linear-gradient(135deg, #5f6df5 0%, #7a5de8 100%);
	color: #fff;
	border: none;
	box-shadow: 0 2px 8px rgba(122, 93, 232, 0.25);
	padding: 6px 16px;
	white-space: nowrap;
	cursor: pointer;
}

/* Alert ký hiệu đẹp – style nổi bật */
.alert-symbols-highlight {
	margin: 1rem 0 !important;
	padding: 1rem 1.25rem !important;
	font-size: 1.05rem !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
	color: #1a3a52 !important;
	background: linear-gradient(135deg, #e8f4fc 0%, #d4ebf7 50%, #b8dff0 100%) !important;
	border: 2px solid #0d6efd !important;
	border-left: 5px solid #0d6efd !important;
	border-radius: 12px !important;
	box-shadow: 0 4px 16px rgba(13, 110, 253, 0.2), inset 0 1px 0 rgba(255,255,255,0.6) !important;
}

.alert-symbols-highlight::before {
	content: "✦ ";
	color: #0d6efd;
	font-weight: 700;
}

/* ── Responsive mobile ── */
@media (max-width: 576px) {
	.style_sections .section .section_inner {
		flex-wrap: wrap;
		gap: 8px;
	}

	.style_sections .name {
		width: 100%;
		font-size: 14px;
		font-weight: 700;
	}

	.style_sections .example {
		width: 100%;
		flex: unset;
		gap: 8px;
	}

	.style_sections .buttons button {
		min-width: 80px;
		padding: 5px 10px;
		font-size: 12px;
	}
}
