/* GXP Certificate Verification — Plugin Styles */

.gxp-verify-wrapper {
	max-width: 800px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ── Form Card ──────────────────────────────────────────────────────── */
.gxp-verify-form-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 30px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gxp-verify-form-card h3 {
	margin: 0 0 6px 0;
	font-size: 22px;
	color: #1a2744;
}

.gxp-verify-subtitle {
	margin: 0 0 20px 0;
	color: #666;
	font-size: 14px;
}

/* ── Input + Button Row ─────────────────────────────────────────────── */
.gxp-verify-input-group {
	display: flex;
	gap: 10px;
}

.gxp-verify-input-group input[type="text"] {
	flex: 1;
	padding: 12px 16px;
	font-size: 15px;
	border: 2px solid #d0d5dd;
	border-radius: 6px;
	outline: none;
	transition: border-color 0.2s;
	letter-spacing: 0.5px;
	font-family: "Courier New", monospace;
}

.gxp-verify-input-group input[type="text"]:focus {
	border-color: #1a2744;
}

.gxp-verify-input-group button {
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: #1a2744;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
	white-space: nowrap;
}

.gxp-verify-input-group button:hover {
	background: #b32450;
}

/* ── Result Cards ───────────────────────────────────────────────────── */
.gxp-verify-result {
	border-radius: 8px;
	padding: 24px 30px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gxp-verify-valid {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}

.gxp-verify-invalid {
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.gxp-verify-invalid p {
	margin: 10px 0 0;
	color: #7f1d1d;
}

/* ── Badge ──────────────────────────────────────────────────────────── */
.gxp-verify-badge {
	display: inline-block;
	padding: 6px 16px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 4px;
	color: #166534;
	background: #dcfce7;
	margin-bottom: 16px;
}

.gxp-verify-badge-fail {
	color: #991b1b;
	background: #fee2e2;
}

/* ── Details Table ──────────────────────────────────────────────────── */
.gxp-verify-details {
	width: 100%;
	border-collapse: collapse;
}

.gxp-verify-details th,
.gxp-verify-details td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
	font-size: 14px;
}

.gxp-verify-details th {
	width: 160px;
	color: #374151;
	font-weight: 600;
}

.gxp-verify-details td {
	color: #111827;
}

.gxp-verify-details tr:last-child th,
.gxp-verify-details tr:last-child td {
	border-bottom: none;
}

/* ── Certificate Canvas ─────────────────────────────────────────────── */
.gxp-verify-canvas-wrap {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #d1fae5;
}

.gxp-verify-canvas-wrap h4 {
	margin: 0 0 16px 0;
	font-size: 16px;
	color: #1a2744;
}

.gxp-verify-canvas-wrap .certificate-preview {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.gxp-verify-canvas-error {
	color: #92400e;
	background: #fffbeb;
	padding: 12px 16px;
	border: 1px solid #fde68a;
	border-radius: 6px;
	font-size: 14px;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.gxp-verify-input-group {
		flex-direction: column;
	}

	.gxp-verify-input-group button {
		padding: 12px;
	}

	.gxp-verify-form-card {
		padding: 20px;
	}

	.gxp-verify-details th {
		width: 120px;
	}
}
