/*--------------------------------------------------------------
# Main Combined Stylesheet - V33 (Full-Panel Video)
# Dark theme is default, light theme is applied via .light-theme class
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Variables & General Styling (Dark Theme Base)
--------------------------------------------------------------*/
:root {
	--default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
	--heading-font: "Nunito", sans-serif;
	--nav-font: "Inter", sans-serif;
	--accent-color: rgb(147, 112, 219);
	--accent-color-rgb: 147, 112, 219;
	--secondary-color: rgb(218, 112, 214);
	--background-color: #000000;
	--default-color: #ccc;
	--heading-color: #fff;
	--surface-color: #0a0a0a;
	--contrast-color: #ffffff;
	--nav-color: #fff;
	--nav-hover-color: var(--accent-color);
}
html {
	font-size: 16px;
	scroll-behavior: smooth;
}
body {
	color: var(--default-color);
	background-color: var(--background-color);
	font-family: var(--default-font);
	font-size: 1rem;
	transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
a {
	color: var(--accent-color);
	text-decoration: none;
	transition: 0.3s;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--heading-color);
	font-family: var(--heading-font);
}
*:focus-visible {
	outline: 3px solid rgba(var(--accent-color-rgb), 0.7);
	outline-offset: 3px;
	border-radius: 0.3125rem;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-primary {
	border-radius: 3.125rem;
	padding: 0.75rem 1.75rem;
	font-weight: 600;
	border: none;
	margin: 0 0.3125rem;
	color: var(--contrast-color) !important;
	background-size: 200% auto;
	transition: all 0.4s ease-out;
	background-image: linear-gradient(
		to right,
		var(--accent-color) 0%,
		var(--secondary-color) 50%,
		var(--accent-color) 100%
	);
	display: inline-block;
	text-align: center;
}
.btn-primary:hover {
	background-position: right center;
	transform: scale(1.05);
	color: var(--contrast-color) !important;
}
.btn-light {
	border-radius: 3.125rem;
	padding: 0.75rem 1.75rem;
	font-weight: 600;
	border: none;
	margin: 0 0.3125rem;
	background: rgba(255, 255, 255, 0.1);
	color: #fff !important;
	display: inline-block;
	text-align: center;
}
.btn-light:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff !important;
}

/*--------------------------------------------------------------
# Background & Header
--------------------------------------------------------------*/
#constellation-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}
.constellation-group {
	animation: fade-in-out 5s ease-in-out forwards;
	opacity: 0.5;
}
.constellation-path {
	stroke-width: 1.5px;
	fill: none;
	stroke-linecap: round;
	animation: draw-line 2.5s ease-in-out forwards;
}
@keyframes fade-in-out {
	0%,
	100% {
		opacity: 0;
	}
	10%,
	80% {
		opacity: 0.5;
	}
}
@keyframes draw-line {
	0% {
		stroke-dashoffset: var(--line-length);
	}
	100% {
		stroke-dashoffset: 0;
	}
}

.header {
	padding: 0 !important;
	position: fixed;
	background: transparent;
	transition: all 0.5s;
	z-index: 997;
	top: 1.25rem;
	width: 100%;
}
.header .header-container {
	justify-content: center !important;
	max-width: 46.875rem;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
	border-radius: 3.125rem;
	padding: 0.3125rem 1.5625rem;
	transition: max-width 0.3s ease-in-out, padding 0.3s ease-in-out,
		background-color 0.3s ease, border-color 0.3s ease;
}
.header .logo {
	display: none;
}
.header .logo h1 {
	font-size: 1.5rem;
	margin: 0;
	font-weight: 700;
	color: white;
	mix-blend-mode: difference;
}
.scrolled .header .header-container {
	max-width: 38.75rem;
	padding: 0.3125rem 0.9375rem;
}
.navmenu ul {
	margin: 0;
	padding: 0;
	display: flex;
	list-style: none;
	align-items: center;
}
.navmenu a,
.navmenu a:focus {
	padding: 0.9375rem 0.5625rem;
	font-size: 0.875rem;
	font-family: var(--nav-font);
	font-weight: 500;
	color: var(--nav-color);
	white-space: nowrap;
	transition: color 0.3s, font-size 0.3s ease-in-out, padding 0.3s ease-in-out;
	position: relative;
	padding-bottom: 0.5rem !important;
}
.navmenu a:hover,
.navmenu a.active {
	color: var(--nav-hover-color);
}
.scrolled .navmenu a {
	padding: 0.625rem 0.4375rem;
	font-size: 0.8125rem;
}
.navmenu a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: white;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.navmenu a:hover::after,
.navmenu a.active::after {
	transform: scaleX(1);
	transform-origin: left;
}

/*--------------------------------------------------------------
# Sections, Titles, Cards
--------------------------------------------------------------*/
section,
.section {
	color: var(--default-color);
	background-color: transparent !important;
	padding: 5rem 0;
	scroll-margin-top: 5.625rem;
	overflow: clip;
}
.section-title {
	text-align: center;
	padding-bottom: 3.75rem;
	isolation: isolate;
}
.section-title h2 {
	color: white;
	mix-blend-mode: difference;
}
.section-title p {
	margin-bottom: 0;
	color: var(--default-color);
}
.col-md-6,
.col-lg-3,
.col-lg-4,
.col-lg-6,
.col-lg-10 {
	perspective: 1000px;
}
.glass-card {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-radius: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
	height: 100%;
	padding: 1.875rem;
	transition: all 0.2s ease-out;
	transform-style: preserve-3d;
	isolation: isolate;
}
.glass-card:hover {
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.12),
		0 0 25px rgba(var(--accent-color-rgb), 0.25);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
	padding-top: 15rem;
	padding-bottom: 8.75rem;
}
.hero .hero-content {
	isolation: isolate;
}
.hero h1 {
	color: white;
	mix-blend-mode: difference;
}
.hero .highlight-box {
	color: var(--accent-color);
	background: rgba(34, 34, 34, 0.7);
	padding: 0.2rem 1.5rem;
	border-radius: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	white-space: nowrap;
	display: inline-block;
}
.hero p {
	max-width: 37.5rem;
	margin-left: auto;
	margin-right: auto;
	color: var(--default-color);
	animation: fadeInUp 0.8s 0.4s ease-out forwards;
	opacity: 0;
}
.hero .company-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	background-color: rgba(34, 34, 34, 0.8);
	border-radius: 3.125rem;
	color: var(--accent-color);
	font-weight: 600;
	font-size: 0.875rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	animation: fadeInUp 0.8s ease-out forwards;
	opacity: 0;
}
.hero .hero-buttons {
	animation: fadeInUp 0.8s 0.6s ease-out forwards;
	opacity: 0;
}
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(1.25rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/*--------------------------------------------------------------
# About & Feature Demos Sections (Tabbed Content)
--------------------------------------------------------------*/
.about-nav,
.feature-demos-nav {
	margin-right: 1.875rem;
}
.about-nav {
	min-width: 12.5rem;
}
.feature-demos-nav {
	min-width: 15.625rem;
}
.about-nav-item,
.feature-demos-nav-item {
	display: block;
	padding: 0.9375rem 1.25rem;
	margin-bottom: 0.625rem;
	border-radius: 0.625rem;
	font-weight: 600;
	color: var(--heading-color);
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
	text-align: left;
}
.about-nav-item:hover,
.feature-demos-nav-item:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--default-color);
}
.about-nav-item.active,
.feature-demos-nav-item.active {
	background-color: var(--accent-color);
	color: var(--contrast-color);
	border-color: var(--accent-color);
}
.about-content,
.feature-demos-content {
	position: relative;
	flex-grow: 1;
}
.feature-demos-content {
	min-height: 28.125rem;
}
.about-pane,
.feature-demos-pane {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transform: translateY(1.25rem);
	transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
	visibility: hidden;
}
.about-pane.active,
.feature-demos-pane.active {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
	transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0s;
}
.about-pane .custom-icon-box i,
.about-pane .custom-icon-box h3 {
	color: white;
	mix-blend-mode: difference;
}
.about-pane .custom-icon-box p {
	color: var(--default-color);
	min-height: 6em;
	position: relative;
}

