/* CheckBarriere Admin Styles */

.cb-dashboard-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 16px;
	margin: 20px 0;
}

.cb-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
}

.cb-card h3 {
	margin-top: 0;
	font-size: 14px;
	color: #1d2327;
}

/* Score circle container */
.cb-score-container {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
}

/* Progress bar */
.cb-progress-bar {
	background: #e5e7eb;
	border-radius: 4px;
	height: 20px;
	overflow: hidden;
	margin: 10px 0;
}

.cb-progress-fill {
	background: #3b82f6;
	height: 100%;
	border-radius: 4px;
	transition: width 0.5s ease;
}

/* Violations grid */
.cb-violations-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 16px 0;
}

.cb-violation-card {
	text-align: center;
	padding: 12px;
	background: #f9fafb;
	border-radius: 4px;
	border: 1px solid #e5e7eb;
}

.cb-violation-count {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.cb-violation-label {
	font-size: 12px;
	color: #6b7280;
	margin-top: 4px;
}

/* Results area */
.cb-results-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 16px;
}

.cb-results-stats {
	display: flex;
	gap: 24px;
	margin-bottom: 16px;
	font-size: 14px;
	color: #4b5563;
}

/* BFSG badge */
.cb-bfsg-badge {
	display: inline-block;
	font-size: 14px;
}

/* Scan history table */
.cb-status-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
}

.cb-status-completed { background: #dcfce7; color: #166534; }
.cb-status-running { background: #dbeafe; color: #1e40af; }
.cb-status-queued { background: #f3f4f6; color: #374151; }
.cb-status-failed { background: #fee2e2; color: #991b1b; }

/* Score colors */
.cb-score-green { color: #22c55e; font-weight: 700; }
.cb-score-yellow { color: #eab308; font-weight: 700; }
.cb-score-red { color: #ef4444; font-weight: 700; }

/* Scan form */
.cb-scan-form {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 16px 0;
}

.cb-scan-form input[type="url"] {
	min-width: 350px;
}

/* Responsive */
@media (max-width: 782px) {
	.cb-violations-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cb-dashboard-cards {
		grid-template-columns: 1fr;
	}

	.cb-scan-form {
		flex-direction: column;
		align-items: stretch;
	}

	.cb-scan-form input[type="url"] {
		min-width: auto;
	}
}
