.diagnostic-terminal-wrapper {
	background-color: #0b0f19;
	color: #00ffaa;
	font-family: 'Courier New', Courier, monospace;
	padding: 24px;
	border: 1px solid #00ffaa;
	border-radius: 8px;
	box-shadow: 0 0 20px rgba(0, 255, 170, 0.15);
	margin: 20px auto;
	max-width: 1100px;
}

.terminal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 2px solid #00ffaa;
	padding-bottom: 12px;
	margin-bottom: 20px;
}

.terminal-dots {
	display: flex;
	gap: 6px;
}

.terminal-dots .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
}

.terminal-dots .dot.red { background-color: #ff5f56; }
.terminal-dots .dot.yellow { background-color: #ffbd2e; }
.terminal-dots .dot.green { background-color: #27c93f; }

.terminal-title {
	font-weight: bold;
	font-size: 1.1rem;
	letter-spacing: 2px;
	color: #00ffaa;
}

.terminal-status-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #00ffaa;
}

.status-indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #00ffaa;
}

.status-indicator.online {
	box-shadow: 0 0 8px #00ffaa;
	animation: pulse 1.5s infinite;
}

.status-indicator.scanning {
	background-color: #ffbd2e;
	box-shadow: 0 0 8px #ffbd2e;
	animation: pulse 0.7s infinite;
}

.terminal-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
}

@media (max-width: 768px) {
	.terminal-grid {
		grid-template-columns: 1fr;
	}
}

.terminal-main-panel, .terminal-side-panel {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.terminal-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.terminal-section-title {
	font-size: 0.95rem;
	text-transform: uppercase;
	border-left: 3px solid #00ffaa;
	padding-left: 8px;
	letter-spacing: 1px;
	color: #ffffff;
}

.pulse-indicator {
	width: 6px;
	height: 6px;
	background-color: #00ffaa;
	border-radius: 50%;
	display: inline-block;
	animation: pulse 2s infinite;
}

.chart-container {
	background-color: #060a12;
	border: 1px solid #1a2436;
	border-radius: 6px;
	padding: 12px;
	height: 240px;
}

.console-output {
	background-color: #04060b;
	border: 1px solid #1a2436;
	border-radius: 6px;
	padding: 16px;
	height: 140px;
	overflow-y: auto;
	font-size: 0.85rem;
	line-height: 1.4;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.log-line {
	word-break: break-all;
}

.text-system { color: #8892b0; }
.text-success { color: #00ffaa; }
.text-warning { color: #ffbd2e; }
.text-danger { color: #ff5f56; }

.terminal-actions {
	display: flex;
	gap: 12px;
}

.btn {
	background: transparent;
	border: 1px solid #00ffaa;
	color: #00ffaa;
	padding: 10px 16px;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: bold;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.2s ease;
	text-transform: uppercase;
}

.btn:hover:not(:disabled) {
	background: rgba(0, 255, 170, 0.1);
	box-shadow: 0 0 10px rgba(0, 255, 170, 0.2);
}

.btn:disabled {
	opacity: 0.3;
	border-color: #444;
	color: #444;
	cursor: not-allowed;
}

.btn-scan {
	flex-grow: 1;
	background-color: rgba(0, 255, 170, 0.05);
}

.metric-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.metric-card {
	background-color: #060a12;
	border: 1px solid #1a2436;
	border-radius: 6px;
	padding: 14px;
	transition: border-color 0.3s ease;
}

.metric-card.alert-active {
	border-color: #ff5f56;
	box-shadow: 0 0 10px rgba(255, 95, 86, 0.15);
}

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

.metric-label {
	font-size: 0.8rem;
	color: #8892b0;
}

.metric-alert {
	font-size: 0.75rem;
	color: #ff5f56;
	font-weight: bold;
	animation: blink 1s infinite;
}

.metric-value-wrapper {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.metric-val {
	font-size: 1.8rem;
	font-weight: bold;
	color: #ffffff;
}

.metric-unit {
	font-size: 0.9rem;
	color: #00ffaa;
}

.integration-status {
	background-color: #060a12;
	border: 1px solid #1a2436;
	border-radius: 6px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.integration-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.8rem;
	padding-bottom: 8px;
	border-bottom: 1px dashed #1a2436;
}

.integration-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.integration-info {
	display: flex;
	flex-direction: column;
}

.integration-name {
	font-weight: bold;
	color: #ffffff;
}

.integration-desc {
	color: #8892b0;
	font-size: 0.75rem;
}

.badge {
	font-size: 0.7rem;
	padding: 2px 6px;
	border-radius: 3px;
	font-weight: bold;
}

.badge-active {
	background-color: rgba(0, 255, 170, 0.1);
	border: 1px solid #00ffaa;
	color: #00ffaa;
}

/* Modal styles */
.report-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(4, 6, 11, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 999999;
}

.modal-content {
	background-color: #0b0f19;
	border: 2px solid #00ffaa;
	box-shadow: 0 0 30px rgba(0, 255, 170, 0.3);
	width: 90%;
	max-width: 650px;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	max-height: 85vh;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 24px;
	border-bottom: 1px solid #00ffaa;
}

.modal-header h3 {
	margin: 0;
	color: #00ffaa;
	font-size: 1.1rem;
	letter-spacing: 1px;
}

.close-modal {
	background: transparent;
	border: none;
	color: #00ffaa;
	font-size: 1.5rem;
	cursor: pointer;
}

.modal-body {
	padding: 24px;
	overflow-y: auto;
	color: #ffffff;
	font-size: 0.9rem;
	line-height: 1.5;
}

.modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 24px;
	border-top: 1px solid #1a2436;
}

.gutenberg-terminal-editor-placeholder {
	background-color: #0b0f19;
	border: 1px dashed #00ffaa;
	color: #00ffaa;
	padding: 30px;
	text-align: center;
	font-family: monospace;
	border-radius: 8px;
}

@keyframes pulse {
	0% { opacity: 0.3; }
	50% { opacity: 1; }
	100% { opacity: 0.3; }
}

@keyframes blink {
	0% { opacity: 1; }
	50% { opacity: 0.3; }
	100% { opacity: 1; }
}

/* Printing styling */
@media print {
	body * {
		visibility: hidden;
	}
	.report-modal, .report-modal * {
		visibility: visible;
	}
	.report-modal {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		background: #fff;
		color: #000;
	}
	.modal-content {
		border: none;
		box-shadow: none;
		background: #fff;
		color: #000;
	}
	.modal-actions, .close-modal {
		display: none;
	}
}
