/**
 * Settings Page Styles
 *
 * @package SimplePostPreviewReview
 */

/* ============================================
   DASHBOARD PAGE
   ============================================ */

.sppr-dashboard-status {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 12px;
}

.sppr-status-awaiting {
	background: #f0f0f1;
	color: #646970;
}

.sppr-status-approved {
	background: #d5f4e6;
	color: #00783c;
}

.sppr-status-not-approved {
	background: #fef7f1;
	color: #b32d2e;
}

.sppr-comment-preview {
	background: #f6f7f7;
	padding: 8px;
	border-radius: 4px;
	border-left: 3px solid #dcdcde;
	font-size: 13px;
}

.sppr-edits-badge {
	text-decoration: none;
}

.sppr-badge-edits {
	display: inline-block;
	padding: 5px 10px;
	background: #e5f5fa;
	color: #0073aa;
	border-radius: 4px;
	font-weight: 600;
	font-size: 12px;
	transition: all 0.2s;
}

.sppr-edits-badge:hover .sppr-badge-edits {
	background: #0073aa;
	color: white;
	transform: translateY(-1px);
}

.sppr-dashboard-actions {
	display: flex;
	gap: 5px;
	align-items: center;
	flex-wrap: wrap;
}

.sppr-dashboard-revoke {
	color: #b32d2e;
	border-color: #b32d2e;
}

.sppr-dashboard-revoke:hover {
	background: #b32d2e;
	color: white;
}

.sppr-dashboard-revoke:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

tr.sppr-removing {
	opacity: 0.5;
}

/* ============================================
   SETTINGS / CLEANUP PAGE
   ============================================ */

.sppr-cleanup-section {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
}

.sppr-cleanup-section h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

.sppr-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin: 20px 0;
}

.sppr-stat-card {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.sppr-stat-icon {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: #2271b1;
	opacity: 0.7;
}

.sppr-stat-content {
	flex: 1;
}

.sppr-stat-number {
	font-size: 32px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1;
}

.sppr-stat-label {
	font-size: 13px;
	color: #646970;
	margin-top: 5px;
}

.sppr-db-size {
	text-align: center;
	color: #646970;
	margin: 10px 0 0 0;
}

.sppr-cleanup-table {
	margin-top: 15px;
}

.sppr-cleanup-table td {
	vertical-align: middle;
	padding: 15px 10px;
}

.sppr-cleanup-table .description {
	margin: 5px 0 0 0;
}

.sppr-cleanup-btn-all {
	position: relative;
}

.sppr-count-badge-all {
	display: none;
	position: absolute;
	top: -8px;
	right: -8px;
	background: #d63638;
	color: white;
	border-radius: 10px;
	padding: 2px 6px;
	font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.sppr-count-badge-all.sppr-has-count {
	display: block;
}
