/**
 * Content Guard Pro - Admin Styles
 *
 * @package ContentGuardPro
 * @since   1.0.0
 */

/* ========================================
   General Admin Styles
   ======================================== */

.wrap.content-guard-pro-dashboard,
.wrap.content-guard-pro-findings,
.wrap.content-guard-pro-scans,
.wrap.content-guard-pro-patterns,
.wrap.content-guard-pro-quarantine,
.wrap.content-guard-pro-reports,
.wrap.content-guard-pro-settings,
.wrap.content-guard-pro-diagnostics,
.wrap.content-guard-pro-help {
	margin-top: 20px;
}

/* Utility Classes */
.cgpro-hidden {
	display: none;
}

.cgpro-inline-form {
	display: inline-block;
	margin: 0;
}

.cgpro-inline-form--spaced {
	margin-right: 10px;
}

.cgpro-spinner-inline {
	float: none;
	margin: 0 5px 0 0;
}

.cgpro-spinner-inline-left {
	float: left;
	margin: 0 10px 0 0;
}

.cgpro-spinner-tight {
	float: none;
	margin: 0;
}

.cgpro-section-spacing {
	margin-top: 20px;
}

.cgpro-section-spacing-lg {
	margin-top: 30px;
}

.cgpro-notice-button {
	margin-left: 10px;
}

.cgpro-icon {
	vertical-align: middle;
}

.cgpro-icon-small {
	width: 16px;
	height: 16px;
}

.cgpro-icon-medium {
	width: 24px;
	height: 24px;
}

.cgpro-icon-large {
	width: 32px;
	height: 32px;
}

.cgpro-icon-xlarge {
	width: 48px;
	height: 48px;
}

.cgpro-icon-xxlarge {
	width: 64px;
	height: 64px;
}

.cgpro-icon-emoji.cgpro-icon-small {
	font-size: 16px;
	line-height: 1;
}

.cgpro-icon-emoji.cgpro-icon-medium {
	font-size: 24px;
	line-height: 1;
}

.cgpro-icon-emoji.cgpro-icon-large {
	font-size: 32px;
	line-height: 1;
}

.cgpro-icon-emoji.cgpro-icon-xlarge {
	font-size: 48px;
	line-height: 1;
}

.cgpro-icon-emoji.cgpro-icon-xxlarge {
	font-size: 64px;
	line-height: 1;
}

/* ========================================
   Findings Page - List Table
   ======================================== */

/* Column Widths */
.column-severity {
	width: 8%;
}

.column-object_type {
	width: 8%;
}

.column-last_seen {
	width: 8%;
}

/* Severity Column */
.content-guard-pro-severity-critical {
	color: #dc3232;
	font-weight: 700;
}

.content-guard-pro-severity-suspicious {
	color: #ff922b;
	font-weight: 600;
}

.content-guard-pro-severity-review {
	color: #50575e;
	font-weight: 500;
}

/* Confidence Column */
.content-guard-pro-confidence-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
}

.content-guard-pro-confidence-value {
	font-weight: 600;
	min-width: 40px;
	font-size: 13px;
}

.content-guard-pro-confidence-bar {
	flex: 1;
	height: 8px;
	background: #f0f0f1;
	border-radius: 4px;
	overflow: hidden;
	max-width: 100px;
}

.content-guard-pro-confidence-fill {
	height: 100%;
	transition: width 0.3s ease;
}

.content-guard-pro-confidence-high {
	background: #dc3232;
}

.content-guard-pro-confidence-medium {
	background: #ff922b;
}

.content-guard-pro-confidence-low {
	background: #50575e;
}

/* Status Badges */
.content-guard-pro-status-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.content-guard-pro-status-open {
	background: #f0f6fc;
	color: #0a69da;
}

.content-guard-pro-status-quarantined {
	background: #fcf0f1;
	color: #d63638;
}

.content-guard-pro-status-ignored {
	background: #f6f7f7;
	color: #50575e;
}

.content-guard-pro-status-resolved {
	background: #edfaef;
	color: #00a32a;
}

/* Excerpt Column */
.content-guard-pro-excerpt-wrap {
	max-width: 400px;
}

.content-guard-pro-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	color: #50575e;
	white-space: normal;
	line-height: 1.4;
}

.content-guard-pro-excerpt-dedup-note {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: #787c82;
	font-style: italic;
	line-height: 1.35;
}

