/* Client Guardian Dashboard - Network Access Control Theme  * Version: 0.3.0
 */
/* Copyright (C) 2024 CyberMind.fr - Gandalf  * Version: 0.3.0
 */

:root {
	--cg-bg-primary: #0f0a0a;
	--cg-bg-secondary: #1a1212;
	--cg-bg-tertiary: #251a1a;
	--cg-border: #3d2828;
	--cg-border-light: #4a3333;

	--cg-text-primary: #fafafa;
	--cg-text-secondary: #b8a8a8;
	--cg-text-muted: #8a7575;

	/* SecuBox Brand Colors (Indigo/Purple) */
	--cg-primary: #6366f1;
	--cg-primary-end: #8b5cf6;

	/* Accent Colors */
	--cg-accent-orange: #f97316;
	--cg-accent-amber: #f59e0b;
	--cg-accent-green: #22c55e;
	--cg-accent-blue: #3b82f6;
	--cg-accent-purple: #8b5cf6;
	--cg-accent-cyan: #06b6d4;

	/* State Colors */
	--cg-danger: #ef4444;
	--cg-warning: #f59e0b;
	--cg-success: #16a34a;
	--cg-info: #0284c7;

	/* Primary Gradients (SecuBox Indigo/Purple) */
	--cg-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
	--cg-gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));

	/* Zone Colors (Keep as-is) */
	--cg-zone-private: #22c55e;
	--cg-zone-iot: #f59e0b;
	--cg-zone-kids: #06b6d4;
	--cg-zone-guest: #8b5cf6;
	--cg-zone-quarantine: #ef4444;
	--cg-zone-blocked: #6b7280;

	/* Typography */
	--cg-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
	--cg-font-sans: 'Inter', -apple-system, sans-serif;

	/* Layout */
	--cg-radius: 8px;
	--cg-radius-lg: 12px;
	--cg-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
	--cg-shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
}

/* Base */
.client-guardian-dashboard {
	font-family: var(--cg-font-sans);
	background: var(--cg-bg-primary);
	color: var(--cg-text-primary);
	min-height: 100vh;
	padding: 16px;
}

.client-guardian-dashboard * { box-sizing: border-box; }

/* Header */
.cg-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0 20px;
	border-bottom: 1px solid var(--cg-border);
	margin-bottom: 20px;
}

.cg-logo {
	display: flex;
	align-items: center;
	gap: 14px;
}

.cg-logo-icon {
	width: 52px;
	height: 52px;
	background: var(--cg-gradient);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	box-shadow: var(--cg-shadow-glow);
	position: relative;
}

.cg-logo-icon::after {
	content: '';
	position: absolute;
	inset: -2px;
	background: var(--cg-gradient);
	border-radius: 16px;
	z-index: -1;
	opacity: 0.4;
	filter: blur(12px);
}

.cg-logo-text {
	font-size: 26px;
	font-weight: 700;
}

.cg-logo-text span {
	background: var(--cg-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Stats Grid */
.cg-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.cg-stat-card {
	background: var(--cg-bg-secondary);
	border: 1px solid var(--cg-border);
	border-radius: var(--cg-radius-lg);
	padding: 20px;
	text-align: center;
	transition: all 0.3s;
}

.cg-stat-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--cg-shadow);
}

.cg-stat-icon {
	font-size: 28px;
	margin-bottom: 10px;
}

