/**
 * GoValid Verification Page Styles
 *
 * @package GoValid_QR
 */

.govalid-verify-wrapper {
	max-width: 560px;
	margin: 40px auto;
	padding: 0 20px;
}

.govalid-verify-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.govalid-verify-header {
	background: linear-gradient(135deg, #4169E1 0%, #3154c0 100%);
	color: #fff;
	padding: 28px 32px;
	text-align: center;
}

.govalid-verify-header h1 {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 600;
	color: #fff;
}

.govalid-verify-header p {
	margin: 0;
	font-size: 14px;
	opacity: 0.85;
}

.govalid-verify-body {
	padding: 32px;
}

/* Loading state */
.govalid-verify-loading {
	text-align: center;
	padding: 40px 0;
}

.govalid-verify-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e9ecef;
	border-top-color: #4169E1;
	border-radius: 50%;
	animation: govalid-spin 0.8s linear infinite;
	margin: 0 auto 16px;
}

@keyframes govalid-spin {
	to { transform: rotate(360deg); }
}

.govalid-verify-loading p {
	color: #6c757d;
	font-size: 15px;
	margin: 0;
}

/* Result states */
.govalid-verify-result {
	display: none;
}

.govalid-verify-status {
	text-align: center;
	margin-bottom: 24px;
}

.govalid-verify-status-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.govalid-verify-status-icon svg {
	width: 32px;
	height: 32px;
	fill: none;
	stroke: currentColor;
}

.govalid-verify-status.verified .govalid-verify-status-icon {
	background: #28a745;
	color: #fff;
}

.govalid-verify-status.counterfeit .govalid-verify-status-icon {
	background: #dc3545;
	color: #fff;
}

.govalid-verify-status.inactive .govalid-verify-status-icon {
	background: #f0ad4e;
	color: #fff;
}

.govalid-verify-status h2 {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 600;
}

.govalid-verify-status.verified h2 { color: #28a745; }
.govalid-verify-status.counterfeit h2 { color: #dc3545; }
.govalid-verify-status.inactive h2 { color: #e08e0b; }

.govalid-verify-status .govalid-verify-subtitle {
	color: #6c757d;
	font-size: 14px;
	margin: 0;
}

/* Details table */
.govalid-verify-details {
	width: 100%;
	border-collapse: collapse;
}

.govalid-verify-details tr {
	border-bottom: 1px solid #f0f0f0;
}

.govalid-verify-details tr:last-child {
	border-bottom: none;
}

.govalid-verify-details th {
	padding: 10px 12px 10px 0;
	text-align: left;
	font-weight: 500;
	color: #6c757d;
	font-size: 13px;
	white-space: nowrap;
	width: 120px;
	vertical-align: top;
}

.govalid-verify-details td {
	padding: 10px 0;
	font-size: 14px;
	color: #212529;
	word-break: break-word;
}

.govalid-verify-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
}

.govalid-verify-badge.active {
	background: #d4edda;
	color: #155724;
}

.govalid-verify-badge.inactive {
	background: #fff3cd;
	color: #856404;
}

/* QR Data Fields */
.govalid-verify-data {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f0;
}

.govalid-verify-data h3 {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 600;
	color: #212529;
}

.govalid-verify-data-table {
	width: 100%;
	border-collapse: collapse;
}

.govalid-verify-data-table tr {
	border-bottom: 1px solid #f0f0f0;
}

.govalid-verify-data-table tr:last-child {
	border-bottom: none;
}

.govalid-verify-data-table th {
	padding: 8px 12px 8px 0;
	text-align: left;
	font-weight: 500;
	color: #6c757d;
	font-size: 13px;
	white-space: nowrap;
	width: 140px;
	vertical-align: top;
	text-transform: capitalize;
}

.govalid-verify-data-table td {
	padding: 8px 0;
	font-size: 14px;
	color: #212529;
	word-break: break-word;
}

.govalid-verify-data-table td a {
	color: #4169E1;
	text-decoration: none;
}

.govalid-verify-data-table td a:hover {
	text-decoration: underline;
}

/* Violations */
.govalid-verify-violations {
	margin-top: 20px;
	padding: 16px;
	background: #fff5f5;
	border: 1px solid #fed7d7;
	border-radius: 8px;
}

.govalid-verify-violations h3 {
	margin: 0 0 12px;
	font-size: 15px;
	color: #dc3545;
	font-weight: 600;
}

.govalid-verify-violation-item {
	padding: 8px 0;
	font-size: 14px;
	color: #721c24;
	border-bottom: 1px solid #fed7d7;
}

.govalid-verify-violation-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.govalid-verify-violation-item strong {
	display: block;
	margin-bottom: 2px;
}

/* Error state */
.govalid-verify-error {
	display: none;
	text-align: center;
	padding: 24px 0;
}

.govalid-verify-error-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #f8d7da;
	color: #dc3545;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.govalid-verify-error-icon svg {
	width: 32px;
	height: 32px;
}

.govalid-verify-error h2 {
	margin: 0 0 8px;
	font-size: 18px;
	color: #dc3545;
}

.govalid-verify-error p {
	margin: 0;
	color: #6c757d;
	font-size: 14px;
}

/* Powered by footer */
.govalid-verify-footer {
	text-align: center;
	padding: 16px 32px 20px;
	border-top: 1px solid #f0f0f0;
}

.govalid-powered-by {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #6c757d;
	font-size: 13px;
	text-decoration: none;
}

.govalid-powered-by:hover {
	color: #4169E1;
}

.govalid-powered-by svg {
	flex-shrink: 0;
}

.govalid-powered-by span {
	font-weight: 600;
	color: #4169E1;
}

/* Responsive */
@media (max-width: 600px) {
	.govalid-verify-wrapper {
		margin: 20px auto;
		padding: 0 12px;
	}

	.govalid-verify-header {
		padding: 20px 24px;
	}

	.govalid-verify-body {
		padding: 24px 20px;
	}

	.govalid-verify-details th {
		width: 100px;
	}
}
