/* Free Utility Tools — GPA Calculator */

.fut-gpa-calculator {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 700px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e1e5e9;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ── Header ── */
.fut-gpa-header {
	padding: 22px 28px 18px;
	background: linear-gradient(135deg, #1a5fa3 0%, #2271b1 100%);
}
.fut-gpa-title {
	margin: 0 0 5px;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}
.fut-gpa-desc {
	margin: 0;
	font-size: 13px;
	color: rgba(255,255,255,.82);
}

/* ── Body ── */
.fut-gpa-body {
	padding: 22px 28px 28px;
}

/* ── Shared label ── */
.fut-gpa-lbl {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #646970;
	margin-bottom: 5px;
}
.fut-gpa-optional {
	font-size: 10px;
	font-weight: 400;
	text-transform: none;
	color: #9ca3af;
}

/* ── Shared input ── */
.fut-gpa-input {
	padding: 8px 11px;
	border: 1.5px solid #d0d5dd;
	border-radius: 7px;
	font-size: 14px;
	color: #1d2327;
	background: #fff;
	box-sizing: border-box;
	width: 100%;
	transition: border-color .15s, box-shadow .15s;
}
.fut-gpa-input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34,113,177,.12);
}

/* ── Prior GPA section ── */
.fut-gpa-prior-section {
	background: #f8f9fa;
	border: 1px solid #e1e5e9;
	border-radius: 9px;
	padding: 14px 16px;
	margin-bottom: 20px;
}
.fut-gpa-prior-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #646970;
	margin-bottom: 10px;
}
.fut-gpa-prior-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.fut-gpa-prior-field {
	display: flex;
	flex-direction: column;
}