/* FIX: Updated video styles for full-panel display */
.feature-demos .video-card {
	padding: 0; /* Remove padding to make video fill the card */
	height: 100%;
	overflow: hidden; /* Ensure video corners are clipped by the card's border-radius */
	background-color: #000; /* Fallback color */
}
.feature-demos .video-card video {
	width: 100%;
	height: 100%;
	object-fit: cover; /* This is the key property to fill and crop */
	display: block;
	border-radius: 1rem; /* Match the parent card's radius */
}

/*--------------------------------------------------------------
# Features Section (Gradient Cards)
--------------------------------------------------------------*/
#features .row {
	transform: translateX(12.5rem);
	opacity: 0;
	transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1),
		opacity 1s cubic-bezier(0.23, 1, 0.32, 1);
}
#features .row.is-inview {
	transform: translateX(0);
	opacity: 1;
}
.custom-features-item {
	text-align: left;
	padding: 1.5625rem;
}
.custom-features-item i {
	font-size: 2.25rem !important;
	margin-bottom: 0.9375rem;
	display: inline-block;
}
.custom-features-item h3 {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 0.625rem;
}
.custom-features-item p {
	font-size: 0.9rem;
	opacity: 0.9;
}
.custom-features-item,
.custom-features-item i,
.custom-features-item h3,
.custom-features-item p {
	color: white !important;
	mix-blend-mode: normal !important;
}
.feature-card-1 {
	background-image: linear-gradient(
		45deg,
		#6a11cb 0%,
		#2575fc 100%
	) !important;
}
.feature-card-2 {
	background-image: linear-gradient(
		45deg,
		#f7971e 0%,
		#ffd200 100%
	) !important;
}
.feature-card-3 {
	background-image: linear-gradient(
		45deg,
		#d4145a 0%,
		#fbb03b 100%
	) !important;
}
.feature-card-4 {
	background-image: linear-gradient(
		45deg,
		#00c6fb 0%,
		#005bea 100%
	) !important;
}
.feature-card-5 {
	background-image: linear-gradient(
		45deg,
		#11998e 0%,
		#38ef7d 100%
	) !important;
}
.feature-card-6 {
	background-image: linear-gradient(
		45deg,
		#c31432 0%,
		#240b36 100%
	) !important;
}
.feature-card-7 {
	background-image: linear-gradient(
		45deg,
		#02aab0 0%,
		#00cdac 100%
	) !important;
}
.feature-card-8 {
	background-image: linear-gradient(
		45deg,
		#485461 0%,
		#28313b 100%
	) !important;
}

/*--------------------------------------------------------------
# Workflow Animation Section
--------------------------------------------------------------*/
.workflow-animation-section .section-title p {
	max-width: 37.5rem;
	margin-left: auto;
	margin-right: auto;
}
.workflow-diagram-container {
	position: relative;
	width: 100%;
	max-width: 40.625rem;
	aspect-ratio: 1 / 1;
	margin: 2.5rem auto;
}
.workflow-lines-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: visible;
}
.workflow-node {
	position: absolute;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.7);
	transition: opacity 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.1s,
		transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.1s;
}
.workflow-node .node-content {
	padding: 1.25rem;
	background: rgba(255, 255, 255, 0.07);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 0.9375rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 7.5rem;
	height: 7.5rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.workflow-node.central-node .node-content {
	width: 9.375rem;
	height: 9.375rem;
	background: rgba(var(--accent-color-rgb), 0.15);
	border: 1px solid rgba(var(--accent-color-rgb), 0.5);
}
.workflow-node .node-content i {
	font-size: 2.5rem;
	margin-bottom: 0.625rem;
	color: var(--accent-color);
	transition: transform 0.3s ease;
}
.workflow-node.central-node .node-content i {
	font-size: 3.2rem;
	color: var(--contrast-color);
}
.workflow-node .node-content span {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--default-color);
	line-height: 1.2;
}
.workflow-node.central-node .node-content span {
	color: var(--contrast-color);
}
@keyframes simplePulseNodeShadow {
	0%,
	100% {
		box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
	}
	50% {
		box-shadow: 0 8px 30px rgba(var(--accent-color-rgb), 0.15),
			0 0 10px rgba(var(--accent-color-rgb), 0.1);
	}
}
@keyframes pulseCentralNodeShadow {
	0%,
	100% {
		box-shadow: 0 8px 30px rgba(var(--accent-color-rgb), 0.2);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 10px 35px rgba(var(--accent-color-rgb), 0.3),
			0 0 15px rgba(var(--accent-color-rgb), 0.2);
		transform: scale(1.04);
	}
}
@keyframes rotateNodeElement {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}
.workflow-node.visible {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}
.workflow-node.tool-node.visible .node-content {
	animation-name: simplePulseNodeShadow;
	animation-duration: 2.8s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	animation-delay: var(--node-pulse-delay, 0s);
}
.workflow-node.tool-node.visible:not(.active) .node-content {
	animation: simplePulseNodeShadow 2.8s ease-in-out infinite
			var(--node-pulse-delay, 0s),
		rotateNodeElement 45s linear infinite var(--node-rotation-delay, 0s);
}
.workflow-node.central-node.visible .node-content {
	animation-name: pulseCentralNodeShadow;
	animation-duration: 2.5s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	animation-delay: var(--node-pulse-delay, 0s);
}
.workflow-node.active .node-content {
	animation: none !important;
	transform: scale(1.08) !important;
	box-shadow: 0 10px 35px rgba(var(--accent-color-rgb), 0.35),
		0 0 20px rgba(var(--accent-color-rgb), 0.25) !important;
}
.workflow-node.central-node.active .node-content {
	animation: none !important;
	transform: scale(1.05) !important;
	box-shadow: 0 10px 40px rgba(var(--accent-color-rgb), 0.4),
		0 0 25px rgba(var(--accent-color-rgb), 0.3) !important;
}
.workflow-connecting-line {
	stroke-linecap: round;
	stroke: var(--accent-color);
}
.workflow-packet {
	width: 0.5rem;
	height: 0.5rem;
	background-color: var(--secondary-color);
	border-radius: 50%;
	position: absolute;
	box-shadow: 0 0 8px var(--secondary-color),
		0 0 12px rgba(var(--secondary-color), 0.7);
	opacity: 0;
	pointer-events: none;
}

