.sitestaffr-knowledge-wrap {
	padding: 20px 0;
}

.sitestaffr-knowledge-wrap h1 {
	color: #00838F;
	margin-bottom: 5px;
}

/* Stats Cards */
.sitestaffr-knowledge-stats {
	display: flex;
	gap: 20px;
	margin: 20px 0;
}

.stat-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 16px 24px;
	text-align: center;
	min-width: 140px;
}

.stat-value {
	display: block;
	font-size: 24px;
	font-weight: 700;
	color: #004D40;
}

.stat-label {
	display: block;
	font-size: 13px;
	color: #666;
	margin-top: 4px;
}

/* Sync Controls */
.sitestaffr-knowledge-controls {
	margin: 20px 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.sitestaffr-knowledge-controls .button-primary {
	background: #1FB6CC;
	border-color: #1FB6CC;
}

.sitestaffr-knowledge-controls .button-primary:hover {
	background: #00838F;
	border-color: #00838F;
}

.sitestaffr-knowledge-controls .button-primary:disabled {
	background: #93d5df;
	border-color: #93d5df;
}

.sync-status {
	font-size: 13px;
	color: #666;
}

/* Progress Bar */
.sitestaffr-knowledge-progress {
	margin: 15px 0;
}

.progress-bar {
	height: 8px;
	background: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: #1FB6CC;
	border-radius: 4px;
	width: 0%;
	transition: width 0.3s ease;
}

.progress-text {
	display: block;
	font-size: 12px;
	color: #666;
	margin-top: 4px;
}

/* Content Sections */
.sitestaffr-knowledge-section {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 20px;
}

.sitestaffr-knowledge-section h2 {
	font-size: 16px;
	margin: 0 0 12px;
	color: #004D40;
}

.sitestaffr-knowledge-section h2 label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

/* Content List Items */
.content-item {
	display: flex;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
	gap: 10px;
}

.content-item:last-child {
	border-bottom: none;
}

.content-item label {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.content-item .title {
	flex: 1;
}

.content-item .modified {
	font-size: 12px;
	color: #999;
	min-width: 100px;
	text-align: right;
}

/* Status Dots */
.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

.status-dot.synced {
	background: #10b981;
}

.status-dot.stale {
	background: #f59e0b;
}

.status-dot.unsynced {
	background: #9ca3af;
}

/* Loading and Empty States */
.content-list .loading,
.content-list .empty {
	color: #999;
	font-style: italic;
	padding: 8px 0;
}

/* Error messages */
.sitestaffr-knowledge-error {
	background: #fef2f2;
	border: 1px solid #fee2e2;
	color: #991b1b;
	padding: 12px 16px;
	border-radius: 6px;
	margin: 10px 0;
}

/* Manual Knowledge Badge */
.sitestaffr-chunk-badge {
	display: inline-block;
	vertical-align: middle;
}

.sitestaffr-chunk-manual {
	background: #E0F7FA;
	color: #00838F;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 3px;
	font-weight: 600;
}

.sitestaffr-chunk-hits {
	background: #f0f0f1;
	color: #50575e;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 3px;
	font-weight: 600;
}

/* Manual Knowledge Form */
.sitestaffr-manual-knowledge-form {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 15px 20px;
	margin: 15px 0;
	max-width: 600px;
}

.sitestaffr-manual-knowledge-form h4 {
	margin: 0 0 6px;
	color: #00838F;
}

.sitestaffr-manual-knowledge-form label {
	display: block;
	font-weight: 600;
	margin: 10px 0 4px;
}

.sitestaffr-manual-knowledge-actions {
	margin-top: 12px;
	display: flex;
	gap: 8px;
}
