:root[data-theme="light"] {
  --bg-base: #f4f6fb;
  --bg-primary: #f0f7f6;
  --bg-section: #ffffff;
  --bg-input: #f7f7f7;
  --text-primary: #212121;
  --text-secondary: #8791ab;
  --text-muted: #c3c8d5;
  --text-hint-alt: #edeff2;
  --brand-primary: #04b298;
  --brand-atleia: #7c35d8;
  --brand-secondary: #ed572f;
  --glass-fill: rgba(255, 255, 255, 0.45);
  --glass-grad-start: rgba(255, 255, 255, 0.45);
  --glass-grad-end: rgba(255, 255, 255, 0.20);
  --glass-border: rgba(255, 255, 255, 0.60);
  --glass-shadow-1: 0 8px 24px rgba(0, 0, 0, 0.08);
  --glass-shadow-2: 0 4px 16px -2px rgba(4, 178, 152, 0.06);
  --mesh-blob-1: #d2f7f0;
  --mesh-blob-2: rgba(242, 238, 255, 0.88);
  --mesh-blob-3: #ffe3d5;
  --sidebar-active-grad-start: rgba(210, 247, 240, 0.85);
  --sidebar-active-grad-end: rgba(145, 242, 222, 0.55);
  --sidebar-active-border: rgba(23, 229, 195, 0.35);
  --sidebar-active-shadow: rgba(4, 178, 152, 0.18);
  --sidebar-active-fg: #055c53;
  --sidebar-active-dot: #04b298;
}

:root[data-theme="dark"] {
  --bg-base: #0b0f19;
  --bg-primary: #0b0f19;
  --bg-section: #161b26;
  --bg-input: #1f2633;
  --text-primary: #ffffff;
  --text-secondary: #e1e3ea;
  --text-muted: #a5acc0;
  --text-hint-alt: #8791ab;
  --brand-primary: #04b298;
  --brand-atleia: #7c35d8;
  --brand-secondary: #ed572f;
  --glass-fill: rgba(22, 27, 38, 0.40);
  --glass-grad-start: rgba(22, 27, 38, 0.45);
  --glass-grad-end: rgba(15, 19, 28, 0.20);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow-1: 0 8px 24px rgba(0, 0, 0, 0.25);
  --glass-shadow-2: 0 4px 16px -2px rgba(124, 53, 216, 0.12);
  --mesh-blob-1: #023630;
  --mesh-blob-2: rgba(39, 27, 58, 0.78);
  --mesh-blob-3: #4a1f12;
  --sidebar-active-grad-start: rgba(124, 53, 216, 0.24);
  --sidebar-active-grad-end: rgba(124, 53, 216, 0.08);
  --sidebar-active-border: rgba(124, 53, 216, 0.45);
  --sidebar-active-shadow: rgba(124, 53, 216, 0.30);
  --sidebar-active-fg: #ffffff;
  --sidebar-active-dot: #7c35d8;
}

html,
body {
  background: var(--bg-base);
  color: var(--text-primary);
  transition: all 300ms ease-in-out;
}

#dashboard-mesh-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  transition: all 300ms ease-in-out;
}

.mesh-blob.top-right {
  top: -100px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: var(--mesh-blob-1);
}

.mesh-blob.bottom-left {
  bottom: 120px;
  left: -150px;
  width: 460px;
  height: 460px;
  background: var(--mesh-blob-2);
}

.mesh-blob.mid-right {
  top: 260px;
  right: -100px;
  width: 280px;
  height: 280px;
  background: var(--mesh-blob-3);
}

flt-glass-pane,
flutter-view,
canvas {
  position: relative;
  z-index: 1;
}

.glass-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(180deg, var(--glass-grad-start) 0%, var(--glass-grad-end) 100%);
  border: 0.8px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow-1), var(--glass-shadow-2);
  overflow: hidden;
  transition: all 300ms ease-in-out;
}

.glass-kpi-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: all 300ms ease-in-out;
}

:root[data-theme="light"] .glass-kpi-card {
  background: linear-gradient(180deg, var(--glass-grad-start) 0%, var(--glass-grad-end) 100%);
}

:root[data-theme="dark"] .glass-kpi-card {
  background: linear-gradient(
    180deg,
    rgba(22, 27, 38, 0.40) 0%,
    rgba(15, 19, 28, 0.15) 100%
  );
}

.glass-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  transition: all 300ms ease-in-out;
}

:root[data-theme="light"] .glass-header {
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.04);
}

:root[data-theme="dark"] .glass-header {
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.sidebar-item-active {
  border-radius: 999px;
  overflow: hidden;
  transition: all 300ms ease-in-out;
}

:root[data-theme="dark"] .sidebar-item-active {
  background: linear-gradient(180deg, rgba(124, 53, 216, 0.24), rgba(124, 53, 216, 0.08));
  border: 0.6px solid rgba(124, 53, 216, 0.45);
  box-shadow: 0 2px 12px -1px rgba(124, 53, 216, 0.30);
}

:root[data-theme="light"] .sidebar-item-active {
  background: linear-gradient(180deg, rgba(210, 247, 240, 0.85), rgba(145, 242, 222, 0.55));
  border: 0.6px solid rgba(23, 229, 195, 0.35);
  box-shadow: 0 2px 12px -1px rgba(4, 178, 152, 0.18);
}

.text-primary {
  color: var(--text-primary);
  transition: all 300ms ease-in-out;
}

.text-secondary {
  color: var(--text-secondary);
  transition: all 300ms ease-in-out;
}