/*--------------------------------------------------------------
# Use Cases, FAQ, Pricing, CTA
--------------------------------------------------------------*/
.use-case-item {
	text-align: center;
}
.use-case-icon {
	width: 3.75rem;
	height: 3.75rem;
	border-radius: 50%;
	background-color: rgba(var(--accent-color-rgb), 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.25rem auto;
}
.use-case-icon i {
	font-size: 1.75rem;
	color: var(--accent-color);
}
.use-case-item h3,
.faq-container .faq-item h3,
.pricing-item h3 {
	font-weight: 700;
	color: white;
	mix-blend-mode: difference;
}
.use-case-item h3 {
	font-size: 1.2rem;
	margin-bottom: 0.3125rem;
}
.use-case-item h4 {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--accent-color);
	margin-bottom: 0.9375rem;
}
.use-case-item p {
	font-style: normal;
	margin: 0;
	color: var(--default-color);
}
.faq-item {
	text-align: left;
}
.faq-container .faq-item h3 {
	font-size: 1rem;
	margin: 0 1.875rem 0 0;
	cursor: pointer;
}
.faq-container .faq-item .faq-content {
	display: grid;
	grid-template-rows: 0fr;
	transition: 0.3s ease-in-out;
	visibility: hidden;
	opacity: 0;
}
.faq-container .faq-item .faq-content p {
	margin-bottom: 0;
	overflow: hidden;
	padding-top: 0.625rem;
	color: var(--default-color);
}
.faq-container .faq-item .faq-toggle {
	position: absolute;
	top: 1.875rem;
	right: 1.5625rem;
	font-size: 1rem;
	transition: 0.3s;
	cursor: pointer;
	color: var(--default-color);
}
.faq-container .faq-active .faq-content {
	grid-template-rows: 1fr;
	visibility: visible;
	opacity: 1;
}
.faq-container .faq-active .faq-toggle {
	transform: rotate(90deg);
}
.pricing-item {
	padding: 2.5rem;
	text-align: center;
}
.pricing-item.featured {
	border: 2px solid var(--accent-color);
	position: relative;
}
.featured-badge {
	position: absolute;
	top: -0.9375rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--accent-color);
	color: white;
	padding: 0.3125rem 0.9375rem;
	border-radius: 3.125rem;
	font-size: 0.875rem;
	font-weight: 600;
}
.pricing-item h3 {
	font-size: 1.5rem;
	margin-bottom: 0.9375rem;
}
.pricing-item h4 {
	font-size: 3rem;
	font-weight: 700;
	color: var(--heading-color);
	margin-bottom: 1.5625rem;
}
.pricing-item h4 sup {
	font-size: 1.75rem;
	font-weight: 300;
}
.pricing-item h4 span {
	color: var(--default-color);
	font-size: 1rem;
	font-weight: 400;
}
.pricing-item ul {
	list-style: none;
	padding: 0;
	text-align: left;
	margin-bottom: 1.875rem;
}
.pricing-item ul li {
	padding-bottom: 0.9375rem;
	color: var(--default-color);
}
.pricing-item ul i {
	color: #11998e;
	font-size: 1.25rem;
	padding-right: 0.5rem;
}
.pricing-item ul .na i {
	color: #6c757d;
}
.pricing-item ul .na span {
	text-decoration: line-through;
	color: #6c757d;
}
.cta-section {
	padding: 6.25rem 0;
	position: relative;
}
.cta-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(
		circle at center,
		rgba(var(--accent-color-rgb), 0.2),
		transparent 60%
	);
	z-index: -1;
}
.cta-section h2 {
	font-size: 3rem;
	font-weight: 800;
	margin-bottom: 1.25rem;
	color: white;
	mix-blend-mode: difference;
}
.cta-section p {
	max-width: 37.5rem;
	margin: 0 auto 1.875rem auto;
	color: var(--default-color);
}
.cta-section .btn-primary {
	font-size: 1.125rem;
	padding: 0.9375rem 2.5rem;
}

/*--------------------------------------------------------------
# Footer & Utility Buttons
--------------------------------------------------------------*/
.footer {
	background-color: transparent;
	font-size: 0.875rem;
	padding: 1.875rem 0;
	isolation: isolate;
}
.footer .copyright {
	padding-top: 1.875rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer .copyright p,
.footer .copyright .sitename {
	color: white;
	mix-blend-mode: difference;
}

.footer .footer-links {
	margin-top: 0.625rem;
	font-size: 0.8rem;
}
.footer .footer-links a {
	color: var(--default-color);
	transition: color 0.3s;
}
.footer .footer-links a:hover {
	color: var(--accent-color);
}

/* ADDED: Cookie Consent Banner */
#cookie-consent-banner {
	position: fixed;
	bottom: 1.25rem; /* 20px */
	left: 50%;
	transform: translateX(-50%);
	z-index: 1100;
	max-width: 90%;
	width: 43.75rem; /* 700px */
	display: none; /* Initially hidden */
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem; /* 20px */
	padding: 1.25rem 1.5625rem; /* 20px 25px */
	background: rgba(20, 20, 25, 0.7);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-radius: 1rem; /* 16px */
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
	opacity: 0;
	transition: opacity 0.5s ease, transform 0.5s ease;
	transform: translateX(-50%) translateY(20px);
}
#cookie-consent-banner.show {
	display: flex;
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
#cookie-consent-banner p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
}
#cookie-consent-banner p a {
	font-weight: 600;
	text-decoration: underline;
}
#cookie-consent-banner .cookie-buttons {
	display: flex;
	flex-shrink: 0;
	gap: 0.625rem; /* 10px */
}
#cookie-consent-banner .btn {
	padding: 0.5rem 1.25rem; /* 8px 20px */
	margin: 0;
}

/* Chat Popup Wrapper - The Fix for Mobile Jump */
#chat-popup-wrapper {
	position: fixed;
	top: 0;
	right: 1.875rem; /* 30px */
	height: 100%;
	display: flex;
	align-items: center; /* This vertically centers the button inside */
	z-index: 1040;
	pointer-events: none; /* Allows clicks to pass through the wrapper */
}

#openChatPopupBtn {
	/* Removed position, top, right, and transform:translateY */
	pointer-events: auto; /* Make the button clickable again */
	background-color: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 2px solid var(--accent-color);
	box-shadow: 0 8px 25px 0 rgba(var(--accent-color-rgb), 0.2);
	border-radius: 1rem;
	width: 3.75rem;
	height: 3.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease, transform 0.3s ease,
		border-color 0.3s ease, box-shadow 0.3s ease;
	animation: pulseChatIcon 2.5s infinite ease-in-out;
	padding: 0.625rem;
}

#openChatPopupBtn i {
	font-size: 1.75rem;
	color: white;
	transition: transform 0.3s ease;
}

/* Animation no longer needs the translateY */
@keyframes pulseChatIcon {
	0%,
	100% {
		transform: scale(1);
		border-color: var(--accent-color);
		box-shadow: 0 8px 25px 0 rgba(var(--accent-color-rgb), 0.2);
	}
	50% {
		transform: scale(1.05);
		border-color: rgba(var(--accent-color-rgb), 0.7);
		box-shadow: 0 10px 30px 0 rgba(var(--accent-color-rgb), 0.3);
	}
}