/* ── Semester block ── */
.fut-gpa-sem {
	border: 1.5px solid #e1e5e9;
	border-radius: 10px;
	margin-bottom: 16px;
	overflow: hidden;
}
.fut-gpa-sem-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background: #f0f6fc;
	border-bottom: 1px solid #e1e5e9;
}
.fut-gpa-sem-name {
	font-size: 13.5px;
	font-weight: 700;
	color: #1d2327;
	flex: 1;
}
.fut-gpa-sem-badge {
	font-size: 12px;
	color: #646970;
	background: #fff;
	border: 1px solid #d0d5dd;
	border-radius: 20px;
	padding: 3px 10px;
	white-space: nowrap;
}
.fut-gpa-sem-badge strong { font-size: 13px; }
.fut-gpa-del-sem {
	width: 28px;
	height: 28px;
	border: none;
	background: #fee2e2;
	color: #dc2626;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background .15s;
	line-height: 1;
}
.fut-gpa-del-sem:hover { background: #fca5a5; }

/* ── Column header ── */
.fut-gpa-col-head {
	display: grid;
	grid-template-columns: 1fr 110px 90px 34px;
	gap: 6px;
	padding: 7px 16px 6px;
	border-bottom: 1px solid #f0f0f1;
	background: #fafbfc;
}
.fut-gpa-col-head span {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #8a9ab0;
}

/* ── Course rows ── */
.fut-gpa-sem-rows {
	padding: 6px 16px 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.fut-gpa-row {
	display: grid;
	grid-template-columns: 1fr 110px 90px 34px;
	gap: 6px;
	align-items: center;
}
.fut-gpa-del-row {
	width: 30px;
	height: 30px;
	border: none;
	background: none;
	color: #dc2626;
	font-size: 18px;
	cursor: pointer;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s;
	flex-shrink: 0;
}
.fut-gpa-del-row:hover { background: #fee2e2; }

/* ── Add course button ── */
.fut-gpa-add-row-btn {
	margin: 2px 16px 12px;
	padding: 6px 14px;
	border: 1.5px dashed #c8d8ea;
	border-radius: 7px;
	background: transparent;
	color: #2271b1;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	width: calc(100% - 32px);
	transition: border-color .15s, background .15s;
}
.fut-gpa-add-row-btn:hover {
	background: #f0f6fc;
	border-color: #2271b1;
}

/* ── Semester + Clear buttons ── */
.fut-gpa-semester-actions {
	display: flex;
	gap: 10px;
	margin-bottom: 22px;
}
.fut-gpa-add-sem-btn {
	padding: 9px 20px;
	border: 1.5px solid #2271b1;
	border-radius: 7px;
	background: #fff;
	color: #2271b1;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.fut-gpa-add-sem-btn:hover { background: #2271b1; color: #fff; }
.fut-gpa-clear-btn {
	padding: 9px 20px;
	border: 1px solid #dcdcde;
	border-radius: 7px;
	background: #f0f0f1;
	color: #3c434a;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
}
.fut-gpa-clear-btn:hover { background: #dcdcde; }

/* ── Cumulative GPA display ── */
.fut-gpa-cumulative {
	display: flex;
	align-items: center;
	gap: 24px;
	background: linear-gradient(135deg, #f0f6fc 0%, #e8f2fb 100%);
	border: 1.5px solid #c8d8ea;
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 24px;
}
.fut-gpa-cum-left {
	text-align: center;
	flex-shrink: 0;
	min-width: 90px;
}
.fut-gpa-cum-val {
	font-size: 52px;
	font-weight: 900;
	color: #2271b1;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	transition: color .3s;
}
.fut-gpa-cum-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #8a9ab0;
	margin-top: 4px;
}
.fut-gpa-cum-right {
	flex: 1;
	min-width: 0;
}
.fut-gpa-bar-track {
	height: 12px;
	background: #e1e5e9;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 6px;
}
.fut-gpa-bar-fill {
	height: 100%;
	width: 0%;
	border-radius: 6px;
	background: #2271b1;
	transition: width .4s ease, background .3s;
}
.fut-gpa-bar-scale {
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	color: #8a9ab0;
	font-weight: 600;
	margin-bottom: 10px;
}
.fut-gpa-cum-details {
	font-size: 12.5px;
	color: #50575e;
	line-height: 1.6;
}
.fut-gpa-cum-details strong { color: #1d2327; }

/* ── Divider ── */
.fut-gpa-divider {
	height: 1px;
	background: #e1e5e9;
	margin: 0 0 22px;
}

/* ── GPA Planning ── */
.fut-gpa-plan-title {
	font-size: 14px;
	font-weight: 700;
	color: #1d2327;
	margin-bottom: 4px;
}
.fut-gpa-plan-desc {
	margin: 0 0 16px;
	font-size: 13px;
	color: #8a9ab0;
}
.fut-gpa-plan-fields {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}
.fut-gpa-plan-field {
	display: flex;
	flex-direction: column;
}

/* ── Planning result ── */
.fut-gpa-plan-result {
	padding: 14px 18px;
	border-radius: 9px;
	font-size: 14px;
	line-height: 1.6;
}
.fut-gpa-plan-ok {
	background: #f0f6fc;
	border: 1.5px solid #c8d8ea;
	color: #1d2327;
}
.fut-gpa-plan-easy {
	background: #f0fdf4;
	border: 1.5px solid #86efac;
	color: #15803d;
}
.fut-gpa-plan-impossible {
	background: #fff7ed;
	border: 1.5px solid #fdba74;
	color: #c2410c;
}

/* ── Responsive ── */
@media (max-width: 600px) {
	.fut-gpa-body { padding: 18px 18px 22px; }
	.fut-gpa-cumulative { flex-direction: column; align-items: flex-start; gap: 14px; }
	.fut-gpa-cum-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
	.fut-gpa-cum-val { font-size: 40px; }
	.fut-gpa-plan-fields { grid-template-columns: 1fr 1fr; }
	.fut-gpa-prior-fields { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.fut-gpa-row { grid-template-columns: 1fr 90px 70px 30px; gap: 4px; }
	.fut-gpa-col-head { grid-template-columns: 1fr 90px 70px 30px; gap: 4px; }
	.fut-gpa-plan-fields { grid-template-columns: 1fr; }
}
