/**
 * File: admin/css/consensuspress-admin.css
 * Version: 1.5.21
 * Purpose: Admin UI styles: settings page, create/rescue/batch layouts, consensus badge.
 * Author: Mohan Iyer
 * Email: mohan@pixels.net.nz
 * Project: ConsensusPress AI Publisher
 * License: GPL v2 or later
 * Reusable: No
 */

/* =============================================================================
   SPRINT 1 — SETTINGS PAGE STYLES
   ============================================================================= */

.consensuspress-api-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 3px;
	font-weight: 600;
}

.consensuspress-api-status.connected {
	background: #d4edda;
	color: #155724;
}

.consensuspress-api-status.disconnected {
	background: #f8d7da;
	color: #721c24;
}

.consensuspress-settings-section {
	margin-bottom: 30px;
}

.consensuspress-test-connection-result {
	margin-top: 10px;
	padding: 8px 12px;
	border-left: 4px solid #ccc;
}

.consensuspress-test-connection-result.success {
	border-color: #00a32a;
	background: #f0f8f0;
}

.consensuspress-test-connection-result.error {
	border-color: #d63638;
	background: #fcf0f1;
}

/* =============================================================================
   SPRINT 2 — CREATE PAGE STYLES
   ============================================================================= */

.consensuspress-create-form {
	max-width: 800px;
}

.consensuspress-create-form .topic-field {
	width: 100%;
}

.consensuspress-create-form .context-field {
	width: 100%;
	min-height: 100px;
}

.consensuspress-create-status {
	margin-top: 20px;
}

.consensuspress-create-status .spinner {
	float: left;
	margin-right: 10px;
}

.consensuspress-create-status .success {
	color: #00a32a;
}

.consensuspress-create-status .error {
	color: #d63638;
}

/* =============================================================================
   SPRINT 3 — META BOX + POLLING STATUS STYLES
   ============================================================================= */

.cp-meta-box {
	font-size: 13px;
}

.cp-meta-box .cp-row {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	border-bottom: 1px solid #f0f0f0;
}

.cp-meta-box .cp-row:last-child {
	border-bottom: none;
}

.cp-meta-box .cp-label {
	color: #666;
}

.cp-meta-box .cp-value {
	font-weight: 600;
}

.cp-score-high {
	color: #00a32a;
}

.cp-score-moderate {
	color: #dba617;
}

.cp-score-low {
	color: #d63638;
}

.cp-meta-box-empty {
	color: #999;
	font-style: italic;
}

.consensuspress-create-status .polling {
	color: #2271b1;
}

/* =============================================================================
   SPRINT 7 — RESCUE PAGE STYLES
   : post selector too narrow — titles truncate.
   
   ============================================================================= */

#consensuspress-rescue-post-selector,
.consensuspress-rescue-form select {
	min-width: 400px;
}