/* Object Type */
.content-guard-pro-object-type {
	display: inline-block;
	padding: 2px 8px;
	background: #f0f0f1;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

/* Rule ID */
.column-rule_id code {
	background: #f6f7f7;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 11px;
	color: #0a69da;
}

/* Row Actions */
.row-actions .content-guard-pro-view-finding,
.row-actions .content-guard-pro-quarantine-finding,
.row-actions .content-guard-pro-unquarantine-finding,
.row-actions .content-guard-pro-ignore-finding,
.row-actions .content-guard-pro-unignore-finding {
	color: #2271b1;
}

.row-actions .content-guard-pro-quarantine-finding {
	color: #d63638;
}

.row-actions .content-guard-pro-action-disabled {
	color: #a7aaad;
	cursor: not-allowed;
}

/* Export Section */
.content-guard-pro-findings-export {
	margin-top: 30px;
	padding: 20px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.content-guard-pro-findings-export h2 {
	margin-top: 0;
	font-size: 16px;
}

/* ========================================
   Dashboard Widgets
   ======================================== */

.content-guard-pro-dashboard-widgets {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px;
	margin-top: 20px;
	align-items: stretch;
}

/* Site health first (headline): spans the wide left column */
.content-guard-pro-site-health {
	min-width: 0;
}

.content-guard-pro-dashboard-widgets > .content-guard-pro-widget {
	height: 100%;
	box-sizing: border-box;
}

/* ========================================
   License Status Banner
   ======================================== */

.cgp-license-banner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	margin: 20px 0;
	border-radius: 4px;
	border-left: 4px solid;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	flex-wrap: wrap;
	gap: 15px;
}

.cgp-license-banner.cgp-tier-badge-free {
	border-left-color: #50575e;
	background: #e5ebeb;
}

.cgp-license-banner.cgp-tier-badge-solo {
	border-left-color: #0073aa;
	background: #e5f5ff;
}

.cgp-license-banner.cgp-tier-badge-agency {
	border-left-color: #2271b1;
	background: #f0f6fc;
}

.cgp-license-banner.cgp-tier-badge-agency-pro {
	border-left-color: #d63638;
	background: #fcf0f1;
}

.cgp-license-banner.cgp-tier-badge-enterprise {
	border-left-color: #764ba2;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.cgp-license-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.cgp-license-label {
	font-weight: 600;
	color: #1d2327;
}

.cgp-license-banner .cgp-tier-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.cgp-license-banner .cgp-tier-badge-free {
	background: #f0f0f1;
	color: #50575e;
}

.cgp-license-banner .cgp-tier-badge-solo {
	background: #e5f5ff;
	color: #0073aa;
}

.cgp-license-banner .cgp-tier-badge-agency {
	background: #f0f6fc;
	color: #2271b1;
}

.cgp-license-banner .cgp-tier-badge-agency-pro {
	background: #fcf0f1;
	color: #d63638;
}

.cgp-license-banner .cgp-tier-badge-enterprise {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

.cgp-license-hint {
	color: #646970;
	font-size: 13px;
	font-style: italic;
}

.cgp-license-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.cgp-license-active {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #00a32a;
	font-weight: 600;
	font-size: 13px;
}

.cgp-license-active .dashicons {
	color: #00a32a;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Free Tier Notice */
.cgp-free-tier-notice {
	display: flex;
	gap: 15px;
	padding: 15px 20px;
	margin: 15px 0 25px 0;
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.cgp-notice-icon {
	flex-shrink: 0;
}

.cgp-notice-icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #856404;
}

.cgp-notice-content {
	flex: 1;
}

.cgp-notice-content strong {
	display: block;
	margin-bottom: 10px;
	color: #856404;
	font-size: 14px;
}

.cgp-notice-content ul {
	margin: 0 0 12px 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 6px;
	color: #856404;
	font-size: 13px;
}

.cgp-notice-content ul li {
	margin-bottom: 0;
	position: relative;
	padding-left: 16px;
}

.cgp-notice-content ul li::before {
	content: '•';
	position: absolute;
	left: 0;
	color: #f59e0b;
	font-weight: bold;
}

.cgp-learn-more {
	color: #856404;
	font-weight: 600;
	text-decoration: none;
	font-size: 13px;
}

.cgp-learn-more:hover {
	color: #664d03;
	text-decoration: underline;
}

@media (max-width: 782px) {
	.cgp-license-banner {
		flex-direction: column;
		align-items: flex-start;
	}

	.cgp-license-info {
		width: 100%;
	}

	.cgp-license-actions {
		width: 100%;
		justify-content: flex-start;
	}

	.cgp-free-tier-notice {
		flex-direction: column;
		gap: 10px;
	}

	.cgp-notice-icon {
		align-self: flex-start;
	}
}

.content-guard-pro-widget {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
}

.content-guard-pro-widget h2 {
	margin-top: 0;
	font-size: 16px;
	border-bottom: 1px solid #f0f0f1;
	padding-bottom: 10px;
}

.content-guard-pro-widget p {
	margin: 10px 0;
}

.content-guard-pro-quick-actions .button {
	margin-right: 8px;
	margin-bottom: 8px;
}

/* Site health widget — dashboard headline (larger donut than Reports “compact”; full chart on Reports) */
.content-guard-pro-site-health > h2 {
	font-size: 18px;
	font-weight: 600;
}

.content-guard-pro-site-health .content-guard-pro-site-health-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 8px;
}

.content-guard-pro-site-health .content-guard-pro-site-health-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 220px;
	padding: 12px 16px;
	text-align: center;
	color: #646970;
}

.content-guard-pro-site-health .content-guard-pro-site-health-empty p {
	margin: 0;
	max-width: 320px;
}

.content-guard-pro-site-health .content-guard-pro-site-health-visual {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 52%;
	min-width: 0;
}

.content-guard-pro-site-health .content-guard-pro-site-health-donut-link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	text-decoration: none;
	color: inherit;
	border-radius: 4px;
	margin: 0;
	padding: 10px 8px 8px;
	transition: background-color 0.15s ease;
	width: 100%;
	box-sizing: border-box;
}

