/* --- Reporter Portal Dashboard & Registration --- */

:root {
	--rntc-primary: #D71920;
	--rntc-primary-hover: #b0141a;
	--rntc-bg: #f4f7f6;
	--rntc-surface: #ffffff;
	--rntc-text: #2c3e50;
	--rntc-text-light: #7f8c8d;
	--rntc-border: #e2e8f0;
	--rntc-success: #10b981;
	--rntc-warning: #f59e0b;
	--rntc-danger: #ef4444;
}

/* Form Styles */
.rntc-reporter-form-wrapper {
	max-width: 580px;
	margin: 40px auto;
	background: var(--rntc-surface);
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.05);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--rntc-text);
}
.rntc-reporter-form-header {
	text-align: center;
	margin-bottom: 30px;
}
.rntc-reporter-form-header img {
	max-height: 60px;
	margin-bottom: 15px;
}
.rntc-reporter-form-header h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: var(--rntc-primary);
}
.rntc-reporter-form-header p {
	color: var(--rntc-text-light);
	margin-top: 5px;
}

.rntc-form-group {
	margin-bottom: 20px;
}
.rntc-form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 14px;
}
.rntc-form-group input[type="text"],
.rntc-form-group input[type="email"],
.rntc-form-group input[type="password"],
.rntc-form-group select,
.rntc-form-group textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid var(--rntc-border);
	border-radius: 6px;
	font-size: 15px;
	transition: all 0.2s ease;
	background: #fdfdfd;
	box-sizing: border-box;
}
.rntc-form-group input:focus,
.rntc-form-group textarea:focus {
	border-color: var(--rntc-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
	background: #fff;
}
.rntc-file-drop {
	border: 2px dashed var(--rntc-border);
	border-radius: 6px;
	padding: 15px;
	background: #fafbfc;
}
.rntc-btn {
	display: inline-block;
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	text-align: center;
	transition: background 0.2s ease;
}
.rntc-btn-primary {
	background: var(--rntc-primary);
	color: #fff;
}
.rntc-btn-primary:hover {
	background: var(--rntc-primary-hover);
}

/* Dashboard Layout */
.rntc-dashboard-wrapper {
	display: flex;
	gap: 30px;
	background: var(--rntc-surface);
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.05);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--rntc-text);
	margin: 20px 0;
}
.rntc-dash-sidebar {
	width: 250px;
	flex-shrink: 0;
	border-right: 1px solid var(--rntc-border);
	padding-right: 20px;
}
.rntc-dash-user {
	text-align: center;
	margin-bottom: 30px;
}
.rntc-dash-user img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--rntc-bg);
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	margin-bottom: 10px;
}
.rntc-dash-user h4 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}
.rntc-user-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	margin-top: 5px;
}
.rntc-badge-active { background: #e6f7e9; color: var(--rntc-success); }
.rntc-badge-pending { background: #fff3cd; color: var(--rntc-warning); }

.rntc-dash-nav {
	list-style: none;
	padding: 0;
	margin: 0;
}
.rntc-dash-nav li {
	margin-bottom: 8px;
}
.rntc-nav-btn {
	display: block;
	padding: 12px 15px;
	color: var(--rntc-text);
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.2s;
}
.rntc-nav-btn.active, .rntc-nav-btn:hover {
	background: rgba(215, 25, 32, 0.08);
	color: var(--rntc-primary);
}

.rntc-dash-content {
	flex: 1;
	min-width: 0;
}
.rntc-dash-header {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--rntc-border);
}
.rntc-dash-header h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
}

