/* ============================================================
   Công cụ tính toán góc lượng giác — formula-luong-giac.css
   ============================================================ */

/* ── Wrapper ── */
.formula-luong-giac .lg-intro {
	margin-bottom: 24px;
	font-size: 15px;
	line-height: 1.7;
	color: #485a7d;
}

/* ── Calculator container: 3 columns ── */
.lg-calculator-section {
	padding: 40px 0;
}

.triangle-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 900px) {
	.triangle-container {
		grid-template-columns: 1fr;
	}
}

/* ── Formula section card ── */
.formula-section {
	background: #fff;
	border: 1px solid #e2e8f2;
	border-radius: 12px;
	padding: 24px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.formula-section > p {
	font-size: 14px;
	font-weight: 600;
	color: #2e3a52;
	margin: 0;
	text-align: center;
}

/* ── Triangle image ── */
.triangle-img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	height: auto;
	max-height: 160px;
	object-fit: contain;
}

.lg-no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100px;
	background: #f5f7fb;
	border-radius: 8px;
	color: #a0aec0;
	font-size: 13px;
}

/* ── Input section ── */
.input-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.input-section label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #485a7d;
	font-weight: 500;
}

.input-section label input[type="number"] {
	flex: 1;
	max-width: 120px;
	padding: 7px 10px;
	border: 1px solid #d1d9e8;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.2s;
}

.input-section label input[type="number"]:focus {
	outline: none;
	border-color: #3b7fe8;
	box-shadow: 0 0 0 3px rgba(59, 127, 232, 0.12);
}

/* ── Calculate button ── */
.lg-calc-btn {
	align-self: flex-start;
	padding: 9px 22px;
	background: linear-gradient(135deg, #3b7fe8, #2563eb);
	color: #fff;
	border: none;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.15s;
}

.lg-calc-btn:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.lg-calc-btn:active {
	transform: translateY(0);
}

/* ── Results table ── */
.theta-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.theta-table td {
	padding: 5px 8px;
	border-bottom: 1px solid #f0f2f7;
	color: #2e3a52;
}

.theta-table td:first-child {
	font-weight: 600;
	width: 55px;
	color: #3b7fe8;
}

.theta-table td:nth-child(2) {
	width: 20px;
	color: #a0aec0;
}

.theta-table .output {
	font-weight: 700;
	color: #1a2540;
}

/* ── Formula explanation box ── */
.formula-explanation-box {
	background: #f5f7fb;
	border-left: 3px solid #3b7fe8;
	border-radius: 0 8px 8px 0;
	padding: 12px 14px;
	font-size: 13px;
	line-height: 1.7;
	color: #485a7d;
}

.formula-explanation-box .explanation-title {
	display: block;
	font-weight: 700;
	color: #2e3a52;
	margin-bottom: 6px;
}

.formula-explanation-box .formula-value {
	font-weight: 700;
	color: #2563eb;
}

/* ── Theory section ── */
.lg-theory-section {
	padding: 48px 0 56px;
	border-top: 1px solid #e2e8f2;
}

.lg-theory-section h2 {
	font-size: 20px;
	font-weight: 700;
	color: #1a2540;
	margin-bottom: 20px;
}

.lg-theory-box {
	background: #f8f9fc;
	border: 1px solid #e2e8f2;
	border-radius: 12px;
	padding: 28px 32px;
}

.lg-theory-box p {
	font-size: 15px;
	line-height: 1.8;
	color: #485a7d;
	margin: 0 0 12px;
}

.lg-theory-box p:last-child {
	margin-bottom: 0;
}

.lg-theory-box p + p:empty,
.lg-theory-box p:empty {
	margin: 0;
	height: 0;
	padding: 0;
}

.lg-theory-box img {
	display: block;
	max-width: 80%;
	height: auto;
	margin: 12px 0;
}

.lg-theory-box h4 {
	font-size: 16px;
	font-weight: 700;
	color: #2e3a52;
	margin: 20px 0 8px;
}

.lg-theory-img-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 80px;
	background: #f0f2f7;
	border-radius: 8px;
	color: #a0aec0;
	font-size: 13px;
	margin: 12px 0;
	max-width: 80%;
}