.content-guard-pro-site-health .content-guard-pro-site-health-donut-link:hover,
.content-guard-pro-site-health .content-guard-pro-site-health-donut-link:focus {
	background: #f6f7f7;
	box-shadow: 0 0 0 1px #dcdcde;
	outline: none;
}

.content-guard-pro-site-health .content-guard-pro-site-health-donut-link:focus-visible {
	box-shadow: 0 0 0 2px #2271b1;
}

.content-guard-pro-site-health .cgpro-reports-grade-svg-wrap,
.content-guard-pro-site-health .cgpro-grade-donut__svg-wrap--compact {
	display: flex;
	justify-content: flex-start;
	width: 100%;
}

/* Headline donut: left-aligned, using the left half of the card */
.content-guard-pro-site-health svg.cgpro-grade-donut--compact {
	width: min(74%, 260px);
	min-width: 180px;
	max-width: 100%;
	height: auto;
}

.content-guard-pro-site-health .content-guard-pro-site-health-breakdown {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48%;
	min-width: 0;
}

.content-guard-pro-site-health .content-guard-pro-site-health-categories {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0;
	padding: 0 8px;
	font-size: 12px;
	line-height: 1.45;
	color: #50575e;
}

.content-guard-pro-site-health .content-guard-pro-site-health-category {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
}

.content-guard-pro-site-health .content-guard-pro-site-health-category-swatch {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	flex-shrink: 0;
}

.content-guard-pro-site-health .content-guard-pro-site-health-category-label {
	font-weight: 500;
	color: #1d2327;
}

.content-guard-pro-site-health .content-guard-pro-site-health-category-count {
	font-variant-numeric: tabular-nums;
}

.content-guard-pro-site-health .content-guard-pro-site-health-category-sep {
	color: #8c8f94;
}

.content-guard-pro-site-health .cgpro-reports-severity-legend,
.content-guard-pro-site-health .cgpro-grade-donut__legend--compact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	font-size: 14px;
	color: #50575e;
	line-height: 1.4;
	width: 100%;
}

.content-guard-pro-site-health .cgpro-reports-severity-legend li,
.content-guard-pro-site-health .cgpro-grade-donut__legend--compact li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.content-guard-pro-site-health .cgpro-grade-donut__legend--compact {
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	margin-top: 0;
}

.content-guard-pro-site-health .cgpro-legend-swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	flex-shrink: 0;
	vertical-align: middle;
	margin-right: 2px;
}

.content-guard-pro-site-health .cgpro-legend-critical {
	background: #e24b4a;
}

.content-guard-pro-site-health .cgpro-legend-suspicious {
	background: #ef9f27;
}

.content-guard-pro-site-health .cgpro-legend-review {
	background: #85b7eb;
}

.content-guard-pro-site-health .cgpro-legend-severity-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	text-decoration: none;
	color: #1d2327;
	border-radius: 3px;
	padding: 8px 10px;
	margin: 0;
	font-weight: inherit;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	width: 60%;
	box-sizing: border-box;
}

.content-guard-pro-site-health .cgpro-legend-severity-link:hover,
.content-guard-pro-site-health .cgpro-legend-severity-link:focus {
	color: #2271b1;
	text-decoration: underline;
	outline: none;
}

.content-guard-pro-site-health .cgpro-legend-severity-link:focus-visible {
	box-shadow: 0 0 0 2px #2271b1;
}

.content-guard-pro-site-health-meta {
	margin: 16px 0 0 0;
	font-size: 13px;
	text-align: center;
}

.content-guard-pro-site-health-meta a {
	text-decoration: none;
}