#openChatPopupBtn:hover {
	animation-play-state: paused;
	transform: scale(1.1); /* Hover transform is fine */
	background-color: rgba(0, 0, 0, 0.65);
	box-shadow: 0 10px 35px 0 rgba(var(--accent-color-rgb), 0.35);
	border-color: var(--secondary-color);
}
#openChatPopupBtn:hover i {
	transform: scale(1.1);
}

.scroll-top-btn {
	position: fixed;
	bottom: 1.875rem;
	right: 1.875rem;
	z-index: 1000;
	width: 2.75rem;
	height: 2.75rem;
	background-color: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--contrast-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(1.25rem);
	transition: all 0.3s ease;
}
.scroll-top-btn.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.scroll-top-btn:hover {
	background-color: rgba(0, 0, 0, 0.7);
	border-color: rgba(255, 255, 255, 0.25);
	color: var(--contrast-color);
}
#theme-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	margin-left: 0.625rem;
	font-size: 1.25rem;
	line-height: 1;
	order: 3;
	color: var(--nav-color);
}
#theme-toggle:hover {
	color: var(--nav-hover-color);
}

/* New Typewriter Effect Styles */
.typewriter-effect::after {
	content: "|";
	display: inline-block;
	margin-left: 0.2em;
	color: var(--accent-color);
	animation: blink-caret 1s step-end infinite;
}
@keyframes blink-caret {
	from,
	to {
		color: transparent;
	}
	50% {
		color: var(--accent-color);
	}
}

#aiChatPopupContainer {
	background: black;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 0.625rem 2.1875rem rgba(0, 0, 0, 0.25);
}
#aiChatPopupHeader {
	background-color: rgba(var(--accent-color-rgb), 0.6);
	color: white;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#aiChatPopupHeader h5 {
	color: white;
}

/*--------------------------------------------------------------
# Mobile Overrides
--------------------------------------------------------------*/
@media (max-width: 991px) {
	.header {
		top: 0;
	}
	.header .header-container {
		max-width: 100%;
		width: 100%;
		margin: 0;
		border-radius: 0;
		padding: 0.9375rem;
		justify-content: space-between !important;
		background: rgba(0, 0, 0, 0.3);
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}
	.header .logo {
		display: block;
	}
	.navmenu {
		position: static;
	}
	.navmenu ul {
		display: none;
		flex-direction: column;
		align-items: center;
	}
	body.mobile-nav-active {
		overflow: hidden;
	}
	.mobile-nav-active .navmenu ul {
		display: flex;
		position: fixed;
		inset: 0;
		width: 100vw;
		height: 100vh;
		background-color: #0a0a0a;
		z-index: 999;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 6rem 1rem 2rem 1rem;
		overflow-y: auto;
		gap: 1rem;
	}
	.mobile-nav-active .navmenu ul a {
		font-size: 1.35rem;
		color: #e0e0e0;
		padding: 0.8rem 1rem;
		border-radius: 0.3rem;
		transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
		width: 85%;
		max-width: 320px;
		text-align: center;
		display: block;
		mix-blend-mode: normal;
	}
	.mobile-nav-active .navmenu ul a:hover {
		background-color: rgba(255, 255, 255, 0.08);
		color: #ffffff;
	}
	.mobile-nav-active .navmenu ul a.active {
		color: var(--accent-color);
		font-weight: 600;
	}
	.mobile-nav-toggle {
		display: block;
		color: white;
		mix-blend-mode: difference;
		font-size: 1.75rem;
		line-height: 0;
		cursor: pointer;
	}
	.mobile-nav-active .mobile-nav-toggle {
		position: fixed;
		top: 1.35rem;
		right: 1.35rem;
		z-index: 1000;
		color: #ffffff;
		font-size: 2rem;
		mix-blend-mode: normal;
	}
	.hero {
		padding-top: 6.25rem;
		padding-bottom: 5rem;
	}
	.hero h1 {
		font-size: 2.5rem;
	}
	section,
	.section {
		scroll-margin-top: 4.6875rem;
	}
	.about-flex-container,
	.feature-demos-flex-container {
		flex-direction: column;
	}
	.about-nav,
	.feature-demos-nav {
		margin-right: 0;
		margin-bottom: 1.25rem;
		min-width: auto;
	}
	.about-pane,
	.feature-demos-pane {
		position: relative;
		display: none;
		opacity: 1;
		transform: none;
		visibility: visible;
		height: auto;
		width: 100%;
	}
	.about-pane.active,
	.feature-demos-pane.active {
		display: block;
		animation: fadeIn 0.5s ease-in-out;
	}
	@keyframes fadeIn {
		from {
			opacity: 0;
		}
		to {
			opacity: 1;
		}
	}
	.navmenu a::after {
		display: none;
	}
	.cta-section h2 {
		font-size: 2rem;
	}
	#chat-popup-wrapper {
		right: 0.9375rem; /* 15px */
	}
	#cookie-consent-banner {
		flex-direction: column;
		width: calc(100% - 1.875rem); /* 30px */
		bottom: 0.9375rem; /* 15px */
		text-align: center;
		gap: 0.9375rem; /* 15px */
	}
	#cookie-consent-banner.show {
		display: flex; /* Ensure it's flex even on mobile */
	}
	#cookie-consent-banner .cookie-buttons {
		width: 100%;
		justify-content: center;
	}
	#openChatPopupBtn {
		width: 3.4375rem; /* 55px */
		height: 3.4375rem; /* 55px */
	}
	#openChatPopupBtn i {
		font-size: 1.5rem; /* 24px */
	}
	.feature-demos-content {
		min-height: 18.75rem;
	}
	#theme-toggle {
		margin-left: 0;
		padding: 0.3rem;
		font-size: 1.5rem;
	}
}

/*--------------------------------------------------------------
# Larger Screen Scaling
--------------------------------------------------------------*/
@media (min-width: 1920px) {
	html {
		font-size: 130%;
	}
}
@media (min-width: 2560px) {
	html {
		font-size: 150%;
	}
}

/***************************************************************
*   LIGHT THEME OVERRIDES
*   These rules are applied when body has the .light-theme class
***************************************************************/
body.light-theme {
	--background-color: #f4f7f9;
	--default-color: #343a40;
	--heading-color: #212529;
	--surface-color: #ffffff;
	--nav-color: #495057;
}
body.light-theme .footer .footer-links a {
	color: var(--default-color);
}
body.light-theme .footer .footer-links a:hover {
	color: var(--accent-color);
}