.cg-stat-value {
	font-size: 32px;
	font-weight: 800;
	font-family: var(--cg-font-mono);
	background: var(--cg-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.cg-stat-label {
	font-size: 12px;
	color: var(--cg-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 4px;
}

/* Status Badge */
.cg-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.cg-status-badge.approved {
	background: rgba(99, 102, 241, 0.15);
	color: var(--cg-primary);
	border: 1px solid rgba(99, 102, 241, 0.3);
}

.cg-status-badge.quarantine {
	background: rgba(239, 68, 68, 0.15);
	color: var(--cg-danger);
	border: 1px solid rgba(239, 68, 68, 0.3);
}

.cg-status-badge.banned {
	background: rgba(107, 114, 128, 0.15);
	color: #6b7280;
	border: 1px solid rgba(107, 114, 128, 0.3);
}

.cg-status-badge.unknown {
	background: rgba(245, 158, 11, 0.15);
	color: var(--cg-accent-amber);
	border: 1px solid rgba(245, 158, 11, 0.3);
}

.cg-status-dot {
	width: 8px;
	height: 8px;
	background: currentColor;
	border-radius: 50%;
	animation: pulse-cg 1.5s ease-in-out infinite;
}

@keyframes pulse-cg {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* Card */
.cg-card {
	background: var(--cg-bg-secondary);
	border: 1px solid var(--cg-border);
	border-radius: var(--cg-radius-lg);
	overflow: hidden;
	margin-bottom: 20px;
}

.cg-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--cg-border);
	background: rgba(0, 0, 0, 0.3);
}

.cg-card-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	font-weight: 600;
}

.cg-card-title-icon { font-size: 22px; }

.cg-card-badge {
	font-family: var(--cg-font-mono);
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 16px;
	background: var(--cg-gradient);
	color: white;
}

.cg-card-body { padding: 20px; }

/* Client List */
.cg-client-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cg-client-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: var(--cg-bg-tertiary);
	border: 1px solid var(--cg-border);
	border-radius: var(--cg-radius);
	transition: all 0.2s;
}

.cg-client-item:hover {
	border-color: var(--cg-primary);
	background: rgba(99, 102, 241, 0.05);
}

.cg-client-item.online {
	border-left: 3px solid var(--cg-accent-green);
}

.cg-client-item.offline {
	border-left: 3px solid var(--cg-text-muted);
	opacity: 0.7;
}

.cg-client-item.quarantine {
	border-left: 3px solid var(--cg-danger);
	background: rgba(239, 68, 68, 0.08);
}

.cg-client-item.banned {
	border-left: 3px solid #6b7280;
	opacity: 0.5;
}

.cg-client-avatar {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	background: var(--cg-bg-secondary);
	border: 1px solid var(--cg-border);
}

.cg-client-info { flex: 1; }

.cg-client-name {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.cg-client-name .online-indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cg-accent-green);
	box-shadow: 0 0 8px var(--cg-accent-green);
}

.cg-client-meta {
	display: flex;
	gap: 16px;
	font-size: 12px;
	color: var(--cg-text-muted);
	font-family: var(--cg-font-mono);
}

.cg-client-zone {
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.cg-client-zone.private { background: rgba(34, 197, 94, 0.15); color: var(--cg-zone-private); }
.cg-client-zone.iot { background: rgba(245, 158, 11, 0.15); color: var(--cg-zone-iot); }
.cg-client-zone.kids { background: rgba(6, 182, 212, 0.15); color: var(--cg-zone-kids); }
.cg-client-zone.guest { background: rgba(139, 92, 246, 0.15); color: var(--cg-zone-guest); }
.cg-client-zone.quarantine { background: rgba(239, 68, 68, 0.15); color: var(--cg-zone-quarantine); }
.cg-client-zone.blocked { background: rgba(107, 114, 128, 0.15); color: var(--cg-zone-blocked); }

.cg-client-traffic {
	text-align: right;
	min-width: 100px;
}

.cg-client-traffic-value {
	font-family: var(--cg-font-mono);
	font-size: 14px;
	font-weight: 600;
}

.cg-client-traffic-label {
	font-size: 10px;
	color: var(--cg-text-muted);
}

.cg-client-actions {
	display: flex;
	gap: 8px;
}

.cg-client-action {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 1px solid var(--cg-border);
	background: var(--cg-bg-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 16px;
}

.cg-client-action:hover {
	background: var(--cg-bg-tertiary);
	border-color: var(--cg-primary);
}

.cg-client-action.approve:hover { border-color: var(--cg-accent-green); background: rgba(34, 197, 94, 0.1); }
.cg-client-action.ban:hover { border-color: var(--cg-danger); background: rgba(220, 38, 38, 0.1); }
.cg-client-action.edit:hover { border-color: var(--cg-accent-blue); background: rgba(59, 130, 246, 0.1); }

/* Threat Indicators */
.cg-threat-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	animation: pulse-threat 2s ease-in-out infinite;
}

@keyframes pulse-threat {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.1);
		opacity: 0.8;
	}
}