.content-guard-pro-site-health-meta a:hover,
.content-guard-pro-site-health-meta a:focus {
	text-decoration: underline;
}

.content-guard-pro-site-health-meta-sep {
	margin: 0 0.35em;
	color: #8c8f94;
}

/* ========================================
   Admin Bar
   ======================================== */

#wpadminbar #wp-admin-bar-content-guard-pro-admin-bar > .ab-item .ab-icon:before {
	content: '\f332'; /* dashicons-shield-alt */
	font-family: dashicons;
	font-size: 20px;
	top: 3px;
}

#wpadminbar #wp-admin-bar-content-guard-pro-admin-bar .content-guard-pro-admin-bar-badge {
	display: inline-block;
	vertical-align: middle;
	line-height: 1;
	animation: content-guard-pro-pulse 2s infinite;
}

.content-guard-pro-admin-bar-badge {
	background: #d63638;
	color: #fff;
	border-radius: 10px;
	padding: 2px 6px;
	font-size: 11px;
	font-weight: 600;
	margin-left: 5px;
}

.content-guard-pro-admin-bar-critical {
	color: #d63638;
}

@keyframes content-guard-pro-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.7; }
}

/* ========================================
   Responsive Design
   ======================================== */

@media screen and (max-width: 1024px) {
	.content-guard-pro-dashboard-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.content-guard-pro-site-health {
		grid-column: 1 / -1;
	}

	.content-guard-pro-site-health .content-guard-pro-site-health-main {
		gap: 24px;
	}
}

