/**
 * Schema Monitor admin screen (enqueued on monitor submenu only).
 *
 * @package ANDPLUS_SchemaBridge
 */

.andplus-sb-monitor-upgrade-notice {
	max-width: 720px;
}

.andplus-sb-monitor-page .andplus-sb-monitor-section {
	margin-bottom: 2rem;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 1.25rem 1.5rem;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.andplus-sb-monitor-page .andplus-sb-monitor-section:last-of-type {
	margin-bottom: 0;
}

.andplus-sb-monitor-page .andplus-sb-monitor-hero {
	margin-bottom: 2.5rem;
}

.andplus-sb-monitor-page .andplus-sb-monitor-hero .button-hero {
	margin-top: 0.5rem;
}

.andplus-sb-monitor-page .andplus-sb-monitor-section > .title {
	margin: 0 0 0.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #dcdcde;
	font-size: 1.1em;
}

.andplus-sb-monitor-page .andplus-sb-monitor-section > .description {
	margin: 0 0 1rem;
	color: #50575e;
	font-size: 0.9375rem;
}

.andplus-sb-monitor-page .andplus-sb-monitor-subsection {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid #dcdcde;
}

.andplus-sb-monitor-page .andplus-sb-monitor-subsection > .title {
	margin: 0 0 0.5rem;
	font-size: 1em;
	font-weight: 600;
}

.andplus-sb-monitor-page .andplus-sb-form-actions {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #dcdcde;
}

.andplus-sb-monitor-page .andplus-sb-form-actions .button {
	margin-right: 0.5rem;
}

.andplus-sb-monitor-page .andplus-sb-monitor-urls {
	max-width: 720px;
}

.andplus-sb-monitor-page .andplus-sb-monitor-row {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 0.5rem;
}

.andplus-sb-monitor-page .andplus-sb-monitor-row input[type="url"] {
	flex: 1;
	min-width: 0;
}

.andplus-sb-monitor-page .andplus-sb-monitor-row input[type="text"].andplus-sb-monitor-label {
	width: 12em;
}

.andplus-sb-monitor-page .andplus-sb-monitor-row input[type="radio"] {
	margin: 0;
}

.andplus-sb-monitor-page .andplus-sb-monitor-results {
	margin-top: 1.5rem;
}

.andplus-sb-monitor-page .andplus-sb-monitor-results table {
	border-collapse: collapse;
	width: 100%;
	max-width: 720px;
}

.andplus-sb-monitor-page .andplus-sb-monitor-results th,
.andplus-sb-monitor-page .andplus-sb-monitor-results td {
	padding: 8px 12px;
	text-align: left;
	border: 1px solid #c3c4c7;
}

.andplus-sb-monitor-page .andplus-sb-monitor-results th {
	background: #f6f7f7;
}

.andplus-sb-monitor-page .andplus-sb-monitor-results tr.andplus-sb-status-mismatch {
	background: #fcf0f1;
}

.andplus-sb-monitor-page .andplus-sb-monitor-results tr.andplus-sb-status-error {
	background: #fcf9e8;
}

.andplus-sb-monitor-overlay {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.andplus-sb-monitor-overlay[aria-hidden="true"] {
	display: none;
}

.andplus-sb-monitor-modal {
	background: #fff;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	min-width: 280px;
	text-align: center;
}

.andplus-sb-monitor-modal .andplus-sb-spinner {
	width: 40px;
	height: 40px;
	margin: 0 auto 1rem;
	border: 3px solid #dcdcde;
	border-top-color: #2271b1;
	border-radius: 50%;
	animation: andplus-sb-spin 0.8s linear infinite;
}

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

.andplus-sb-monitor-modal p {
	margin: 0;
	font-size: 0.9375rem;
	color: #1d2327;
}

.andplus-sb-health-box,
.andplus-sb-monitor-page .widefat {
	box-sizing: border-box;
	max-width: 720px;
}

.andplus-sb-health-box {
	margin-bottom: 1.5rem;
	padding: 1.25rem 1.5rem;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
}

.andplus-sb-health-box h3 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.andplus-sb-health-gauge {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.andplus-sb-health-circle {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #f0f0f1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	line-height: 1.1;
}

.andplus-sb-health-circle .andplus-sb-health-score-num {
	font-size: 1.5rem;
	display: block;
}

.andplus-sb-health-circle .andplus-sb-health-score-max {
	font-size: 0.7rem;
	font-weight: 400;
	opacity: 0.9;
	display: block;
}

.andplus-sb-health-circle.score-high {
	color: #00a32a;
	border: 4px solid #00a32a;
}

.andplus-sb-health-circle.score-mid {
	color: #dba617;
	border: 4px solid #dba617;
}

.andplus-sb-health-circle.score-low {
	color: #d63638;
	border: 4px solid #d63638;
}

.andplus-sb-health-breakdown {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	color: #50575e;
}

.andplus-sb-health-low-note {
	margin: 0.5rem 0 0;
	padding: 0.5rem 0.75rem;
	background: #fff;
	border-left: 4px solid #dba617;
	font-size: 0.8125rem;
	color: #50575e;
}

.andplus-sb-health-disclaimer {
	margin: 0.75rem 0 0;
	padding: 0.75rem;
	background: #fff;
	border-left: 4px solid #2271b1;
	font-size: 0.8125rem;
	color: #50575e;
}