.cg-client-item .cg-threat-badge:hover {
	animation: none;
	transform: scale(1.2);
}

/* Zone Cards */
.cg-zones-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.cg-zone-card {
	background: var(--cg-bg-tertiary);
	border: 1px solid var(--cg-border);
	border-radius: var(--cg-radius-lg);
	padding: 20px;
	position: relative;
	overflow: hidden;
	transition: all 0.3s;
}

.cg-zone-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--zone-color);
}

.cg-zone-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--cg-shadow);
}

.cg-zone-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}

.cg-zone-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--zone-color);
	color: var(--zone-color);
}

.cg-zone-title {
	font-size: 17px;
	font-weight: 700;
}

.cg-zone-subtitle {
	font-size: 12px;
	color: var(--cg-text-muted);
}

.cg-zone-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--cg-border);
}

.cg-zone-stat {
	text-align: center;
	padding: 10px;
	background: var(--cg-bg-secondary);
	border-radius: 8px;
}

.cg-zone-stat-value {
	font-family: var(--cg-font-mono);
	font-size: 20px;
	font-weight: 700;
	color: var(--zone-color);
}

.cg-zone-stat-label {
	font-size: 10px;
	color: var(--cg-text-muted);
	text-transform: uppercase;
}

.cg-zone-features {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.cg-zone-feature {
	padding: 4px 8px;
	background: var(--cg-bg-secondary);
	border-radius: 6px;
	font-size: 10px;
	color: var(--cg-text-secondary);
}

.cg-zone-feature.enabled { color: var(--cg-accent-green); }
.cg-zone-feature.disabled { color: var(--cg-text-muted); text-decoration: line-through; }

/* Toggle */
.cg-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: var(--cg-bg-tertiary);
	border-radius: var(--cg-radius);
	margin-bottom: 10px;
}

.cg-toggle-info { display: flex; align-items: center; gap: 12px; }
.cg-toggle-icon { font-size: 20px; }
.cg-toggle-label { font-size: 14px; font-weight: 500; }
.cg-toggle-desc { font-size: 11px; color: var(--cg-text-muted); }

.cg-toggle-switch {
	width: 48px;
	height: 26px;
	background: var(--cg-bg-primary);
	border-radius: 13px;
	position: relative;
	cursor: pointer;
	transition: background 0.3s;
}

.cg-toggle-switch.active { background: var(--cg-primary); }

.cg-toggle-switch::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	background: white;
	border-radius: 50%;
	top: 3px;
	left: 3px;
	transition: transform 0.3s;
}

.cg-toggle-switch.active::after { transform: translateX(22px); }

/* Form */
.cg-form-group { margin-bottom: 16px; }
.cg-form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--cg-text-secondary); }
.cg-form-hint { font-size: 11px; color: var(--cg-text-muted); margin-top: 6px; }

.cg-input,
.cg-select,
.cg-textarea {
	width: 100%;
	padding: 12px 16px;
	background: var(--cg-bg-primary);
	border: 1px solid var(--cg-border);
	border-radius: var(--cg-radius);
	color: var(--cg-text-primary);
	font-size: 14px;
	font-family: var(--cg-font-mono);
	transition: border-color 0.2s;
}

.cg-input:focus,
.cg-select:focus,
.cg-textarea:focus {
	outline: none;
	border-color: var(--cg-primary);
}

.cg-textarea { min-height: 100px; resize: vertical; }

