/*
 * PflichtRadar dark compliance monitor section styles.
 */

.dark-compliance-monolith {
	position: relative;
	overflow: hidden;
	border-top: 1px solid rgba(143, 166, 200, 0.18);
	border-bottom: 1px solid rgba(143, 166, 200, 0.18);
	background: radial-gradient(circle at 50% 0%, #11284c 0%, #0b1f3a 80%);
	color: #ffffff;
}

.dark-compliance-monolith::before {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 20% 35%, rgba(25, 196, 214, 0.08) 0%, transparent 40%),
		radial-gradient(circle at 80% 65%, rgba(20, 91, 215, 0.16) 0%, transparent 50%),
		linear-gradient(rgba(30, 55, 92, 0.3) 1px, transparent 1px),
		linear-gradient(90deg, rgba(30, 55, 92, 0.3) 1px, transparent 1px);
	background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
	content: "";
	pointer-events: none;
}

.dark-compliance-monolith>.e-con-inner {
	position: relative;
	z-index: 1;
}

.dark-compliance-monolith .elementor-widget-html p {
	margin: 0;
}

.pr-monolith-head {
	margin: 0 auto clamp(2.8rem, 5vw, 4rem);
}

.pr-monolith-eyebrow .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	color: #19c4d6;
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pr-monolith-eyebrow .elementor-heading-title::before {
	width: 14px;
	height: 2px;
	background: #19c4d6;
	content: "";
}

.pr-monolith-title .elementor-heading-title {
	margin: 0;
	color: #ffffff !important;
	font-family: "Poppins", sans-serif;
	font-size: clamp(2rem, 3.4vw, 2.85rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.18;
}

.pr-monolith-lead p {
	max-width: 720px;
	margin: 0.9rem auto 0;
	color: #a8b9d2;
	font-size: 1.08rem;
	line-height: 1.65;
}

.dashboard-window {
	position: relative;
	z-index: 2;
	overflow: hidden;
	border: 1px solid rgba(143, 166, 200, 0.22);
	border-radius: 16px;
	background: #08162b;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.dash-topbar {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1.4rem;
	border-bottom: 1px solid rgba(143, 166, 200, 0.22);
	background: #102747;
}

.dash-topbar-left,
.dash-topbar-right {
	display: flex !important;
	align-items: center;
	gap: 0.9rem;
}

.dash-topbar-right {
	gap: 1.2rem;
	color: #a8b9d2;
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.74rem;
}

.dash-topbar-right strong {
	color: #ffffff;
	font-weight: 600;
}

.dash-pulse-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #19c4d6;
	box-shadow: 0 0 10px #19c4d6;
	animation: pr-dash-pulse 2s infinite;
}

.dash-status-text {
	color: #ffffff;
	font-family: "Poppins", sans-serif;
	font-size: 0.84rem;
	font-weight: 600;
}

.dash-url-badge {
	padding: 0.25rem 0.65rem;
	border: 1px solid rgba(143, 166, 200, 0.22);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.06);
	color: #19c4d6;
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.74rem;
}

.dash-body {
	display: grid !important;
	grid-template-columns: 280px 1.4fr 300px;
	min-height: 380px;
	background: #08162b;
}

.dash-col {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 1.4rem;
	border-right: 1px solid rgba(143, 166, 200, 0.22);
}

.dash-col:last-child {
	border-right: 0;
}

.dash-col-title {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1.1rem;
	color: #a8b9d2;
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.dash-col-title .count,
.dash-col-title .accent {
	padding: 0.1rem 0.45rem;
	border-radius: 4px;
	background: rgba(25, 196, 214, 0.14);
	color: #19c4d6;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.dash-col-title .success {
	color: #10b981;
	letter-spacing: 0;
	text-transform: none;
}

.service-list {
	display: flex !important;
	flex-direction: column;
	gap: 0.55rem;
}

.service-item {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	padding: 0.6rem 0.8rem;
	border: 1px solid rgba(143, 166, 200, 0.22);
	border-radius: 8px;
	background: #102747;
}

.service-item-name {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #e2e8f0;
	font-size: 0.82rem;
	font-weight: 500;
}

.service-item-name .dot {
	width: 6px;
	height: 6px;
	flex: none;
	border-radius: 999px;
	background: #19c4d6;
}

.service-item-badge {
	padding: 0.1rem 0.4rem;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.05);
	color: #a8b9d2;
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.7rem;
	white-space: nowrap;
}

.diff-container {
	display: flex !important;
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.1rem;
	border: 1px solid rgba(143, 166, 200, 0.22);
	border-radius: 8px;
	background: #050e1b;
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	height: 100%;
}

.diff-head {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.9rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid rgba(30, 55, 92, 0.8);
	color: #a8b9d2;
	font-size: 0.72rem;
}