@media screen and (max-width: 782px) {
	.content-guard-pro-dashboard-widgets {
		grid-template-columns: 1fr;
	}

	.content-guard-pro-site-health {
		grid-column: auto;
	}

	.content-guard-pro-site-health .content-guard-pro-site-health-main {
		flex-direction: column;
		align-items: stretch;
	}

	.content-guard-pro-site-health .content-guard-pro-site-health-visual,
	.content-guard-pro-site-health .content-guard-pro-site-health-donut-link,
	.content-guard-pro-site-health .content-guard-pro-site-health-breakdown {
		width: 100%;
	}

	.content-guard-pro-site-health .content-guard-pro-site-health-donut-link {
		align-items: center;
	}

	.content-guard-pro-site-health .content-guard-pro-site-health-categories {
		justify-content: center;
		padding: 0;
	}

	.content-guard-pro-site-health .cgpro-reports-grade-svg-wrap,
	.content-guard-pro-site-health .cgpro-grade-donut__svg-wrap--compact {
		justify-content: center;
	}
	
	.content-guard-pro-confidence-wrapper {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.content-guard-pro-confidence-bar {
		width: 100%;
		max-width: none;
	}
}

/* ========================================
   Help Page
   ======================================== */

.content-guard-pro-help-sections {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.content-guard-pro-help-section {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
}

.content-guard-pro-help-section h2 {
	margin-top: 0;
	font-size: 16px;
}

.content-guard-pro-help-section ul {
	list-style: none;
	padding: 0;
}

.content-guard-pro-help-section ul li {
	padding: 5px 0;
}

/* ========================================
   Settings Page
   ======================================== */

.content-guard-pro-settings-sections {
	margin-top: 20px;
}

.content-guard-pro-settings-sections h2 {
	font-size: 18px;
	margin-top: 30px;
	margin-bottom: 10px;
	border-bottom: 1px solid #f0f0f1;
	padding-bottom: 10px;
}

/* Upgrade Tab */
.nav-tab-upgrade {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff !important;
	border-color: #667eea;
}

.nav-tab-upgrade:hover,
.nav-tab-upgrade.nav-tab-active {
	background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%);
	color: #fff !important;
	border-color: #5568d3;
}

.cgp-upgrade-tab-content {
	margin-top: 20px;
}

.cgp-current-plan {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.cgp-tier-badge {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.cgp-tier-badge-free {
	background: #f0f0f1;
	color: #50575e;
}

.cgp-tier-badge-solo_guard {
	background: #e5f5ff;
	color: #0073aa;
}

.cgp-tier-badge-agency_lite {
	background: #f0f6fc;
	color: #2271b1;
}

.cgp-tier-badge-agency_pro {
	background: #fcf0f1;
	color: #d63638;
}

.cgp-tier-badge-enterprise {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

.cgp-upgrade-button {
	margin-left: 0;
}

.cgp-license-section {
	margin-top: 30px;
	padding: 20px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.cgp-license-section h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 16px;
	color: #1d2327;
}

.cgp-limits-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.cgp-limits-table thead {
	background: #f6f7f7;
}

.cgp-limits-table th {
	padding: 12px;
	text-align: left;
	font-weight: 600;
	border-bottom: 2px solid #dcdcde;
	color: #1d2327;
}

.cgp-limits-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #f0f0f1;
	color: #50575e;
}

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

.cgp-feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 12px;
	margin-top: 15px;
}

.cgp-feature-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 4px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	font-size: 13px;
}

.cgp-feature-item .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.cgp-feature-available {
	background: #edfaef;
	border-color: #00a32a;
	color: #0f5132;
}

.cgp-feature-available .dashicons-yes-alt {
	color: #00a32a;
}

.cgp-feature-locked {
	background: #f6f7f7;
	border-color: #dcdcde;
	color: #646970;
	opacity: 0.7;
}

.cgp-feature-locked .dashicons-lock {
	color: #787c82;
}

/* ========================================
   Setup Wizard
   ======================================== */

.content-guard-pro-setup-wizard {
	max-width: 800px;
	margin: 40px auto;
}

.content-guard-pro-wizard-progress {
	margin: 30px 0;
}

.content-guard-pro-wizard-progress-bar {
	height: 10px;
	background: #e0e0e0;
	border-radius: 5px;
	overflow: hidden;
}

.content-guard-pro-wizard-progress-fill {
	height: 100%;
	background: #2271b1;
	transition: width 0.3s ease;
	width: 0;
}

.content-guard-pro-wizard-progress-fill--step-1 {
	width: 50%;
}

.content-guard-pro-wizard-progress-fill--step-2 {
	width: 100%;
}

.content-guard-pro-progress-text {
	text-align: center;
	margin-top: 10px;
	color: #646970;
	font-size: 14px;
}

.content-guard-pro-wizard-content {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 40px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.content-guard-pro-wizard-step {
	min-height: 400px;
}

.content-guard-pro-wizard-step h2 {
	margin-top: 0;
	color: #1d2327;
}

.content-guard-pro-step-icon {
	text-align: center;
	font-size: 60px;
	margin-bottom: 20px;
}

.content-guard-pro-step-icon .cgpro-icon {
	display: inline-block;
}

.content-guard-pro-step-icon .cgpro-icon img {
	max-width: 80px;
	height: auto;
}

.content-guard-pro-option-card {
	display: block;
	box-sizing: border-box;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 15px;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 2px solid #dcdcde;
}

.content-guard-pro-option-header {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	gap: 10px;
}

.content-guard-pro-option-header input[type="radio"],
.content-guard-pro-option-header input[type="checkbox"] {
	margin-right: 0;
	margin-top: 0;
}

.content-guard-pro-option-header h3 {
	margin: 0;
	flex: 1;
}

.content-guard-pro-option-card p {
	margin: 10px 0 0 28px;
	color: #646970;
}

.cgpro-feature-matrix {
	margin: 20px 0;
	padding: 10px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	overflow: hidden;
}

.cgpro-feature-matrix table {
	width: 100%;
	border-collapse: collapse;
}

.cgpro-feature-matrix th {
	background: #f6f7f7;
	padding: 12px;
	text-align: left;
	font-weight: 600;
	border-bottom: 2px solid #dcdcde;
}

.cgpro-feature-matrix td {
	padding: 10px 12px;
	border-bottom: 1px solid #f0f0f1;
}

.cgpro-feature-matrix tr:last-child td {
	border-bottom: none;
}

.cgpro-feature-matrix .check {
	color: #00a32a;
	font-weight: bold;
}

.cgpro-feature-matrix .dash {
	color: #c3c4c7;
}

.content-guard-pro-wizard-actions {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.content-guard-pro-wizard-actions .button-primary {
	font-size: 16px;
	padding: 8px 24px;
	height: auto;
}

.content-guard-pro-feature-list {
	list-style: none;
	padding: 0;
}

.content-guard-pro-feature-list li {
	padding: 10px 0;
	padding-left: 30px;
	position: relative;
}

.content-guard-pro-feature-list li:before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: #00a32a;
	font-weight: bold;
	font-size: 18px;
}

.cgpro-wizard-description {
	font-size: 16px;
}

.cgpro-wizard-callout {
	margin-top: 30px;
	padding: 15px;
	background: #f0f6fc;
	border-left: 4px solid #2271b1;
}

.cgpro-wizard-summary {
	margin: 30px 0;
	padding: 20px;
	background: #f6f7f7;
	border-radius: 4px;
}

.cgpro-wizard-summary-list {
	list-style: none;
	padding: 0;
}

.cgpro-wizard-summary-item {
	padding: 8px 0;
}

.cgpro-wizard-section {
	margin: 30px 0;
}

.cgpro-wizard-indent {
	margin-left: 25px;
}

.cgpro-wizard-next-steps {
	padding: 15px;
	background: #f0f6fc;
	border-left: 4px solid #2271b1;
}

/* ========================================
   Diagnostics Page
   ======================================== */

.content-guard-pro-environment-checks,
.content-guard-pro-diagnostics-actions,
.content-guard-pro-logs {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
}

.content-guard-pro-environment-checks h2,
.content-guard-pro-diagnostics-actions h2,
.content-guard-pro-logs h2 {
	margin-top: 0;
	font-size: 16px;
}

.content-guard-pro-diagnostics-actions .button {
	margin-right: 8px;
}

/* ========================================
   Scans Page
   ======================================== */

/* Scan Mode Badges */
.content-guard-pro-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.content-guard-pro-badge-quick {
	background: #e5f5ff;
	color: #0073aa;
}

.content-guard-pro-badge-standard {
	background: #f0f0f1;
	color: #2c3338;
}

/* Status Badges */
.content-guard-pro-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
}

.content-guard-pro-status-running {
	background: #ffebcc;
	color: #996300;
}

.content-guard-pro-status-completed {
	background: #d5f4e6;
	color: #00664e;
}

.content-guard-pro-status-failed {
	background: #ffdddd;
	color: #d63638;
}

.content-guard-pro-status-critical {
	background: #fbeaea;
	color: #d63638;
}

.content-guard-pro-status-suspicious {
	background: #fff8e5;
	color: #996800;
}

.content-guard-pro-status-review {
	background: #edf4fb;
	color: #2271b1;
}

/* Scheduler Status Indicators */
.content-guard-pro-status-active {
	color: #00a32a;
	font-weight: 600;
}

.content-guard-pro-status-inactive {
	color: #787c82;
	font-weight: 400;
}

.content-guard-pro-status-error {
	color: #d63638;
	font-weight: 600;
}

/* Scheduler Status Section */
.content-guard-pro-scheduler-status ul {
	list-style: none;
	padding: 0;
	margin: 10px 0;
}

.content-guard-pro-scheduler-status li {
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f1;
}

.content-guard-pro-scheduler-status li:last-child {
	border-bottom: none;
}

.content-guard-pro-scheduler-status .description {
	color: #646970;
	font-size: 12px;
	font-style: italic;
	margin-left: 5px;
}

/* Scan Controls */
.content-guard-pro-scan-actions {
	margin-top: 15px;
}

.content-guard-pro-scan-actions form {
	margin: 0;
}

.content-guard-pro-scan-actions select {
	margin: 0 8px;
	vertical-align: middle;
}

.content-guard-pro-scan-actions .button {
	vertical-align: middle;
}

/* Performance Metrics */
.content-guard-pro-throttle-badge {
	background: #fcf9e8;
	color: #8c7e14;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

/* Findings Count in Scans Table */
.content-guard-pro-findings-none {
	color: #646970;
}

/* Scan History Table */
.content-guard-pro-scan-history {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
}

.content-guard-pro-scan-history h2 {
	margin-top: 0;
	font-size: 18px;
}

/* ========================================
   Quarantine System
   ======================================== */

/* Quarantine Notice (shown on quarantined content) */
.content-guard-pro-quarantine-notice {
	background: #ffebcc;
	border-left: 4px solid #ff922b;
	padding: 12px;
	margin-bottom: 15px;
	border-radius: 3px;
}

.content-guard-pro-quarantine-notice strong {
	color: #996300;
}

/* Neutralized Links */
.content-guard-pro-neutralized-link {
	color: #646970;
	text-decoration: line-through;
	cursor: not-allowed;
	background: #f0f0f1;
	padding: 2px 4px;
	border-radius: 2px;
	font-style: italic;
}

.content-guard-pro-neutralized-link:hover {
	background: #dcdcde;
}

/* Admin Quarantine Indicator */
.content-guard-pro-quarantine-indicator {
	display: inline-block;
	background: #ffebcc;
	color: #996300;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-left: 8px;
}

/* Quarantine Actions in Findings Table */
.content-guard-pro-action-quarantine {
	color: #ff922b;
}

.content-guard-pro-action-unquarantine {
	color: #00a32a;
}

/* ========================================
   Active Scans Widget - Real-time Progress
   ======================================== */

.content-guard-pro-active-scans-widget {
	margin-top: 30px;
}

.content-guard-pro-widget-box {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	min-height: 120px;
}

/* Loading State */
.content-guard-pro-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 40px 20px;
	color: #646970;
}

/* No Active Scans */
.content-guard-pro-no-active-scans {
	text-align: center;
	padding: 40px 20px;
	color: #646970;
}

.content-guard-pro-no-active-scans .dashicons {
	margin-bottom: 15px;
}

.cgpro-no-active-scans-icon {
	font-size: 48px;
	opacity: 0.3;
}

.content-guard-pro-no-active-scans p {
	margin: 5px 0;
}

.content-guard-pro-no-active-scans .description {
	font-size: 13px;
	color: #787c82;
}

/* Active Scan Item */
.content-guard-pro-active-scan {
	background: #f6f7f7;
	border-left: 4px solid #2271b1;
	padding: 15px 20px;
	margin-bottom: 15px;
	border-radius: 3px;
	transition: all 0.3s ease;
}

.content-guard-pro-active-scan:last-child {
	margin-bottom: 0;
}

.content-guard-pro-active-scan:hover {
	background: #f0f1f2;
	border-left-color: #0c5088;
}

/* Scan Header */
.content-guard-pro-scan-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.content-guard-pro-scan-header strong {
	font-size: 14px;
	color: #1d2327;
}

/* Scan Status Badge */
.content-guard-pro-scan-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.content-guard-pro-status-pending {
	background: #f0f0f1;
	color: #50575e;
}

.content-guard-pro-status-running {
	background: #c3e7ff;
	color: #0c5088;
	animation: content-guard-pro-pulse 2s ease-in-out infinite;
}

.content-guard-pro-status-paused {
	background: #ffecb3;
	color: #996300;
}

.content-guard-pro-status-cancelled {
	background: #f7d4d6;
	color: #8b1c28;
}

.content-guard-pro-status-completed {
	background: #d0f0d0;
	color: #0f6e0f;
}

.content-guard-pro-status-failed {
	background: #f7d4d6;
	color: #8b1c28;
}

/* Progress Bar */
.content-guard-pro-scan-progress {
	margin-bottom: 15px;
}

.content-guard-pro-progress-bar-container {
	background: #e0e0e0;
	border-radius: 10px;
	height: 24px;
	overflow: hidden;
	position: relative;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.content-guard-pro-progress-bar {
	background: linear-gradient(90deg, #2271b1, #135e96);
	height: 100%;
	transition: width 0.5s ease-out;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 10px;
	position: relative;
	overflow: hidden;
}

.content-guard-pro-progress-bar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.3) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	animation: content-guard-pro-shimmer 2s infinite;
}

.content-guard-pro-progress-text {
	color: #646970;
	font-size: 14px;
	font-weight: 700;
	position: relative;
	z-index: 1;
}

/* Scan Stats */
.content-guard-pro-scan-stats {
	display: flex;
	gap: 25px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.content-guard-pro-stat {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #50575e;
}

.content-guard-pro-stat .dashicons {
	color: #787c82;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.content-guard-pro-stat strong {
	font-weight: 600;
}

.content-guard-pro-stat-value {
	color: #1d2327;
	font-weight: 600;
}

.content-guard-pro-findings-count {
	color: #dc3232;
}

/* Scan Meta */
.content-guard-pro-scan-meta {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #dcdcde;
}

.content-guard-pro-updated-indicator {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: #787c82;
	font-style: italic;
}

/* Animations */
@keyframes content-guard-pro-pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

@keyframes content-guard-pro-shimmer {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(100%);
	}
}

@keyframes content-guard-pro-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.content-guard-pro-spin {
	animation: content-guard-pro-spin 2s linear infinite;
}

.content-guard-pro-fade-in {
	animation: content-guard-pro-fade-in 0.3s ease-in;
}

@keyframes content-guard-pro-fade-in {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Flash Update Animation (for table cells) */
.content-guard-pro-flash-update {
	animation: content-guard-pro-flash 1s ease-out;
}

@keyframes content-guard-pro-flash {
	0%, 100% {
		background-color: transparent;
	}
	50% {
		background-color: #c3e7ff;
	}
}

/* Responsive Design */
@media (max-width: 782px) {
	.content-guard-pro-scan-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.content-guard-pro-scan-stats {
		flex-direction: column;
		gap: 10px;
	}
	
	.content-guard-pro-progress-text {
		font-size: 11px;
	}
}

/* ========================================
   Scan Details Modal
   ======================================== */

.content-guard-pro-scan-details-modal {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	padding: 20px;
}

.content-guard-pro-scan-details-modal .cgpro-scan-details-loading {
	text-align: center;
	padding: 40px 20px;
}

.content-guard-pro-scan-details-modal .cgpro-scan-details-loading .spinner {
	float: none;
	margin: 0 10px 0 0;
}

.content-guard-pro-scan-details-modal .cgpro-scan-details-content {
	padding: 0;
}

.content-guard-pro-scan-details-modal .cgpro-detail-row {
	margin: 15px 0;
	padding: 10px 0;
	border-bottom: 1px solid #e5e5e5;
}

.content-guard-pro-scan-details-modal .cgpro-detail-row:last-child {
	border-bottom: none;
}

.content-guard-pro-scan-details-modal .cgpro-detail-row strong {
	display: inline-block;
	min-width: 140px;
	color: #23282d;
	font-weight: 600;
}

.content-guard-pro-scan-details-modal .cgpro-findings-summary {
	border-bottom: 2px solid #ddd;
	padding-bottom: 15px;
}

.content-guard-pro-scan-details-modal .cgpro-findings-breakdown {
	margin-left: 140px;
	margin-top: 10px;
}

.content-guard-pro-scan-details-modal .cgpro-approximation-note {
	margin-top: 5px;
	padding: 8px;
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	color: #856404;
	font-size: 12px;
}

.content-guard-pro-scan-details-modal .cgpro-findings-breakdown-row {
	margin: 5px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.content-guard-pro-scan-details-modal .cgpro-findings-total-row {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #ddd;
}

.content-guard-pro-scan-details-modal .cgpro-findings-total-note {
	color: #666;
	font-size: 11px;
}

.content-guard-pro-scan-details-modal .cgpro-no-findings {
	margin: 5px 0;
	color: #46b450;
}

.content-guard-pro-scan-details-modal .cgpro-detail-row--cta {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #ddd;
}

.content-guard-pro-scan-details-modal .cgpro-findings-breakdown > div {
	display: flex;
	align-items: center;
	gap: 10px;
}

.content-guard-pro-scan-details-modal .cgpro-findings-breakdown strong {
	min-width: auto;
	font-size: 16px;
}

/* ========================================
   Finding Details Modal
   ======================================== */

.content-guard-pro-finding-details-modal {
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.cgpro-finding-details-title {
	margin-top: 0;
}

.cgpro-finding-details-meta {
	margin-bottom: 20px;
}

.cgpro-finding-details-badge {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: #fff;
}

.cgpro-finding-details-meta-item {
	margin-left: 10px;
	color: #666;
	font-size: 13px;
}

.cgpro-finding-details-card {
	background: #f6f7f7;
	padding: 15px;
	border-left: 4px solid #666;
	margin-bottom: 20px;
}

.cgpro-finding-details-heading {
	margin-top: 0;
	font-size: 14px;
	color: #333;
}

.cgpro-finding-details-table {
	width: 100%;
	font-size: 13px;
}

.cgpro-finding-details-label {
	padding: 5px 10px 5px 0;
	color: #666;
	width: 120px;
}

.cgpro-finding-details-label--top {
	vertical-align: top;
}

.cgpro-finding-details-code {
	background: #fff;
	padding: 2px 6px;
	border-radius: 3px;
}

.cgpro-finding-details-link {
	color: #2271b1;
}

.cgpro-finding-details-section {
	margin-bottom: 20px;
}

.cgpro-finding-details-excerpt {
	background: #fff;
	border: 1px solid #ddd;
	padding: 10px;
	border-radius: 3px;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	max-height: 150px;
	overflow-y: auto;
	word-wrap: break-word;
}

.cgpro-finding-details-dedup-note {
	margin: 8px 0 0;
	font-size: 12px;
	color: #787c82;
	font-style: italic;
	line-height: 1.4;
}

.cgpro-finding-details-details {
	font-size: 13px;
}

.cgpro-finding-details-summary {
	cursor: pointer;
	color: #2271b1;
	font-weight: 600;
}

.cgpro-finding-details-extra {
	margin-top: 10px;
	padding: 10px;
	background: #f6f7f7;
	border-radius: 3px;
}

.cgpro-finding-details-extra-title {
	margin: 0 0 10px 0;
}

.cgpro-finding-details-fingerprint {
	display: block;
	background: #fff;
	padding: 8px;
	border-radius: 3px;
	word-break: break-all;
	font-size: 11px;
}

.cgpro-finding-details-extra-meta {
	margin: 15px 0 5px 0;
}

.cgpro-finding-details-extra-pre {
	background: #fff;
	padding: 10px;
	border-radius: 3px;
	font-size: 11px;
	overflow-x: auto;
}

.cgpro-finding-details-loading {
	font-size: 14px;
	color: #666;
}

.cgpro-severity-critical .cgpro-finding-details-badge {
	background: #d63638;
}

.cgpro-severity-critical .cgpro-finding-details-card {
	border-left-color: #d63638;
}

.cgpro-severity-suspicious .cgpro-finding-details-badge {
	background: #dba617;
	color: #1d2327;
}

.cgpro-severity-suspicious .cgpro-finding-details-card {
	border-left-color: #dba617;
}

.cgpro-severity-review .cgpro-finding-details-badge {
	background: #72aee6;
	color: #1d2327;
}

.cgpro-severity-review .cgpro-finding-details-card {
	border-left-color: #72aee6;
}