/* ADDED: Light theme for cookie banner */
body.light-theme #cookie-consent-banner {
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(0, 0, 0, 0.08);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
body.light-theme #cookie-consent-banner p {
	color: var(--default-color);
}
body.light-theme .btn-light {
	background: rgba(0, 0, 0, 0.05);
	color: #333333 !important;
}
body.light-theme .btn-light:hover {
	background: rgba(0, 0, 0, 0.1);
	color: #333333 !important;
}
body.light-theme .constellation-group {
	opacity: 0.4;
}
body.light-theme @keyframes fade-in-out {
	0%,
	100% {
		opacity: 0;
	}
	10%,
	80% {
		opacity: 0.4;
	}
}
body.light-theme .header .header-container {
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(0, 0, 0, 0.08);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
body.light-theme .header .logo h1,
body.light-theme .section-title h2,
body.light-theme .hero h1,
body.light-theme .use-case-item h3,
body.light-theme .faq-container .faq-item h3,
body.light-theme .pricing-item h3,
body.light-theme .cta-section h2,
body.light-theme .about-pane .custom-icon-box i,
body.light-theme .about-pane .custom-icon-box h3,
body.light-theme .feature-demos .video-card h3 {
	color: var(--heading-color);
	mix-blend-mode: normal;
}
body.light-theme .glass-card {
	background: rgba(255, 255, 255, 0.75);
	border-color: rgba(0, 0, 0, 0.08);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
}
body.light-theme .glass-card:hover {
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.08),
		0 0 25px rgba(var(--accent-color-rgb), 0.15);
}
body.light-theme .hero .highlight-box {
	color: var(--accent-color);
	background: rgba(var(--accent-color-rgb), 0.1);
	border-color: rgba(var(--accent-color-rgb), 0.2);
}
body.light-theme .hero .company-badge {
	background-color: rgba(var(--accent-color-rgb), 0.08);
	border-color: rgba(var(--accent-color-rgb), 0.15);
}
body.light-theme .about-nav-item,
body.light-theme .feature-demos-nav-item {
	background-color: rgba(0, 0, 0, 0.03);
	border-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .about-nav-item:hover,
body.light-theme .feature-demos-nav-item:hover {
	background-color: rgba(0, 0, 0, 0.05);
	color: var(--accent-color);
}
/* FIX: Added background and border color to the active state for light theme */
body.light-theme .about-nav-item.active,
body.light-theme .feature-demos-nav-item.active {
	background-color: var(--accent-color);
	border-color: var(--accent-color);
	color: var(--contrast-color);
}
body.light-theme .feature-demos .video-card {
	background-color: #e9ecef;
}
body.light-theme .workflow-node .node-content {
	background: rgba(255, 255, 255, 0.8);
	border-color: rgba(0, 0, 0, 0.1);
	box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
}
body.light-theme .workflow-node .node-content span {
	color: var(--default-color);
}
body.light-theme .workflow-node.central-node .node-content {
	background: rgba(var(--accent-color-rgb), 0.1);
	border-color: rgba(var(--accent-color-rgb), 0.4);
}
body.light-theme .workflow-node.central-node .node-content i {
	color: var(--accent-color);
}
body.light-theme .workflow-node.central-node .node-content span {
	color: var(--accent-color);
	font-weight: 600;
}
body.light-theme @keyframes simplePulseNodeShadow {
	0%,
	100% {
		box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
	}
	50% {
		box-shadow: 0 8px 30px rgba(var(--accent-color-rgb), 0.1),
			0 0 10px rgba(var(--accent-color-rgb), 0.05);
	}
}
body.light-theme @keyframes pulseCentralNodeShadow {
	0%,
	100% {
		box-shadow: 0 8px 30px rgba(var(--accent-color-rgb), 0.15);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 10px 35px rgba(var(--accent-color-rgb), 0.2),
			0 0 15px rgba(var(--accent-color-rgb), 0.1);
		transform: scale(1.04);
	}
}
body.light-theme .workflow-node.active .node-content {
	box-shadow: 0 10px 35px rgba(var(--accent-color-rgb), 0.25),
		0 0 20px rgba(var(--accent-color-rgb), 0.15) !important;
}
body.light-theme .footer .copyright {
	border-top-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .footer .copyright p,
body.light-theme .footer .copyright .sitename {
	color: var(--default-color);
	mix-blend-mode: normal;
}
body.light-theme #openChatPopupBtn {
	background-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 8px 25px 0 rgba(var(--accent-color-rgb), 0.15);
}
body.light-theme #openChatPopupBtn i {
	color: var(--accent-color);
}
body.light-theme #openChatPopupBtn:hover {
	background-color: rgba(255, 255, 255, 1);
	box-shadow: 0 10px 35px 0 rgba(var(--accent-color-rgb), 0.25);
}
body.light-theme .scroll-top-btn {
	background-color: rgba(0, 0, 0, 0.08);
	border-color: rgba(0, 0, 0, 0.1);
	color: var(--default-color);
}
body.light-theme .scroll-top-btn:hover {
	background-color: rgba(0, 0, 0, 0.12);
	border-color: rgba(0, 0, 0, 0.15);
	color: var(--accent-color);
}
body.light-theme #aiChatPopupContainer {
	background: rgba(250, 250, 255, 0.97);
	border-color: rgba(0, 0, 0, 0.1);
	box-shadow: 0 0.625rem 2.1875rem rgba(0, 0, 0, 0.15);
}
body.light-theme #aiChatPopupHeader {
	background-color: rgba(var(--accent-color-rgb), 0.8);
	border-bottom-color: rgba(var(--accent-color-rgb), 0.5);
}
body.light-theme .mobile-nav-active .navmenu ul {
	background-color: var(--surface-color);
	border-top-color: rgba(0, 0, 0, 0.05);
}
body.light-theme .mobile-nav-active .navmenu ul a {
	color: var(--nav-color);
}
body.light-theme .mobile-nav-active .navmenu ul a:hover {
	background-color: rgba(0, 0, 0, 0.04);
	color: var(--accent-color);
}
body.light-theme .mobile-nav-toggle {
	color: var(--heading-color);
	mix-blend-mode: normal;
}
body.light-theme .mobile-nav-active .mobile-nav-toggle {
	color: var(--heading-color);
}
body.light-theme .header .header-container {
	background: rgba(255, 255, 255, 0.95);
	border-bottom-color: rgba(0, 0, 0, 0.08);
}
/*--------------------------------------------------------------
# Subpage Hero Section
--------------------------------------------------------------*/
.subpage-hero {
  padding-top: 12rem;
  padding-bottom: 6rem;
  text-align: center;
}

.subpage-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  mix-blend-mode: difference;
}

.subpage-hero p {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--default-color);
}

/*--------------------------------------------------------------
# Feature Details Section
--------------------------------------------------------------*/
.feature-details .feature-item {
  margin-bottom: 6rem;
}

.feature-details .feature-content {
  padding: 0 2rem;
}

