/* VERITAS RAG Dashboard Styles */

.main-content {
	padding: 20px;
	max-width: 1400px;
	margin: 0 auto;
}

.content-card {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	padding: 30px;
}

.page-header {
	margin-bottom: 40px;
}

.page-header h1 {
	font-size: 32px;
	color: #1e293b;
	margin: 0 0 8px 0;
}

.subtitle {
	color: #64748b;
	font-size: 16px;
	margin: 0;
}

/* Overall Stats */
.dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.stat-card {
	background: #f8fafc;
	padding: 24px;
	border-radius: 12px;
	border: 2px solid #e2e8f0;
	text-align: center;
	position: relative;
}

.stat-label {
	font-size: 14px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
	margin-bottom: 12px;
}

.stat-value {
	font-size: 36px;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 12px;
}

#readinessGauge {
	max-width: 120px;
	max-height: 120px;
	margin: 0 auto;
}

/* RAG Distribution */
.rag-distribution {
	background: #f8fafc;
	padding: 24px;
	border-radius: 12px;
	margin-bottom: 40px;
}

.rag-distribution h3 {
	margin: 0 0 20px 0;
	font-size: 20px;
	color: #1e293b;
}

.rag-counts {
	display: flex;
	gap: 20px;
	justify-content: space-around;
}

.rag-count {
	flex: 1;
	padding: 20px;
	background: white;
	border-radius: 8px;
	text-align: center;
	border: 3px solid #e2e8f0;
}

.rag-count.red {
	border-color: #ef4444;
}

.rag-count.amber {
	border-color: #f59e0b;
}

.rag-count.green {
	border-color: #10b981;
}

.rag-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #64748b;
}

.rag-value {
	display: block;
	font-size: 32px;
	font-weight: 700;
	color: #1e293b;
}

/* P0 Libraries Grid */
.p0-libraries-section {
	margin-bottom: 40px;
}

.p0-libraries-section h2 {
	font-size: 24px;
	color: #1e293b;
	margin: 0 0 24px 0;
}

.p0-libraries-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.p0-card {
	background: white;
	border-radius: 12px;
	padding: 24px;
	border: 3px solid #e2e8f0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
}

.p0-card:hover {
	ransform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.p0-card.status-green {
	border-color: #10b981;
	background: #f0fdf4;
}

.p0-card.status-amber {
	border-color: #f59e0b;
	background: #fffbeb;
}

.p0-card.status-red {
	border-color: #ef4444;
	background: #fef2f2;
}

.p0-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.p0-icon {
	font-size: 32px;
}

.p0-status-badge {
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.p0-status-badge.status-green {
	background: #d1fae5;
	color: #065f46;
}

.p0-status-badge.status-amber {
	background: #fef3c7;
	color: #92400e;
}

.p0-status-badge.status-red {
	background: #fee2e2;
	color: #991b1b;
}

.p0-card h3 {
	font-size: 18px;
	color: #1e293b;
	margin: 0 0 12px 0;
}

.p0-score {
	font-size: 42px;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 8px;
}

.p0-message {
	font-size: 14px;
	color: #64748b;
	margin-bottom: 12px;
}

.p0-meta {
	display: flex;
	gap: 12px;
	font-size: 13px;
	color: #64748b;
}

/* Charts */
.charts-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 24px;
	margin-bottom: 40px;
}

.chart-box {
	background: #f8fafc;
	padding: 24px;
	border-radius: 12px;
	border: 2px solid #e2e8f0;
}

.chart-box h3 {
	font-size: 18px;
	color: #1e293b;
	margin: 0 0 20px 0;
}

.chart-box canvas {
	max-height: 300px;
}

/* Gaps Section */
.gaps-section {
	margin-bottom: 40px;
}

.gaps-section h2 {
	font-size: 24px;
	color: #1e293b;
	margin: 0 0 20px 0;
}

#gaps-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#gaps-table thead {
	background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

#gaps-table th {
	padding: 16px;
	text-align: left;
	color: white;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
}

#gaps-table tbody tr {
	border-bottom: 1px solid #e2e8f0;
	ransition: background 0.2s ease;
}

#gaps-table tbody tr:hover {
	background: #f8fafc;
}

#gaps-table td {
	padding: 16px;
	color: #1e293b;
}

.priority-badge {
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.priority-badge.high {
	background: #fee2e2;
	color: #991b1b;
}

.priority-badge.medium {
	background: #fef3c7;
	color: #92400e;
}

.priority-badge.low {
	background: #dbeafe;
	color: #1e40af;
}

/* Recent Scans */
.scans-section {
	margin-bottom: 40px;
}

.scans-section h2 {
	font-size: 24px;
	color: #1e293b;
	margin: 0 0 20px 0;
}

#scans-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.scan-item {
	padding: 20px;
	background: white;
	border-radius: 8px;
	border-left: 4px solid #cbd5e1;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.scan-item.status-green {
	border-left-color: #10b981;
	background: #f0fdf4;
}

.scan-item.status-amber {
	border-left-color: #f59e0b;
	background: #fffbeb;
}

.scan-item.status-red {
	border-left-color: #ef4444;
	background: #fef2f2;
}

.scan-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.scan-header strong {
	font-size: 16px;
	color: #1e293b;
}

.scan-status {
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.scan-status.status-green {
	background: #d1fae5;
	color: #065f46;
}

.scan-status.status-amber {
	background: #fef3c7;
	color: #92400e;
}

.scan-status.status-red {
	background: #fee2e2;
	color: #991b1b;
}

.scan-details {
	display: flex;
	gap: 20px;
	font-size: 13px;
	color: #64748b;
	flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
	.dashboard-stats {
		grid-template-columns: 1fr;
	}
	
	.p0-libraries-grid {
		grid-template-columns: 1fr;
	}
	
	.charts-container {
		grid-template-columns: 1fr;
	}
}
