/* Nigeria Tax Calculator - Styles */

.ntc-wrapper {
	--ntc-teal: #14b8a6;
	--ntc-teal-dark: #0d9488;
	--ntc-text: #1f2937;
	--ntc-muted: #6b7280;
	--ntc-border: #e5e7eb;
	--ntc-bg-soft: #f9fafb;
	--ntc-green: #16a34a;
	--ntc-red: #dc2626;

	max-width: 720px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ntc-text);
	box-sizing: border-box;
}

.ntc-wrapper *,
.ntc-wrapper *::before,
.ntc-wrapper *::after {
	box-sizing: border-box;
}

.ntc-header {
	text-align: center;
	margin-bottom: 24px;
}

.ntc-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--ntc-text);
}

.ntc-subtitle {
	font-size: 15px;
	color: var(--ntc-muted);
	max-width: 560px;
	margin: 0 auto;
	line-height: 1.5;
}

/* Card */
.ntc-card {
	background: #ffffff;
	border: 1px solid var(--ntc-border);
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ntc-field {
	margin-bottom: 18px;
}

.ntc-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ntc-field-row .ntc-field {
	margin-bottom: 18px;
}

.ntc-field label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ntc-text);
	margin-bottom: 8px;
}

.ntc-tooltip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--ntc-border);
	color: var(--ntc-muted);
	font-size: 11px;
	font-style: italic;
	font-weight: 700;
	cursor: help;
	position: relative;
	flex-shrink: 0;
}

.ntc-tooltip::after {
	content: attr(data-tip);
	position: absolute;
	bottom: 130%;
	left: 50%;
	transform: translateX(-50%);
	background: #111827;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	font-style: normal;
	padding: 8px 10px;
	border-radius: 6px;
	width: 220px;
	line-height: 1.4;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease;
	pointer-events: none;
	z-index: 20;
}

.ntc-tooltip:hover::after,
.ntc-tooltip:focus::after {
	opacity: 1;
	visibility: visible;
}

.ntc-field input[type="text"],
.ntc-field select {
	width: 100%;
	padding: 11px 14px;
	font-size: 15px;
	border: 1px solid var(--ntc-border);
	border-radius: 8px;
	background: #ffffff;
	color: var(--ntc-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.ntc-field select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 36px;
}

.ntc-field input[type="text"]:focus,
.ntc-field select:focus {
	outline: none;
	border-color: var(--ntc-teal);
	box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.ntc-button-row {
	display: flex;
	gap: 12px;
	margin-top: 8px;
}

.ntc-btn {
	flex: 1;
	padding: 13px 20px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.05s ease;
}

.ntc-btn:active {
	transform: translateY(1px);
}

.ntc-btn-primary {
	background: var(--ntc-teal);
	color: #ffffff;
}

.ntc-btn-primary:hover {
	background: var(--ntc-teal-dark);
}

.ntc-btn-secondary {
	background: #ffffff;
	color: var(--ntc-text);
	border: 1px solid var(--ntc-border);
}

.ntc-btn-secondary:hover {
	background: var(--ntc-bg-soft);
}

.ntc-error {
	color: var(--ntc-red);
	font-size: 13px;
	margin: 12px 0 0;
	font-weight: 500;
}

/* Results */
.ntc-results {
	margin-top: 24px;
	background: #ffffff;
	border: 1px solid var(--ntc-border);
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	animation: ntc-fade-in 0.25s ease;
}

@keyframes ntc-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ntc-results-summary {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-bottom: 20px;
}

.ntc-result-box {
	background: var(--ntc-bg-soft);
	border: 1px solid var(--ntc-border);
	border-radius: 10px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ntc-result-highlight {
	background: rgba(20, 184, 166, 0.08);
	border-color: rgba(20, 184, 166, 0.35);
	grid-column: 1 / -1;
}

.ntc-result-label {
	font-size: 13px;
	color: var(--ntc-muted);
	font-weight: 500;
}

.ntc-result-value {
	font-size: 22px;
	font-weight: 700;
	color: var(--ntc-teal-dark);
}

.ntc-result-highlight .ntc-result-value {
	font-size: 28px;
}

.ntc-exempt-note {
	background: rgba(22, 163, 74, 0.08);
	border: 1px solid rgba(22, 163, 74, 0.3);
	color: #14532d;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	margin: 0 0 20px;
}

.ntc-breakdown h3,
.ntc-reliefs h3,
.ntc-info-section h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--ntc-text);
}

.ntc-table-scroll {
	overflow-x: auto;
}

.ntc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.ntc-table th {
	text-align: left;
	font-weight: 600;
	color: var(--ntc-muted);
	padding: 10px 12px;
	border-bottom: 2px solid var(--ntc-border);
	white-space: nowrap;
}

.ntc-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--ntc-border);
	white-space: nowrap;
}

.ntc-table tbody tr:last-child td {
	border-bottom: none;
}

.ntc-reliefs {
	margin-top: 24px;
}

.ntc-reliefs ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ntc-reliefs li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--ntc-border);
	font-size: 14px;
}

.ntc-reliefs li:last-child {
	border-bottom: none;
	font-weight: 700;
}

.ntc-reliefs li span {
	color: var(--ntc-muted);
}

/* Info section */
.ntc-info-section {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--ntc-border);
}

.ntc-info-section p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ntc-text);
}

.ntc-static-table {
	margin-bottom: 16px;
}

.ntc-disclaimer {
	font-size: 12px;
	color: var(--ntc-muted);
	font-style: italic;
	margin-top: 16px;
}

/* Responsive */
@media (max-width: 560px) {
	.ntc-title {
		font-size: 22px;
	}

	.ntc-card,
	.ntc-results {
		padding: 20px;
	}

	.ntc-field-row {
		grid-template-columns: 1fr;
	}

	.ntc-results-summary {
		grid-template-columns: 1fr;
	}

	.ntc-button-row {
		flex-direction: column;
	}
}