.feature-details .feature-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: rgba(var(--accent-color-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-details .feature-icon i {
  font-size: 2.5rem;
  color: var(--accent-color);
}

.feature-details .feature-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  mix-blend-mode: difference;
}

.feature-details .feature-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.feature-details .feature-content ul {
  list-style: none;
  padding: 0;
}

.feature-details .feature-content ul li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.feature-details .feature-content ul i {
  position: absolute;
  left: 0;
  top: 0.25rem;
  color: #11998e;
  font-size: 1.25rem;
}

.feature-details .feature-visual .glass-card {
  padding: 1rem;
}

.feature-details .feature-visual img {
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Light Theme Overrides for Subpage */
body.light-theme .subpage-hero h1,
body.light-theme .feature-details .feature-content h2 {
  color: var(--heading-color);
  mix-blend-mode: normal;
}

/*--------------------------------------------------------------
# Use Cases Grid Section
--------------------------------------------------------------*/
.use-cases-grid {
  padding-top: 0;
}

.use-case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0; /* Remove padding from the main card */
  overflow: hidden; /* Ensure child elements conform to border-radius */
}

.use-case-card .card-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.use-case-card .card-icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: rgba(var(--accent-color-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.use-case-card .card-icon i {
  font-size: 1.75rem;
  color: var(--accent-color);
}

.use-case-card .card-title h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: white;
  mix-blend-mode: difference;
}

.use-case-card .card-title span {
  font-size: 0.9rem;
  color: var(--default-color);
  font-weight: 500;
}

.use-case-card .card-body {
  padding: 1.5rem;
}

.use-case-card .card-body p {
  margin-bottom: 0;
}

.use-case-card .card-body img {
  border-radius: 0.5rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.use-case-card .card-footer {
  margin-top: auto; /* Pushes footer to the bottom */
  padding: 1.5rem;
  background-color: rgba(0,0,0,0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.use-case-card .card-footer h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.use-case-card .card-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.use-case-card .card-footer ul li {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.use-case-card .card-footer ul i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

/* Light Theme Overrides for Use Cases */
body.light-theme .use-case-card .card-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .use-case-card .card-title h3 {
  color: var(--heading-color);
  mix-blend-mode: normal;
}

body.light-theme .use-case-card .card-body img {
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .use-case-card .card-footer {
  background-color: rgba(0,0,0,0.03);
  border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .use-case-card .card-footer ul li {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

/*--------------------------------------------------------------
# Updates Section (Changelog & Roadmap)
--------------------------------------------------------------*/
.updates-section {
  padding-top: 0;
}

/* Modern Tabs */
.nav-tabs-modern {
  border-bottom: none;
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  gap: 1rem;
}

.nav-tabs-modern .nav-link {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--default-color);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-tabs-modern .nav-link i {
  margin-right: 0.5rem;
}

.nav-tabs-modern .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--heading-color);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-tabs-modern .nav-link.active {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

/* Changelog Timeline */
.timeline {
  position: relative;
  max-width: 45rem;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.25rem;
  height: 100%;
  width: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 4rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  position: absolute;
  left: -1.5rem;
  top: 0.25rem;
  font-weight: 600;
  color: var(--heading-color);
  background-color: var(--background-color);
  padding: 0.25rem 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  border-right: 3px solid var(--accent-color);
}

.timeline-content.glass-card {
  padding: 1.5rem 2rem;
}

.timeline-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  margin-bottom: 1rem;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-content ul li {
  margin-bottom: 0.5rem;
}

.timeline-content .badge {
  font-weight: 600;
  padding: 0.3em 0.7em;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
  font-size: 0.8rem;
}
.badge.new { background-color: #198754; color: white; }
.badge.improved { background-color: #0d6efd; color: white; }
.badge.fixed { background-color: #fd7e14; color: white; }

/* Roadmap Grid */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2rem;
}

.roadmap-column .roadmap-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.roadmap-column .roadmap-header i {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--accent-color);
}

.roadmap-column .roadmap-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.roadmap-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.roadmap-card {
  padding: 1.25rem 1.5rem;
}

.roadmap-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.roadmap-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.roadmap-card.completed {
  opacity: 0.7;
}

.roadmap-card.completed h4 {
  text-decoration: line-through;
}

.progress-bar {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-top: 1rem;
  overflow: hidden;
}

.progress-bar .progress {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 4px;
}

/* Light Theme Overrides */
body.light-theme .nav-tabs-modern .nav-link {
  border-color: rgba(0, 0, 0, 0.1);
  background-color: rgba(0, 0, 0, 0.03);
}
body.light-theme .nav-tabs-modern .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}
body.light-theme .nav-tabs-modern .nav-link.active {
  border-color: var(--accent-color);
}
body.light-theme .timeline::before {
  background: rgba(0, 0, 0, 0.1);
}
body.light-theme .timeline-date {
  background-color: var(--background-color);
}
body.light-theme .roadmap-column .roadmap-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .progress-bar {
  background-color: rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# API Documentation Page
--------------------------------------------------------------*/
.api-docs-page .subpage-hero {
  padding-bottom: 3rem;
}

.api-docs-content {
  padding-top: 0;
}

/* Sticky Navigation */
.api-nav {
  top: 7rem; /* Adjust based on header height */
  padding: 1rem 0;
}

.api-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.api-nav ul li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--default-color);
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.api-nav ul li a:hover {
  color: var(--heading-color);
  background-color: rgba(255, 255, 255, 0.05);
}

.api-nav ul li a.active {
  color: var(--accent-color);
  font-weight: 600;
  border-left-color: var(--accent-color);
}

.api-nav ul li ul {
  padding-left: 1.25rem;
  margin-top: 0.25rem;
}

.api-nav ul li ul a {
  font-size: 0.9rem;
  font-weight: 400;
}

/* Main Content Area */
.api-section {
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 3rem;
}
.api-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.api-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.api-endpoint {
  margin-top: 2.5rem;
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.endpoint-header .method {
  font-family: 'Roboto Mono', monospace;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
}
.method.post { background-color: #49cc90; }
.method.get { background-color: #61affe; }
.method.put { background-color: #fca130; }
.method.delete { background-color: #f93e3e; }

.endpoint-header .path {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1rem;
  color: var(--heading-color);
  font-weight: 500;
}

.api-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Code Blocks */
.code-block {
  background-color: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.code-block.response {
  background-color: #161b22;
}

.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.code-block code {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  color: #c9d1d9;
}

.code-comment { color: #8b949e; }
.code-key { color: #79c0ff; }
.code-value { color: #a5d6ff; }

/* Parameter Tables */
.param-table {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}
.param-row {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.param-row:last-child { border-bottom: none; }
.param-row.header {
  background-color: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}
.param-name, .param-desc {
  padding: 0.75rem 1rem;
}
.param-name {
  width: 40%;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.param-name code {
  font-size: 0.95rem;
}
.param-name span {
  display: block;
  font-size: 0.8rem;
  color: #8b949e;
  margin-top: 0.25rem;
}
.param-desc {
  width: 60%;
}

/* Light Theme Overrides */
body.light-theme .api-nav ul li a:hover {
  background-color: rgba(0, 0, 0, 0.03);
}
body.light-theme .api-nav ul li a.active {
  background-color: transparent;
}
body.light-theme .api-section {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .endpoint-header .path {
  color: var(--heading-color);
}
body.light-theme .code-block {
  background-color: #f6f8fa;
  border-color: #d0d7de;
}
body.light-theme .code-block.response {
  background-color: #eff2f5;
}
body.light-theme .code-block code { color: #24292f; }
body.light-theme .code-comment { color: #6a737d; }
body.light-theme .code-key { color: #0550ae; }
body.light-theme .code-value { color: #0a3069; }
body.light-theme .param-table { border-color: #d0d7de; }
body.light-theme .param-row { border-bottom-color: #d0d7de; }
body.light-theme .param-row.header { background-color: #f6f8fa; }
body.light-theme .param-name { border-right-color: #d0d7de; }
body.light-theme .param-name span { color: #57606a; }

/* Responsive */
@media (max-width: 991px) {
  .api-nav {
    position: static;
    margin-bottom: 2rem;
  }
}

/*--------------------------------------------------------------
# Blog Listing Page
--------------------------------------------------------------*/
.blog-listing {
  padding-top: 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.blog-card-image {
  overflow: hidden;
}

.blog-card-image img {
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-tags .tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  background-color: rgba(var(--accent-color-rgb), 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.75rem 0;
}

.blog-card-title a {
  color: var(--heading-color);
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: var(--accent-color);
}

.blog-card-excerpt {
  color: var(--default-color);
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  margin-right: 0.75rem;
}

.author-info {
  font-size: 0.9rem;
}

.author-name {
  display: block;
  font-weight: 600;
  color: var(--heading-color);
}

.post-date {
  color: var(--default-color);
  font-size: 0.85rem;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  gap: 0.5rem;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--default-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.pagination a.active {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.pagination a.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/*--------------------------------------------------------------
# Single Blog Post Page
--------------------------------------------------------------*/
.blog-post-hero {
  padding-top: 8rem;
  padding-bottom: 2rem;
}

.blog-post-hero .post-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 1rem 0;
  color: white;
  mix-blend-mode: difference;
}

.featured-image-container {
  margin-bottom: 4rem;
}

.featured-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border-radius: 1rem;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content .lead {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--heading-color);
}

.post-content h2, .post-content h3 {
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--heading-color);
}

.post-content figure {
  margin: 2rem 0;
}

.post-content figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--default-color);
  margin-top: 0.5rem;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-tags a, .post-share a {
  color: var(--default-color);
  margin-left: 0.5rem;
  transition: color 0.3s ease;
}
.post-tags a:hover, .post-share a:hover {
  color: var(--accent-color);
}
.post-tags a {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
}

/* Light Theme Overrides */
body.light-theme .blog-card-meta {
  border-top-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .pagination a {
  border-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .pagination a:hover {
  border-color: var(--accent-color);
}
body.light-theme .blog-post-hero .post-title {
  color: var(--heading-color);
  mix-blend-mode: normal;
}
body.light-theme .post-footer {
  border-top-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .post-tags a {
  background-color: rgba(0, 0, 0, 0.05);
}
/*--------------------------------------------------------------
# Dashboard V2 - Upgraded Layout & Components
--------------------------------------------------------------*/

/* Hide marketing page elements on dashboard */
.dashboard-page #constellation-bg,
.dashboard-page > .header,
.dashboard-page > .footer {
  display: none;
}

.dashboard-page {
  background-color: var(--background-color);
  overflow: hidden; /* Prevent scrollbars on the body */
}

.dashboard-layout {
  display: flex;
  height: 100vh;
}

/* === Sidebar V2 === */
.sidebar {
  width: 260px;
  background: var(--surface-color);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  transition: width 0.3s ease;
  flex-shrink: 0;
}
body.light-theme .sidebar {
  background: #f8f9fa;
  border-right-color: #dee2e6;
}

.sidebar-header {
  padding: 1rem 0.5rem;
  margin-bottom: 1rem;
}
.sidebar-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--heading-color);
  font-size: 1.25rem;
  font-weight: 700;
}

.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  color: var(--default-color);
  font-weight: 500;
  transition: all 0.2s ease;
}
.sidebar-nav ul li a:hover {
  background-color: rgba(var(--accent-color-rgb), 0.1);
  color: var(--accent-color);
}
.sidebar-nav ul li a.active {
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
}
.sidebar-nav ul li a i { font-size: 1.2rem; }

.sidebar-footer { margin-top: auto; }
.user-profile {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
}
body.light-theme .user-profile {
  background-color: rgba(0, 0, 0, 0.03);
}
.user-profile .avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; margin-right: 0.75rem; }
.user-profile .user-info { flex-grow: 1; }
.user-profile .name { font-weight: 600; color: var(--heading-color); display: block; }
.user-profile .plan { font-size: 0.8rem; color: var(--default-color); }
.user-profile .logout-btn { color: var(--default-color); font-size: 1.2rem; }
.user-profile .logout-btn:hover { color: var(--accent-color); }

/* === Main Content V2 === */
.main-content {
  flex-grow: 1;
  padding: 2rem 2.5rem;
  overflow-y: auto;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}
.main-header h1 { margin: 0; font-size: 2rem; font-weight: 700; }
.main-header p { margin: 0; color: var(--default-color); }
.dropdown-menu {
  background: var(--surface-color);
  border-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
}
.dropdown-item {
  color: var(--default-color);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dropdown-item:hover {
  background-color: rgba(var(--accent-color-rgb), 0.1);
  color: var(--accent-color);
}
body.light-theme .dropdown-menu {
  background: #ffffff;
  border-color: #dee2e6;
}

/* === Dashboard Grid V2 === */
.dashboard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
}

.stat-card {
  grid-column: span 1;
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  position: relative;
}
.stat-card .card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--accent-color-rgb), 0.1);
  margin-right: 1rem;
}
.stat-card .card-icon i { font-size: 1.5rem; color: var(--accent-color); }
.stat-card .label { display: block; font-size: 0.9rem; color: var(--default-color); }
.stat-card .value { display: block; font-size: 1.75rem; font-weight: 700; color: var(--heading-color); }
.card-trend {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.card-trend.increase { color: #28a745; }
.card-trend.decrease { color: #dc3545; }

.dashboard-card { padding: 1.5rem; }
.dashboard-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.dashboard-card .card-header h3 { margin: 0; font-size: 1.2rem; font-weight: 600; }
.dashboard-card .card-header .view-all { font-size: 0.9rem; font-weight: 500; }

.agents-card { grid-column: 1 / span 2; }
.chart-card { grid-column: 3 / span 1; }

.resource-list { list-style: none; padding: 0; margin: 0; }
.resource-list li {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.resource-list li:last-child { border-bottom: none; }
.resource-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  background-color: var(--icon-bg);
  color: var(--icon-color);
}
.resource-info { flex-grow: 1; }
.resource-info .name { font-weight: 500; display: block; }
.resource-info .meta { font-size: 0.85rem; color: var(--default-color); }
.resource-actions { display: flex; gap: 0.75rem; }
.resource-actions a { color: var(--default-color); font-size: 1.1rem; }
.resource-actions a:hover { color: var(--accent-color); }

.chart-placeholder {
  width: 100%;
  height: auto;
  opacity: 0.5;
}

body.light-theme .resource-list li {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# UI Kit - New Components
--------------------------------------------------------------*/

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border: none;
  border-left: 4px solid;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.alert i {
  font-size: 1.25rem;
  margin-right: 1rem;
}
.alert-success { background-color: rgba(25, 135, 84, 0.1); color: #a3cfbb; border-color: #198754; }
.alert-info { background-color: rgba(13, 202, 240, 0.1); color: #9eeaf9; border-color: #0dcaf0; }
.alert-warning { background-color: rgba(255, 193, 7, 0.1); color: #ffe69c; border-color: #ffc107; }
.alert-danger { background-color: rgba(220, 53, 69, 0.1); color: #f1b5bb; border-color: #dc3545; }

body.light-theme .alert-success { color: #0f5132; }
body.light-theme .alert-info { color: #055160; }
body.light-theme .alert-warning { color: #664d03; }
body.light-theme .alert-danger { color: #842029; }

/* Modals */
.modal-content {
  border: none;
  padding: 0.5rem;
}
.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
body.light-theme .modal-header,
body.light-theme .modal-footer {
  border-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .btn-close {
  filter: none;
}
.btn-danger {
  background-color: #dc3545;
  color: white;
}

/* Data Tables */
.table {
  color: var(--default-color);
  border-color: rgba(255, 255, 255, 0.1);
}
.table th {
  color: var(--heading-color);
  border-bottom-width: 2px;
}
.table .badge { font-weight: 600; padding: 0.3em 0.7em; border-radius: 1rem; }
.badge.status-active { color: #198754; background-color: rgba(25, 135, 84, 0.15); }
.badge.status-inactive { color: #6c757d; background-color: rgba(108, 117, 125, 0.15); }
.action-link {
  color: var(--default-color);
  text-decoration: none;
  font-weight: 500;
}
.action-link:hover {
  color: var(--accent-color);
}

body.light-theme .table {
  color: var(--default-color);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Avatars */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(var(--accent-color-rgb), 0.2);
  color: var(--accent-color);
  font-weight: 600;
  object-fit: cover;
}
.avatar.avatar-sm { width: 2rem; height: 2rem; font-size: 0.8rem; }
.avatar.avatar-md { width: 2.5rem; height: 2.5rem; font-size: 1rem; }
.avatar.avatar-lg { width: 3.5rem; height: 3.5rem; font-size: 1.5rem; }

.avatar-group {
  display: inline-flex;
}
.avatar-group .avatar {
  margin-left: -0.75rem;
  border: 2px solid var(--background-color);
}
.avatar-group .avatar:first-child {
  margin-left: 0;
}

/*--------------------------------------------------------------
# UI Kit - Advanced Components
--------------------------------------------------------------*/

/* Wizard / Stepper */
.wizard-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}
.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  color: var(--default-color);
  flex-grow: 1;
  justify-content: center;
  opacity: 0.5;
}
.step-item.active {
  color: var(--accent-color);
  font-weight: 600;
  opacity: 1;
}
.step-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-color);
}
.step-counter {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.step-item.active .step-counter {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

body.light-theme .wizard-stepper {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Video Player */
.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
}

/* Toggle Switch */
/* This is the CORRECTED block */
/*--------------------------------------------------------------
# Forms - Toggle Switch
--------------------------------------------------------------*/
.form-switch .form-check-input {
  width: 3em;
  height: 1.5em;
  cursor: pointer;
  /* Default (off) state for dark theme */
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,0.3)'/%3e%3c/svg%3e");
}

/* Checked state for dark theme */
.form-switch .form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Default (off) state for light theme */
body.light-theme .form-switch .form-check-input {
  background-color: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(0,0,0,0.25)'/%3e%3c/svg%3e");
}

/*
  THIS IS THE KEY FIX:
  Checked state for light theme
*/
body.light-theme .form-switch .form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
/* File Upload */
.file-drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: background-color 0.3s ease;
}
.file-drop-zone:hover {
  background-color: rgba(var(--accent-color-rgb), 0.1);
  border-color: var(--accent-color);
}
.file-drop-icon i {
  font-size: 3rem;
  color: var(--accent-color);
}
.file-drop-text {
  margin: 0.5rem 0 0 0;
}
.file-drop-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
body.light-theme .file-drop-zone {
  border-color: rgba(0, 0, 0, 0.2);
}

/*--------------------------------------------------------------
# UI Kit - Final Additions
--------------------------------------------------------------*/

/* Calendar */
.calendar-container {
  padding: 1.5rem;
  transform: none; /* Disable tilt for this complex component */
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.calendar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-color);
}
.calendar-header .btn-icon {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--default-color);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.calendar-header .btn-icon:hover {
  background-color: rgba(var(--accent-color-rgb), 0.1);
  color: var(--accent-color);
  border-color: var(--accent-color);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}
.day-name {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--default-color);
  margin-bottom: 0.5rem;
}
.day-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 0.5rem;
  transition: background-color 0.3s ease;
}
.day-cell:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.day-cell span {
  font-weight: 500;
}
.day-cell.other-month {
  opacity: 0.4;
}
.day-cell.today {
  background-color: rgba(var(--accent-color-rgb), 0.1);
  border-color: var(--accent-color);
}
.day-cell.today span {
  color: var(--accent-color);
  font-weight: 700;
}
.event {
  font-size: 0.75rem;
  background-color: var(--accent-color);
  color: white;
  padding: 0.1rem 0.5rem;
  border-radius: 0.25rem;
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.light-theme .calendar-header .btn-icon {
  border-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .day-cell {
  border-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .day-cell:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Content Tabs */
.nav-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.nav-tabs .nav-link {
  color: var(--default-color);
  border-color: transparent;
  border-bottom-color: transparent !important;
}
.nav-tabs .nav-link.active {
  color: var(--accent-color);
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--background-color) !important;
}
body.light-theme .nav-tabs {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .nav-tabs .nav-link.active {
  border-color: rgba(0, 0, 0, 0.1);
  border-bottom-color: var(--background-color) !important;
}
body.light-theme .tab-content {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Breadcrumbs */
.breadcrumb {
  margin-bottom: 0;
}
.breadcrumb-item a {
  color: var(--default-color);
  font-weight: 500;
}
.breadcrumb-item a:hover {
  color: var(--accent-color);
}
.breadcrumb-item.active {
  color: var(--heading-color);
  font-weight: 500;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--default-color);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
}
.empty-state-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}
.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}
.empty-state-text {
  color: var(--default-color);
  max-width: 300px;
  margin: 0 auto;
}
body.light-theme .empty-state {
  border-color: rgba(0, 0, 0, 0.15);
}

/*--------------------------------------------------------------
# Data Table Theme Overrides (Corrected)
--------------------------------------------------------------*/

/* === Dark Theme Table Styles === */
/* This applies when the body does NOT have the .light-theme class */
body:not(.light-theme) .table {
  /* Set the text and border colors using Bootstrap's CSS variables */
  --bs-table-color: var(--default-color);
  --bs-table-border-color: rgba(255, 255, 255, 0.15);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.05); /* For striped tables */
  --bs-table-striped-color: var(--heading-color);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.07); /* For hoverable rows */
  --bs-table-hover-color: var(--heading-color);
}

/* Target the table header specifically for dark mode */
body:not(.light-theme) .table > thead {
  color: var(--heading-color);
  background-color: rgba(255, 255, 255, 0.05); /* Give header a subtle background */
}

/* Target all table cells (header and body) in dark mode */
body:not(.light-theme) .table > :not(caption) > * > * {
  /* This is the KEY FIX: Make the cell background transparent */
  background-color: transparent;
  color: inherit; /* Inherit the color from the .table rule */
}


/* === Light Theme Table Styles === */
/* This ensures the table looks normal in light mode */
body.light-theme .table {
  /* Reset to Bootstrap defaults */
  --bs-table-color: #212529;
  --bs-table-border-color: #dee2e6;
  --bs-table-striped-bg: rgba(0, 0, 0, 0.05);
  --bs-table-striped-color: #212529;
  --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
  --bs-table-hover-color: #212529;
}

body.light-theme .table > thead {
  background-color: transparent;
}