/* Time picker */
.cg-time-range {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cg-time-range .cg-input { width: 120px; }

/* Buttons */
.cg-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border: 1px solid var(--cg-border);
	border-radius: var(--cg-radius);
	background: var(--cg-bg-tertiary);
	color: var(--cg-text-primary);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.cg-btn:hover { border-color: var(--cg-primary); }

.cg-btn-primary {
	background: var(--cg-gradient);
	border: none;
	color: white;
}

.cg-btn-primary:hover {
	box-shadow: var(--cg-shadow-glow);
	transform: translateY(-2px);
}

.cg-btn-success {
	background: var(--cg-accent-green);
	border: none;
	color: white;
}

.cg-btn-danger {
	background: var(--cg-danger);
	border: none;
	color: white;
}

.cg-btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* Alert Preview */
.cg-alert-preview {
	display: flex;
	gap: 16px;
	padding: 16px;
	background: var(--cg-bg-tertiary);
	border-radius: var(--cg-radius);
	border-left: 4px solid var(--cg-danger);
	margin-bottom: 16px;
}

.cg-alert-preview-icon { font-size: 28px; }
.cg-alert-preview-title { font-weight: 600; margin-bottom: 4px; }
.cg-alert-preview-text { font-size: 13px; color: var(--cg-text-secondary); }
.cg-alert-preview-time { font-size: 11px; color: var(--cg-text-muted); margin-top: 8px; font-family: var(--cg-font-mono); }

/* Schedule */
.cg-schedule-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
	margin-bottom: 16px;
}

.cg-schedule-day {
	padding: 12px;
	text-align: center;
	background: var(--cg-bg-tertiary);
	border: 1px solid var(--cg-border);
	border-radius: var(--cg-radius);
	cursor: pointer;
	transition: all 0.2s;
}

.cg-schedule-day.active {
	background: rgba(239, 68, 68, 0.2);
	border-color: var(--cg-danger);
	color: var(--cg-danger);
}

.cg-schedule-day-name { font-size: 11px; font-weight: 600; }

/* Portal Preview */
.cg-portal-preview {
	background: var(--cg-bg-tertiary);
	border: 1px solid var(--cg-border);
	border-radius: var(--cg-radius-lg);
	padding: 30px;
	text-align: center;
	margin: 20px 0;
}

.cg-portal-preview-logo {
	width: 80px;
	height: 80px;
	margin: 0 auto 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
}

.cg-portal-preview-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.cg-portal-preview-subtitle { font-size: 14px; color: var(--cg-text-secondary); margin-bottom: 24px; }

.cg-portal-preview-input {
	max-width: 300px;
	margin: 0 auto 16px;
	padding: 14px 20px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	color: white;
	text-align: center;
}

.cg-portal-preview-btn {
	padding: 14px 40px;
	border-radius: 8px;
	font-weight: 600;
	color: white;
	border: none;
	cursor: pointer;
}

/* Logs */
.cg-log-list { max-height: 400px; overflow-y: auto; }

.cg-log-item {
	display: flex;
	gap: 12px;
	padding: 12px;
	border-bottom: 1px solid var(--cg-border);
	font-size: 13px;
}

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

.cg-log-time {
	font-family: var(--cg-font-mono);
	font-size: 11px;
	color: var(--cg-text-muted);
	min-width: 140px;
}

.cg-log-level {
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	min-width: 60px;
	text-align: center;
}

.cg-log-level.info { background: rgba(59, 130, 246, 0.15); color: var(--cg-accent-blue); }
.cg-log-level.warning { background: rgba(245, 158, 11, 0.15); color: var(--cg-accent-amber); }
.cg-log-level.error { background: rgba(239, 68, 68, 0.15); color: var(--cg-danger); }

.cg-log-message { flex: 1; color: var(--cg-text-secondary); }

/* Empty State */
.cg-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: var(--cg-text-muted);
}

.cg-empty-state-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; }
.cg-empty-state-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--cg-text-secondary); }
.cg-empty-state-text { font-size: 14px; }

