/* Certificate Verification Plugin Styles */

/* Verification Container */
.cv-verification-container {
	max-width: 800px;
	margin: 40px auto;
	padding: 20px;
}

/* Search Form */
.cv-search-form {
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	margin-bottom: 30px;
}

.cv-search-form h3 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #333;
	font-size: 24px;
}

#cv-verify-form {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

#cv-cert-number {
	flex: 1;
	min-width: 250px;
	padding: 12px 15px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
}

.cv-verify-btn {
	padding: 12px 30px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.3s;
}

.cv-verify-btn:hover {
	background: #005177;
}

/* Loading Spinner */
.cv-loading {
	text-align: center;
	padding: 40px;
}

.cv-spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #0073aa;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Certificate Result */
.cv-certificate-result {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Status Badge */
.cv-status-badge {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 5px;
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 25px;
}

.cv-status-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.cv-status-warning {
	background-color: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.cv-status-error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Certificate Details */
.cv-cert-details {
	margin-bottom: 30px;
}

.cv-detail-row {
	padding: 12px 0;
	border-bottom: 1px solid #eee;
	font-size: 16px;
}

.cv-detail-row:last-child {
	border-bottom: none;
}

.cv-detail-row strong {
	color: #333;
	margin-right: 10px;
}

/* PDF Section */
.cv-pdf-section {
	margin-top: 30px;
}

.cv-pdf-section h4 {
	margin-bottom: 15px;
	color: #333;
	font-size: 20px;
}

.cv-pdf-preview {
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 15px;
}

.cv-pdf-preview iframe {
	display: block;
	border: none;
}

.cv-pdf-actions {
	text-align: center;
}

.cv-btn {
	display: inline-block;
	padding: 12px 30px;
	text-decoration: none;
	border-radius: 4px;
	font-size: 16px;
	transition: all 0.3s;
}

.cv-btn-primary {
	background: #0073aa;
	color: #fff;
}

.cv-btn-primary:hover {
	background: #005177;
	color: #fff;
}

/* Error Message */
.cv-error-message {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	padding: 20px;
	text-align: center;
	color: #721c24;
}

/* Redirect Widget */
.cv-redirect-widget {
	margin: 20px 0;
}

.cv-redirect-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.cv-redirect-input {
	flex: 1;
	min-width: 200px;
	padding: 10px 15px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.cv-redirect-btn {
	padding: 10px 25px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.3s;
}

.cv-redirect-btn:hover {
	background: #005177;
}

/* Responsive Design */
@media (max-width: 768px) {
	.cv-verification-container {
		padding: 15px;
	}
	
	.cv-search-form {
		padding: 20px;
	}
	
	#cv-verify-form {
		flex-direction: column;
	}
	
	#cv-cert-number {
		width: 100%;
	}
	
	.cv-verify-btn {
		width: 100%;
	}
	
	.cv-pdf-preview iframe {
		height: 400px !important;
	}
	
	.cv-redirect-form {
		flex-direction: column;
	}
	
	.cv-redirect-input,
	.cv-redirect-btn {
		width: 100%;
	}
}
