/* Network Services Dashboard Styles */

.network-tweaks-dashboard {
	padding: 0;
}

/* Cumulative Impact Section */
.cumulative-impact-section {
	margin: 1.5rem 0;
}

.cumulative-impact-section h3 {
	margin-bottom: 1rem;
	font-size: 1.2rem;
	color: #333;
}

.impact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.impact-card {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 1.5rem;
	text-align: center;
	border-left: 4px solid;
	transition: transform 0.2s, box-shadow 0.2s;
}

.impact-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.impact-card.impact-primary {
	border-color: #0066cc;
}

.impact-card.impact-info {
	border-color: #17a2b8;
}

.impact-card.impact-success {
	border-color: #28a745;
}

.impact-card.impact-warning {
	border-color: #ffc107;
}

.impact-icon {
	font-size: 2rem;
	display: block;
	margin-bottom: 0.5rem;
}

.impact-value {
	font-size: 2.5rem;
	font-weight: bold;
	color: #333;
	line-height: 1;
}

.impact-label {
	font-size: 0.9rem;
	color: #666;
	margin-top: 0.5rem;
}

/* Network Mode Status */
.network-mode-status {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 1.25rem;
	border-radius: 8px;
	margin: 1.5rem 0;
	color: white;
}

.network-mode-status h3 {
	color: white;
	margin-bottom: 0.75rem;
	font-size: 1.1rem;
}

.mode-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.mode-indicator {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.mode-icon {
	font-size: 1.5rem;
}

.mode-name {
	font-size: 1.1rem;
	font-weight: 600;
}

.sync-status {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
}

.status-label {
	opacity: 0.9;
}

.status-value {
	font-weight: 600;
	background: rgba(255, 255, 255, 0.2);
	padding: 0.25rem 0.75rem;
	border-radius: 12px;
}

/* Components Grid Section */
.components-grid-section {
	margin: 2rem 0;
}

.components-grid-section h3 {
	margin-bottom: 1rem;
	font-size: 1.2rem;
	color: #333;
}

.components-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1.5rem;
}

/* Component Card */
.component-card {
	background: white;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 1.25rem;
	transition: box-shadow 0.2s, transform 0.2s;
	position: relative;
}

.component-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

.component-card.status-running {
	border-left: 4px solid #28a745;
}

.component-card.status-stopped {
	border-left: 4px solid #dc3545;
}

.component-card.status-n\/a {
	border-left: 4px solid #6c757d;
}

/* Component Header */
.component-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1rem;
	gap: 0.5rem;
}

.component-title {
	flex: 1;
	min-width: 0;
}

.component-title h4 {
	margin: 0 0 0.375rem 0;
	font-size: 1.1rem;
	font-weight: 600;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.component-status {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.component-status.status-running {
	background: #d4edda;
	color: #155724;
}

.component-status.status-stopped {
	background: #f8d7da;
	color: #721c24;
}

.component-status.status-n\/a {
	background: #e9ecef;
	color: #6c757d;
}

/* Install Badge */
.install-badge {
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

.install-badge.install-installed {
	background: #d1ecf1;
	color: #0c5460;
}

.install-badge.install-available {
	background: #fff3cd;
	color: #856404;
}

.install-badge.install-partial {
	background: #f8d7da;
	color: #721c24;
}

.install-badge.install-n\/a {
	background: #e9ecef;
	color: #6c757d;
}

/* Component Impact */
.component-impact {
	margin: 1rem 0;
}

.impact-row {
	display: flex;
	align-items: center;
	padding: 0.375rem 0;
	font-size: 0.9rem;
	color: #495057;
}

.impact-row .impact-icon {
	margin-right: 0.6rem;
	font-size: 1.1rem;
	width: 1.5rem;
	text-align: center;
}

.impact-row .impact-text {
	flex: 1;
}

/* Component Contribution */
.component-contribution {
	font-size: 0.8rem;
	color: #6c757d;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #e9ecef;
	font-style: italic;
}

.component-contribution small {
	font-weight: 600;
	color: #495057;
}

/* Component Actions */
.component-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.component-actions .btn {
	flex: 1;
	font-size: 0.875rem;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	border: 1px solid #dee2e6;
	background: white;
	color: #495057;
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
}

.component-actions .btn:hover {
	background: #f8f9fa;
	border-color: #adb5bd;
}

.component-actions .btn-primary {
	background: #0066cc;
	border-color: #0066cc;
	color: white;
}

.component-actions .btn-primary:hover {
	background: #0052a3;
	border-color: #0052a3;
}

.component-actions .btn-link {
	border-color: transparent;
	color: #0066cc;
}

.component-actions .btn-link:hover {
	background: #e7f3ff;
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 3rem 1rem;
	color: #6c757d;
}

.empty-state p {
	font-size: 1.1rem;
	margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.impact-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	}

	.components-grid {
		grid-template-columns: 1fr;
	}

	.impact-card {
		padding: 1rem;
	}

	.impact-icon {
		font-size: 1.5rem;
	}

	.impact-value {
		font-size: 2rem;
	}

	.mode-info {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
	.component-card {
		background: #2d3748;
		border-color: #4a5568;
	}

	.component-title h4 {
		color: #e2e8f0;
	}

	.impact-row {
		color: #cbd5e0;
	}

	.impact-card {
		background: #2d3748;
	}

	.impact-value {
		color: #e2e8f0;
	}

	.impact-label {
		color: #a0aec0;
	}
}
