/**
 * Content Refresh Assistant Admin Styles
 */

.contref-admin-container {
	max-width: 800px;
	margin-top: 20px;
}

.contref-form-section {
	background: #fff;
	padding: 20px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	margin-bottom: 20px;
}

.contref-form-section label {
	display: block;
	margin-bottom: 10px;
}

.contref-post-select {
	min-width: 300px;
	margin-right: 10px;
	padding: 8px;
}

.contref-loading {
	padding: 20px;
	background: #f0f6fc;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.contref-loading .spinner {
	float: none;
	margin: 0;
}

.contref-results {
	background: #fff;
	padding: 20px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
}

.contref-results h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.contref-results-section {
	margin-bottom: 25px;
}

.contref-results-section h3 {
	color: #1d2327;
	font-size: 14px;
	margin-bottom: 10px;
}

.contref-metric-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
	margin-bottom: 20px;
}

.contref-metric-item {
	background: #f6f7f7;
	padding: 15px;
	border-radius: 4px;
	text-align: center;
}

.contref-metric-value {
	font-size: 24px;
	font-weight: 600;
	color: #2271b1;
}

.contref-metric-label {
	font-size: 12px;
	color: #646970;
	margin-top: 5px;
}

.contref-priority-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 3px;
	font-weight: 600;
	font-size: 12px;
}

.contref-priority-p0 {
	background: #facfd2;
	color: #8a1e1e;
}

.contref-priority-p1 {
	background: #fcf0c9;
	color: #7d5e00;
}

.contref-priority-p2 {
	background: #d1f0d1;
	color: #1e7d1e;
}

.contref-task-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.contref-task-item {
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 10px;
}

.contref-task-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.contref-task-type {
	font-weight: 600;
	color: #1d2327;
}

.contref-task-meta {
	font-size: 12px;
	color: #646970;
}

.contref-task-why {
	color: #646970;
	font-style: italic;
	margin-bottom: 10px;
}

.contref-task-instructions {
	margin: 0;
	padding-left: 20px;
}

.contref-task-instructions li {
	margin-bottom: 5px;
}

.contref-link-suggestion {
	background: #f6f7f7;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.contref-link-title {
	font-weight: 600;
	margin-bottom: 5px;
}

.contref-link-title a {
	color: #2271b1;
	text-decoration: none;
}

.contref-link-title a:hover {
	text-decoration: underline;
}

.contref-link-meta {
	font-size: 12px;
	color: #646970;
}

.contref-error {
	margin-top: 20px;
}

.contref-json-output {
	background: #1d2327;
	color: #50c878;
	padding: 15px;
	border-radius: 4px;
	overflow-x: auto;
	font-family: monospace;
	font-size: 12px;
	white-space: pre-wrap;
	word-wrap: break-word;
}