/* Responsive */
@media (max-width: 768px) {
	.cg-header { flex-direction: column; gap: 16px; align-items: flex-start; }
	.cg-stats-grid { grid-template-columns: repeat(2, 1fr); }
	.cg-zones-grid { grid-template-columns: 1fr; }
	.cg-client-item { flex-wrap: wrap; }
	.cg-client-traffic { min-width: 100%; margin-top: 10px; text-align: left; }
	.cg-btn-group { flex-direction: column; }
	.cg-btn { width: 100%; justify-content: center; }
}

/* Scrollbar */
.client-guardian-dashboard ::-webkit-scrollbar { width: 8px; height: 8px; }
.client-guardian-dashboard ::-webkit-scrollbar-track { background: var(--cg-bg-tertiary); }
.client-guardian-dashboard ::-webkit-scrollbar-thumb { background: var(--cg-border); border-radius: 4px; }
.client-guardian-dashboard ::-webkit-scrollbar-thumb:hover { background: var(--cg-text-muted); }

/* Loading States */
.cg-status-badge.loading {
	opacity: 0.6;
}

.cg-status-badge.loading .cg-status-dot {
	animation: spin 1s linear infinite;
}

/* Smooth Transitions */
.cg-stat-value {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cg-client-item {
	transition: all 0.3s ease;
}

.cg-stat-card.updated {
	animation: flash 0.5s ease-in-out;
}

/* Animations */
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes flash {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.7; background: rgba(99, 102, 241, 0.1); }
}

@keyframes client-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
	50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.cg-client-item.quarantine { animation: client-pulse 2s infinite; }

/* Wizard Styles */
.cg-wizard {
	max-width: 1400px;
	margin: 0 auto;
	padding: 24px;
}

.cg-wizard-header {
	text-align: center;
	margin-bottom: 48px;
}

.cg-wizard-icon {
	font-size: 72px;
	margin-bottom: 16px;
	animation: float 3s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-10px); }
}

.cg-wizard-title {
	font-size: 32px;
	font-weight: 700;
	color: var(--cg-text-primary);
	margin: 0 0 8px 0;
	background: var(--cg-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.cg-wizard-subtitle {
	font-size: 16px;
	color: var(--cg-text-secondary);
	max-width: 600px;
	margin: 0 auto;
}

.cg-profiles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.cg-profile-card {
	background: var(--cg-bg-secondary);
	border: 2px solid var(--cg-border);
	border-radius: 16px;
	padding: 24px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.cg-profile-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--cg-gradient);
	opacity: 0;
	transition: opacity 0.3s;
}

.cg-profile-card:hover::before {
	opacity: 1;
}

.cg-profile-card:hover {
	transform: translateY(-4px);
	border-color: var(--cg-primary);
	box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.cg-profile-icon {
	font-size: 48px;
	text-align: center;
	margin-bottom: 16px;
}

.cg-profile-name {
	font-size: 20px;
	font-weight: 600;
	color: var(--cg-text-primary);
	text-align: center;
	margin-bottom: 8px;
}

.cg-profile-desc {
	font-size: 14px;
	color: var(--cg-text-secondary);
	text-align: center;
	margin-bottom: 16px;
	min-height: 40px;
}

.cg-profile-zones {
	background: var(--cg-bg-tertiary);
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 16px;
}

.cg-profile-zones strong {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	text-transform: uppercase;
	color: var(--cg-text-muted);
}

.cg-profile-zone-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cg-profile-zone-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	color: white;
}

.cg-profile-more {
	font-size: 12px;
	color: var(--cg-text-muted);
	font-style: italic;
}

.cg-profile-btn {
	width: 100%;
	justify-content: center;
}

.cg-wizard-footer {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	border-radius: 8px;
	padding: 16px 20px;
}

.cg-wizard-note {
	color: var(--cg-text-secondary);
	font-size: 14px;
}

.cg-modal-profile {
	padding: 16px;
}

.cg-modal-profile h3 {
	text-align: center;
	color: var(--cg-primary);
	margin-bottom: 8px;
}

.cg-modal-profile p {
	text-align: center;
	color: var(--cg-text-secondary);
	margin-bottom: 16px;
}

.cg-modal-profile ul {
	list-style: none;
	padding: 0;
}

.cg-modal-profile li {
	padding: 8px 0;
	border-bottom: 1px solid var(--cg-border);
}

.cg-modal-profile li:last-child {
	border-bottom: none;
}

.spinner {
	border: 4px solid rgba(99, 102, 241, 0.1);
	border-top: 4px solid var(--cg-primary);
	border-radius: 50%;
	width: 48px;
	height: 48px;
	animation: spin 1s linear infinite;
	margin: 0 auto;
}

/* Debug Interface Styles */
.cg-debug-controls {
	display: flex;
	gap: 8px;
}

.cg-btn-sm {
	padding: 6px 12px;
	font-size: 13px;
}

.cg-debug-status-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 16px;
}