/* Wallet Cards */
.rntc-wallet-cards {
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
}
.rntc-card {
	flex: 1;
	background: var(--rntc-surface);
	padding: 25px;
	border-radius: 10px;
	text-align: center;
	border: 1px solid var(--rntc-border);
	box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.rntc-card h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: var(--rntc-text-light);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.rntc-card p {
	margin: 0;
	font-size: 28px;
	font-weight: 800;
	color: var(--rntc-text);
}
.rntc-card-highlight {
	background: linear-gradient(135deg, var(--rntc-primary), var(--rntc-primary-hover));
	border: none;
	color: #fff;
}
.rntc-card-highlight h4, .rntc-card-highlight p {
	color: #fff;
}

/* Tables */
.rntc-table {
	width: 100%;
	border-collapse: collapse;
}
.rntc-table th, .rntc-table td {
	padding: 15px;
	text-align: left;
	border-bottom: 1px solid var(--rntc-border);
}
.rntc-table th {
	background: #f8fafc;
	font-weight: 600;
	color: var(--rntc-text-light);
	font-size: 13px;
	text-transform: uppercase;
}
.rntc-table td {
	font-size: 15px;
}
.rntc-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}
.status-publish { background: #e6f7e9; color: var(--rntc-success); }
.status-pending { background: #fff3cd; color: var(--rntc-warning); }
.status-rejected { background: #fcebeb; color: var(--rntc-danger); }
.status-unpaid { background: #fff3cd; color: var(--rntc-warning); }
.status-paid { background: #e6f7e9; color: var(--rntc-success); }

@media (max-width: 768px) {
	.rntc-dashboard-wrapper {
		flex-direction: column;
	}
	.rntc-dash-sidebar {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid var(--rntc-border);
		padding-right: 0;
		padding-bottom: 20px;
	}
	.rntc-wallet-cards {
		flex-direction: column;
	}
	.rntc-dash-nav {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
	}
	.rntc-dash-nav li {
		margin: 0;
	}
}

/* --- Dual-Sided Exact ID Card Layout --- */
.rntc-id-card-body {
	font-family: Arial, sans-serif;
	background: #eee;
	margin: 0;
	padding: 40px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}
.id-card-wrapper {
	width: 54mm;
	height: 86mm;
	background: #fff;
	box-shadow: 0 0 15px rgba(0,0,0,0.2);
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
}

/* Front Side */
.id-header-red {
	background: #D71920;
	height: 12mm;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.id-header-red h1 {
	color: #fff;
	margin: 0;
	font-size: 24px;
	font-weight: 900;
	letter-spacing: 4px;
	font-family: "Times New Roman", Times, serif;
	transform: scaleX(1.5);
}

.id-logo-container {
	text-align: center;
	margin-top: 5mm;
	height: 15mm;
}
.id-logo-container img {
	max-height: 100%;
	max-width: 90%;
}

.id-middle-section {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 0 4mm;
	margin-top: 2mm;
}
.id-qr {
	width: 15mm;
	height: 15mm;
	margin-top: 2mm;
}
.id-qr img {
	width: 100%;
	height: 100%;
}
.id-photo {
	width: 22mm;
	height: 26mm;
	border: 1px solid #ddd;
}
.id-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.id-details {
	text-align: center;
	margin-top: 2mm;
	font-size: 11px;
	line-height: 1.3;
}
.id-details .id-name {
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 1mm;
}
.id-details .id-contact {
	margin-bottom: 2mm;
}

.id-validity-section {
	display: flex;
	justify-content: space-between;
	padding: 0 3mm;
	font-size: 8px;
	margin-top: 1mm;
}
.id-signature-section {
	text-align: right;
	padding-right: 4mm;
	margin-top: -2mm;
	font-size: 8px;
}
.id-signature-section img {
	max-height: 10mm;
	display: block;
	margin-left: auto;
	margin-bottom: 1px;
}

/* The Bottom Red Ribbon */
.id-bottom-ribbon {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 12mm;
	background: #D71920;
	color: #fff;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	clip-path: polygon(0 20%, 10% 0, 90% 0, 100% 20%, 100% 100%, 0 100%);
}

/* Back Side */
.id-back-address {
	padding: 2mm 4mm;
	font-size: 10px;
	line-height: 1.2;
}
.id-back-heading {
	text-align: center;
	font-weight: bold;
	font-size: 12px;
	text-decoration: underline;
	margin-bottom: 2mm;
	margin-top: 1mm;
}
.id-instructions {
	padding: 0 4mm;
	font-size: 9px;
	line-height: 1.3;
}
.id-instructions ol {
	padding-left: 3mm;
	margin: 0;
}
.id-instructions li {
	margin-bottom: 1mm;
}

.id-back-logo {
	text-align: center;
	margin-top: 3mm;
	height: 12mm;
}
.id-back-logo img {
	max-height: 100%;
	max-width: 60%;
}

@media print {
	.rntc-id-card-body {
		background: #fff;
		padding: 0;
		gap: 5mm;
		align-items: flex-start;
		justify-content: flex-start;
	}
	.id-card-wrapper {
		box-shadow: none;
		border: 1px solid #ccc;
		page-break-inside: avoid;
	}
}

/* --- Formal Letterhead --- */
.rntc-letter-body {
	font-family: "Times New Roman", Times, serif;
	background: #eee;
	padding: 40px;
}
.rntc-letter-wrapper {
	width: 210mm;
	min-height: 297mm;
	background: #fff;
	margin: 0 auto;
	padding: 20mm;
	box-sizing: border-box;
	box-shadow: 0 0 15px rgba(0,0,0,0.1);
	position: relative;
}
.letter-header {
	display: flex;
	align-items: center;
	border-bottom: 3px solid #D71920;
	padding-bottom: 10mm;
	margin-bottom: 10mm;
}
.letter-logo img {
	max-height: 25mm;
	margin-right: 10mm;
}
.letter-brand h1 {
	margin: 0;
	color: #D71920;
	font-size: 28px;
}
.letter-brand p {
	margin: 5px 0 0 0;
	font-size: 12px;
	color: #555;
}
.letter-date-ref {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10mm;
	font-weight: bold;
}
.letter-content {
	line-height: 1.6;
	font-size: 14pt;
}
.letter-signature {
	margin-top: 20mm;
	text-align: right;
}
.letter-signature img {
	max-height: 15mm;
}
.letter-stamp {
	position: absolute;
	bottom: 30mm;
	right: 40mm;
}
.letter-stamp img {
	width: 35mm;
	height: 35mm;
	opacity: 0.8;
}

@media print {
	.rntc-letter-body { background: #fff; padding: 0; }
	.rntc-letter-wrapper { box-shadow: none; }
}

/* --- Unified Auth Suite --- */
.rntc-auth-tabs {
	display: flex;
	border-bottom: 2px solid var(--rntc-border);
	margin-bottom: 20px;
}
.rntc-auth-tab-btn {
	flex: 1;
	background: none;
	border: none;
	padding: 15px;
	font-size: 16px;
	font-weight: 600;
	color: var(--rntc-text-light);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s;
}
.rntc-auth-tab-btn.active {
	color: var(--rntc-primary);
	border-bottom-color: var(--rntc-primary);
}
.rntc-auth-tab-content {
	display: none;
	animation: rntcFadeIn 0.3s ease;
}
.rntc-auth-tab-content.active {
	display: block;
}
@keyframes rntcFadeIn {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}
.rntc-terms-box {
	height: 100px;
	overflow-y: auto;
	padding: 10px;
	background: #fafbfc;
	border: 1px solid var(--rntc-border);
	border-radius: 6px;
	font-size: 12px;
	margin-bottom: 15px;
	color: var(--rntc-text-light);
}

/* --- Public Verification Badge --- */
.rntc-verify-wrapper {
	max-width: 400px;
	margin: 50px auto;
	background: var(--rntc-surface);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.rntc-verify-header {
	padding: 20px;
	background: #f8fafc;
	border-bottom: 1px solid var(--rntc-border);
}
.rntc-verify-header img {
	max-height: 50px;
}
.rntc-verify-status {
	padding: 15px;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: 1px;
}
.rntc-verify-status.verified {
	background: var(--rntc-success);
	color: #fff;
}
.rntc-verify-status.expired {
	background: var(--rntc-danger);
	color: #fff;
}
.rntc-verify-body {
	padding: 30px 20px;
}
.rntc-verify-photo {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 15px;
	border: 3px solid #eee;
}
.rntc-verify-details {
	font-size: 14px;
	line-height: 1.6;
	color: var(--rntc-text);
}
.rntc-verify-details strong {
	display: block;
	font-size: 18px;
	margin-bottom: 5px;
}
.rntc-verify-footer {
	padding: 15px;
	background: #f8fafc;
	font-size: 12px;
	color: var(--rntc-text-light);
	border-top: 1px solid var(--rntc-border);
}