.diff-lines {
	display: flex !important;
	flex-direction: column;
	gap: 0.6rem;
}

.diff-row {
	padding: 0.45rem 0.65rem;
	border-radius: 4px;
	font-size: 0.78rem;
	line-height: 1.45;
}

.diff-row.added {
	border-left: 3px solid #10b981;
	background: rgba(16, 185, 129, 0.1);
	color: #6ee7b7;
}

.diff-row.removed {
	border-left: 3px solid #ef4444;
	background: rgba(239, 68, 68, 0.08);
	color: #fca5a5;
}

.diff-row.synced {
	border-left: 3px solid #a8b9d2;
	background: rgba(255, 255, 255, 0.03);
	color: #a8b9d2;
}

.diff-approval-bar {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.2rem;
	padding-top: 0.9rem;
	border-top: 1px solid rgba(30, 55, 92, 0.8);
}

.diff-approval-note {
	color: #a8b9d2;
	font-size: 0.72rem;
}

.diff-approval-btn .elementor-button {
	min-height: 0;
	padding: 0.45rem 0.95rem;
	box-shadow: 0 2px 8px rgba(20, 91, 215, 0.4);
	color: #ffffff;
	font-family: "Poppins", sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
}

.compliance-status-card {
	padding: 1.1rem;
	border: 1px solid rgba(143, 166, 200, 0.22);
	border-radius: 8px;
	background: #102747;
}

.csc-title .elementor-heading-title {
	margin: 0;
	color: #ffffff !important;
	font-size: 0.84rem;
	font-weight: 600;
}

.dark-compliance-monolith .csc-meta p {
	margin: 0.3rem 0 0.8rem;
	color: #19c4d6;
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.72rem;
}

.csc-meta.warn p {
	color: #f59e0b;
}

.csc-progress {
	height: 5px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
}

.csc-progress-fill {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #19c4d6 0%, #10b981 100%);
}

.csc-progress-fill.warn {
	width: 78%;
	background: #f59e0b;
}

.rescan-note p {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: auto 0 0;
	color: #a8b9d2;
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.72rem;
}

.rescan-note p::before {
	color: #19c4d6;
	content: "✓";
	font-weight: 700;
}

.dark-principles-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.6rem;
	margin-top: 3.2rem;
}

.dark-principle-card {
	padding: 1.8rem;
	border: 1px solid rgba(143, 166, 200, 0.22);
	border-radius: 16px;
	background: rgba(16, 39, 71, 0.7);
	backdrop-filter: blur(12px);
	transition: border-color 0.2s, transform 0.2s;
}

.dark-principle-card:hover {
	border-color: #19c4d6;
	transform: translateY(-2px);
}

.dark-compliance-monolith .dp-pillar p {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.6rem;
	color: #19c4d6;
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.75rem;
	font-weight: 600;
}

.dp-pillar p::before {
	display: inline-flex;
	width: 15px;
	height: 15px;
	align-items: center;
	justify-content: center;
	border: 1.8px solid currentColor;
	border-radius: 999px;
	content: "✓";
	font-size: 0.58rem;
	line-height: 1;
}

.dark-principle-card h4,
.dark-principle-card .elementor-heading-title {
	margin: 0 0 0.5rem;
	color: #ffffff !important;
	font-family: "Poppins", sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.3;
}

.dark-principle-card p {
	margin: 0;
	color: #a8b9d2;
	font-size: 0.92rem;
	line-height: 1.56;
}

@keyframes pr-dash-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(25, 196, 214, 0.7);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(25, 196, 214, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(25, 196, 214, 0);
	}
}

@media (max-width: 1100px) {
	.dash-body {
		grid-template-columns: 1fr;
	}

	.dash-col {
		display: block !important;
		border-right: 0;
		border-bottom: 1px solid rgba(143, 166, 200, 0.22);
	}

	.dash-col > .elementor-element,
	.dash-col > .e-con,
	.dash-col .diff-container {
		left: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	.diff-container {
		height: auto;
		min-height: 0;
	}

	.diff-head,
	.diff-row,
	.diff-row p,
	.diff-approval-note {
		overflow-wrap: anywhere;
		word-break: normal;
	}

	.dash-col:last-child {
		border-bottom: 0;
	}

	.dark-principles-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {

	.dash-topbar,
	.dash-topbar-left,
	.dash-topbar-right,
	.diff-head,
	.diff-approval-bar {
		align-items: flex-start;
		flex-direction: column;
	}

	.dash-topbar {
		padding: 1rem;
	}

	.dash-col {
		padding: 1rem;
	}

	.dash-col-title,
	.service-item {
		align-items: flex-start;
		flex-direction: column;
	}

	.dark-principle-card {
		padding: 1.4rem;
	}
}