.cg-debug-status-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cg-debug-status-label {
	font-size: 12px;
	text-transform: uppercase;
	color: var(--cg-text-muted);
	font-weight: 600;
}

.cg-debug-status-value {
	font-size: 14px;
	color: var(--cg-text-primary);
	display: flex;
	align-items: center;
	gap: 8px;
}

.cg-input-sm {
	padding: 6px 10px;
	font-size: 13px;
}

.cg-system-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 12px;
}

.cg-info-item {
	display: flex;
	padding: 8px 0;
	border-bottom: 1px solid var(--cg-border);
}

.cg-info-label {
	font-weight: 600;
	color: var(--cg-text-secondary);
	min-width: 140px;
}

.cg-info-value {
	color: var(--cg-text-primary);
	word-break: break-word;
}

.cg-log-container {
	max-height: 600px;
	overflow-y: auto;
	border: 1px solid var(--cg-border);
	border-radius: 8px;
	background: var(--cg-bg-tertiary);
}

.cg-log-entry {
	padding: 12px;
	border-bottom: 1px solid var(--cg-border);
	font-family: var(--cg-font-mono);
	font-size: 13px;
	transition: background 0.2s;
}

.cg-log-entry:hover {
	background: rgba(99, 102, 241, 0.05);
}

.cg-log-entry:last-child {
	border-bottom: none;
}

.cg-log-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.cg-log-icon {
	font-size: 16px;
}

.cg-log-level {
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
}

.cg-log-error .cg-log-level {
	background: rgba(239, 68, 68, 0.15);
	color: #ef4444;
}

.cg-log-warn .cg-log-level {
	background: rgba(245, 158, 11, 0.15);
	color: #f59e0b;
}

.cg-log-info .cg-log-level {
	background: rgba(59, 130, 246, 0.15);
	color: #3b82f6;
}

.cg-log-debug .cg-log-level {
	background: rgba(139, 92, 246, 0.15);
	color: #8b5cf6;
}

.cg-log-trace .cg-log-level {
	background: rgba(107, 114, 128, 0.15);
	color: #6b7280;
}

.cg-log-time {
	color: var(--cg-text-muted);
	font-size: 11px;
	margin-left: auto;
}

.cg-log-message {
	color: var(--cg-text-primary);
	margin-bottom: 4px;
	line-height: 1.5;
}

.cg-log-details {
	margin-top: 8px;
}

.cg-log-details summary {
	cursor: pointer;
	color: var(--cg-primary);
	font-size: 12px;
	user-select: none;
}

.cg-log-details summary:hover {
	text-decoration: underline;
}

.cg-log-data {
	margin-top: 8px;
	padding: 12px;
	background: var(--cg-bg-primary);
	border-radius: 6px;
	overflow-x: auto;
	font-size: 12px;
	color: var(--cg-text-secondary);
	line-height: 1.6;
}

/* Scrollbar styling for log container */
.cg-log-container::-webkit-scrollbar {
	width: 8px;
}

.cg-log-container::-webkit-scrollbar-track {
	background: var(--cg-bg-secondary);
	border-radius: 4px;
}

.cg-log-container::-webkit-scrollbar-thumb {
	background: var(--cg-border);
	border-radius: 4px;
}

.cg-log-container::-webkit-scrollbar-thumb:hover {
	background: var(--cg-primary);
}
