/* =========================================================
   Relaxation Module — calm, modern, accessible UI
   ========================================================= */

:root {
    /* Mapping naar DØST kleuren */
    --rx-bg: var(--dost-bg-primary);
    --rx-bg-elevated: var(--dost-bg-secondary);
    /* Kaarten en randen - gebaseerd op DØST accenten */
    --rx-bg-card: rgba(115, 107, 92, 0.08);
    --rx-bg-card-hover: rgba(115, 107, 92, 0.12);
    --rx-border: rgba(96, 113, 89, 0.2);
    /* Tekstkleuren */
    --rx-text: var(--dost-text-main);
    --rx-text-muted: var(--dost-text-muted);
    --rx-text-soft: var(--dost-accent-stone);
    /* Accentkleuren */
    --rx-accent: var(--dost-accent-light);
    --rx-accent-2: var(--dost-accent-earth);
    /* Functionele kleuren */
    --rx-success: var(--dost-accent-light);
    --rx-warning: var(--dost-accent-earth);
    --rx-danger: var(--dost-accent-stone);
    /* Structuur behouden */
    --rx-radius: 18px;
    --rx-radius-sm: 12px;
    --rx-shadow: 0 12px 40px rgba(115, 107, 92, 0.15);
    --rx-font: "Segoe UI", system-ui, sans-serif;
    --rx-transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rx-root {
    font-family: var(--rx-font);
    color: var(--rx-text);
    min-height: 100vh;
    /* Rustgevende lichte gradiënt aangepast naar DØST palet */
    background: radial-gradient(1200px 600px at 10% -10%, rgba(135, 166, 134, 0.1), transparent 60%), radial-gradient(900px 500px at 100% 0%, rgba(173, 191, 170, 0.1), transparent 55%), var(--rx-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-image: var(--env-bg-image, none);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay; /* Zorgt dat de DØST-kleur en foto mooi mengen */
    transition: background-image 1s ease-in-out;
}

.rx-root *,
.rx-root *::before,
.rx-root *::after {
  box-sizing: border-box;
}

.rx-container {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 2rem;
}

/* ---------- Header ---------- */
.rx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.rx-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.rx-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--dost-accent-light), var(--dost-accent-soft));
    box-shadow: 0 8px 24px rgba(135, 166, 134, 0.25);
}

.rx-brand h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rx-brand p {
  margin: 0.1rem 0 0;
  color: var(--rx-text-muted);
  font-size: 0.9rem;
}

.rx-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ---------- Controls ---------- */
.rx-btn {
  appearance: none;
  border: 1px solid var(--rx-border);
  background: var(--rx-bg-card);
  color: var(--rx-text);
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--rx-transition), transform var(--rx-transition), border-color var(--rx-transition), box-shadow var(--rx-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  user-select: none;
}

.rx-btn:hover {
  background: var(--rx-bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
}

.rx-btn:active {
  transform: translateY(1px);
}

.rx-btn:focus-visible {
  outline: 2px solid var(--rx-accent);
  outline-offset: 2px;
}

.rx-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rx-btn-primary {
    background: linear-gradient(135deg, var(--dost-accent-light), var(--dost-accent-earth));
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(135, 166, 134, 0.25);
}

.rx-btn-primary:hover {
  filter: brightness(1.06);
  background: linear-gradient(135deg, #5b8def, #7e6ad9);
}

.rx-btn-ghost {
  background: transparent;
}

.rx-btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
}

.rx-chip {
  border: 1px solid var(--rx-border);
  background: transparent;
  color: var(--rx-text-muted);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--rx-transition);
}

.rx-chip:hover {
  color: var(--rx-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.rx-chip.is-active {
  color: #0b1020;
  background: var(--rx-text);
  border-color: transparent;
}

/* ---------- Filters ---------- */
.rx-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.rx-search {
  flex: 1 1 220px;
  min-width: 180px;
  background: var(--rx-bg-card);
  border: 1px solid var(--rx-border);
  border-radius: 999px;
  color: var(--rx-text);
  padding: 0.65rem 1rem;
  font: inherit;
}

.rx-search:focus {
  outline: 2px solid rgba(122, 162, 255, 0.5);
  outline-offset: 1px;
}

.rx-search::placeholder {
  color: var(--rx-text-soft);
}

/* ---------- Exercise grid ---------- */
.rx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.rx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.15rem;
  border-radius: var(--rx-radius);
  background: var(--rx-bg-card);
  border: 1px solid var(--rx-border);
  box-shadow: var(--rx-shadow);
  transition: transform var(--rx-transition), background var(--rx-transition), border-color var(--rx-transition);
  overflow: hidden;
  min-height: 210px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

    .rx-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(160deg, var(--dost-bg-secondary), var(--dost-accent-earth));
        opacity: 0.25; /* Iets transparanter voor de lichte look */
        z-index: 0;
    }

.rx-card > * {
  position: relative;
  z-index: 1;
}

.rx-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.rx-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.rx-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rx-card-meta {
  font-size: 0.75rem;
  color: var(--rx-text-muted);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}

.rx-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.rx-card p {
  margin: 0;
  color: var(--rx-text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.rx-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--rx-text-soft);
}

.rx-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--rx-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- Session shell ---------- */
.rx-session {
  min-height: calc(100vh - 0px);
  display: flex;
  flex-direction: column;
}

.rx-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.rx-session-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1rem 0 2rem;
}

.rx-session-panel {
    width: min(720px, 100%);
    background: rgba(255, 255, 255, 0.5); /* Zachte 'glassmorphism' voor lichte achtergrond */
    border: 1px solid var(--rx-border);
    backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: var(--rx-shadow);
    text-align: center;
}

.rx-session-kicker {
  color: var(--rx-text-soft);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.rx-session-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: -0.02em;
}

.rx-session-instruction {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  color: var(--rx-text-muted);
  font-size: 1.05rem;
}

.rx-session-hint {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  color: var(--rx-text-soft);
  font-size: 0.9rem;
  font-style: italic;
}

.rx-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 1rem 0 0.35rem;
}

.rx-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rx-accent), var(--rx-accent-2));
  transition: width 0.35s linear;
}

.rx-stats {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  color: var(--rx-text-soft);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.rx-controls {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* ---------- Breathing visualizer ---------- */
.rx-breath {
  position: relative;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  margin: 0.5rem auto 1.25rem;
  display: grid;
  place-items: center;
}

.rx-breath-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rx-breath-orb {
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 45%),
    radial-gradient(circle at 70% 70%, var(--breath-accent, #5b8def), rgba(20, 30, 60, 0.2));
  box-shadow:
    0 0 40px color-mix(in srgb, var(--breath-accent, #5b8def) 45%, transparent),
    inset 0 0 30px rgba(255, 255, 255, 0.15);
  transition: transform linear, filter 0.4s ease;
  will-change: transform;
}

.rx-breath-count {
  position: absolute;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  font-variant-numeric: tabular-nums;
}

.rx-breath-phase {
  margin-top: 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rx-text);
}

/* ---------- Body map / trataka ---------- */
.rx-body-map {
  width: min(180px, 45vw);
  margin: 0.5rem auto 1rem;
  opacity: 0.9;
}

.rx-body-map .region {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
  transition: fill 0.5s ease, filter 0.5s ease;
}

.rx-body-map .region.is-active {
  fill: color-mix(in srgb, var(--breath-accent, #6bcb77) 55%, white 10%);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--breath-accent, #6bcb77) 60%, transparent));
}

.rx-trataka {
  width: min(260px, 70vw);
  height: min(260px, 70vw);
  margin: 0.75rem auto 1.25rem;
  display: grid;
  place-items: center;
  position: relative;
}

.rx-trataka-point {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7d6 0%, #ffb347 40%, transparent 70%);
  box-shadow:
    0 0 20px rgba(255, 180, 70, 0.9),
    0 0 60px rgba(255, 160, 40, 0.45),
    0 0 100px rgba(255, 140, 20, 0.25);
  animation: rx-pulse 2.8s ease-in-out infinite;
}

.rx-trataka-halo {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid rgba(255, 180, 80, 0.25);
  animation: rx-pulse 2.8s ease-in-out infinite;
}

@keyframes rx-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* ---------- Interactive 54321 ---------- */
.rx-prompt-list {
  display: grid;
  gap: 0.55rem;
  text-align: left;
  margin: 0.75rem auto 0;
  max-width: 26rem;
}

.rx-prompt-item {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rx-border);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
}

.rx-prompt-item input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--rx-text);
  font: inherit;
  outline: none;
}

.rx-prompt-item input::placeholder {
  color: var(--rx-text-soft);
}

.rx-prompt-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: transparent;
  flex-shrink: 0;
}

.rx-prompt-item.is-done .rx-prompt-check {
  background: var(--rx-success);
  border-color: var(--rx-success);
  color: #0b1020;
}

/* ---------- Steps rail ---------- */
.rx-steps {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
}

.rx-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all var(--rx-transition);
}

.rx-step-dot.is-done {
  background: rgba(255, 255, 255, 0.45);
}

.rx-step-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--breath-accent, var(--rx-accent));
}

/* ---------- Detail page ---------- */
.rx-detail {
  display: grid;
  gap: 1.25rem;
}

.rx-detail-hero {
  border-radius: 28px;
  padding: 1.75rem;
  border: 1px solid var(--rx-border);
  background: linear-gradient(145deg, var(--hero-from, #1a2744), var(--hero-to, #2d4a7a));
  box-shadow: var(--rx-shadow);
}

.rx-detail-hero h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.rx-detail-hero p {
  margin: 0;
  max-width: 48rem;
  color: rgba(238, 242, 255, 0.88);
}

.rx-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

@media (max-width: 800px) {
  .rx-detail-grid {
    grid-template-columns: 1fr;
  }
}

.rx-panel {
  background: var(--rx-bg-card);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius);
  padding: 1.15rem 1.25rem;
}

.rx-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.rx-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--rx-text-muted);
}

.rx-list li + li {
  margin-top: 0.35rem;
}

.rx-duration {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.rx-duration input[type="range"] {
  flex: 1;
  min-width: 140px;
  accent-color: var(--rx-accent);
}

.rx-duration-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  min-width: 4.5rem;
}

/* ---------- Settings strip ---------- */
.rx-settings {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--rx-text-muted);
  font-size: 0.88rem;
}

.rx-settings label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.rx-settings input[type="range"] {
  width: 100px;
  accent-color: var(--rx-accent);
}

/* ---------- Empty / complete ---------- */
.rx-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--rx-text-muted);
}

.rx-complete-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* ---------- Wave decoration ---------- */
.rx-wave-deco {
  height: 48px;
  width: 100%;
  margin: 0.5rem 0 1rem;
  opacity: 0.7;
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .rx-breath-orb,
  .rx-trataka-point,
  .rx-trataka-halo,
  .rx-card {
    transition: none !important;
    animation: none !important;
  }
}

.rx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.env-forest {
    --env-bg-image: url('../images/forest.png');
}

.env-temple {
    --env-bg-image: url('../images/temple.png');
}

.env-coast {
    --env-bg-image: url('../images/coast.png');
}

    .env-forest .rx-container,
    .env-temple .rx-container,
    .env-coast .rx-container {
        background-color: rgba(255, 255, 255, 0.6) !important; /* Semi-transparant wit/grijs */
        backdrop-filter: blur(5px); /* Geeft een chic "frosted glass" effect */
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

.dost-app-wrapper {
    min-height: 100vh;
    width: 100vw;
    background-size: cover;
    background-position: center;
}

    .dost-app-wrapper.env-forest .rx-container,
    .dost-app-wrapper.env-temple .rx-container,
    .dost-app-wrapper.env-coast .rx-container {
        /*max-width: 800px;*/ /* Of verwijder dit voor echt full-width */
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.4) !important; /* Semi-transparant */
        backdrop-filter: blur(10px);
    }

    .dost-app-wrapper.env-forest,
    .dost-app-wrapper.env-temple,
    .dost-app-wrapper.env-coast {
        color: #333; /* Zorg voor donkere tekst voor contrast */
    }

/* Verwijder de vaste achtergrondkleur van het paneel zelf */
.env-forest .rx-session-panel,
.env-temple .rx-session-panel,
.env-coast .rx-session-panel {
    background: transparent !important;
}

/* Verwijder de witte/blauwe invulling volledig in de sfeer-modus */
.dost-app-wrapper.env-forest .rx-container,
.dost-app-wrapper.env-forest .rx-session-panel,
.dost-app-wrapper.env-temple .rx-container,
.dost-app-wrapper.env-temple .rx-session-panel,
.dost-app-wrapper.env-coast .rx-container,
.dost-app-wrapper.env-coast .rx-session-panel {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Zorg dat de tekst leesbaar blijft zonder de witte container */
.dost-app-wrapper.env-forest,
.dost-app-wrapper.env-temple,
.dost-app-wrapper.env-coast {
    /* Eventueel een subtiele text-shadow voor contrast tegen de foto */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
    color: white; /* Maak tekst wit voor beter contrast op natuurfoto's */
}

/* Verwijder de blend-mode die de waas veroorzaakt */
.rx-root, .dost-app-wrapper {
    background-blend-mode: normal !important; /* Zet dit van 'overlay' naar 'normal' */
    background-color: transparent !important; /* Verwijder de eventuele kleurlaag */
}

/* Zorg dat de foto zelf niet wordt beïnvloed door container-backgrounds */
.env-forest, .env-temple, .env-coast {
    background-image: var(--env-bg-image) !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Zorg dat er geen enkele andere laag overheen ligt */
    filter: none !important;
}

.rx-box-svg path {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rx-wave-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 1rem;
}

.rx-wave-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.rx-wave-dot {
    filter: drop-shadow(0px 0px 6px rgba(91, 141, 239, 0.6));
    transition: cx 0.1s linear, cy 0.1s linear;
}
/* BoxVisualizer.razor.css */

.box-svg {
    width: 200px;
    height: 200px;
}

.orb {
    transition: all 0.5s ease-in-out; /* Dit zorgt ervoor dat elke verandering vloeiend verloopt */
}

.box-fill {
    opacity: 0.5;
    transition: y 0.1s linear, height 0.1s linear;
}

.box-track {
    fill: none;
    stroke-width: 2;
}

.box-svg .orb,
.box-svg .box-fill {
    transition: transform 0.1s linear, y 0.1s linear, height 0.1s linear, cx 0.1s linear, cy 0.1s linear;
    will-change: cx, cy, y, height;
}

/* Definieer de animatie voor de bewegende orb rond het vierkant (16s totaal) */
@keyframes boxOrbit {
    0% {
        cx: 40px;
        cy: 136px;
    }

    25% {
        cx: 40px;
        cy: 16px;
    }

    50% {
        cx: 160px;
        cy: 16px;
    }

    75% {
        cx: 160px;
        cy: 136px;
    }

    100% {
        cx: 40px;
        cy: 136px;
    }
}

@keyframes boxFillAnim {
    0% {
        height: 0px;
        y: 131px;
    }

    25% {
        height: 120px;
        y: 16px;
    }

    50% {
        height: 120px;
        y: 16px;
    }

    75% {
        height: 0px;
        y: 131px;
    }

    100% {
        height: 0px;
        y: 131px;
    }
}

.orb-animated,
.box-fill-animated {
    fill: var(--accent, #7C5CFF);
    animation-duration: 16s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-play-state: paused;
}

.orb-animated {
    animation-name: boxOrbit;
    cx: 40px;
    cy: 136px;
}

.box-fill-animated {
    animation-name: boxFillAnim;
    opacity: 0.2;
    height: 0px;
    y: 131px;
}

    /* Zodra de oefening start, schakelt de play-state naar running */
    .orb-animated.is-running,
    .box-fill-animated.is-running {
        animation-play-state: running;
    }

    /* Als hij gepauzeerd is, blijft hij stilstaan op het punt waar hij was */
    .orb-animated.is-paused,
    .box-fill-animated.is-paused {
        animation-play-state: paused;
    }

.orb-animated:not(.is-running) {
    animation: none;
    cx: 40px;
    cy: 136px;
}

.box-fill-animated:not(.is-running) {
    animation: none;
    height: 0px;
    y: 131px;
}


/* FourEightSevenVisualization.razor.css */
.rx-rve-container {
    width: 100%;
    max-width: 450px;
    margin: 1.5rem auto;
    display: flex;
    justify-content: center;
    background: transparent !important;
    border: none !important;
}

.rx-rve-viewport {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: transparent;
}

.rx-rve-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

/* Horizontale lopende band (exact 19 seconden) */
.track-group {
    animation: scrollTrack 19s linear infinite;
    animation-play-state: paused;
}

    .track-group.is-running {
        animation-play-state: running;
    }

    .track-group.is-paused {
        animation-play-state: paused;
    }

@keyframes scrollTrack {
    0% {
        transform: translateX(0px);
    }

    100% {
        transform: translateX(-380px);
    }
    /* Schuift exact één volledige cyclus op */
}

.track-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

/* Orb wrapper */
.rx-rve-orb-wrapper {
    position: absolute;
    left: 21%; /* Zorgt dat hij exact op de startpositie van de piek in het viewport staat */
    top: 65%; /* Brengt hem exact naar de onderste lijn (Y=80) */
    transform: translate(-50%, -50%);
    animation: moveOrb 19s linear infinite;
    animation-play-state: paused;
    pointer-events: none;
    z-index: 2;
}

    .rx-rve-orb-wrapper.is-running {
        animation-play-state: running;
    }

    .rx-rve-orb-wrapper.is-paused {
        animation-play-state: paused;
    }

/* Tijd- en plaatskoppeling: 
   - 0% tot 21.05% (4s) -> Omhoog naar Y=20 (-30px)
   - 21.05% tot 57.89% (7s) -> Boven blijven op Y=20 (-30px)
   - 57.89% tot 100% (8s) -> Omlaag naar Y=80 (+30px)
*/
@keyframes moveOrb {
    0% {
        transform: translate(-50%, -50%) translateY(0px);
    }

    21.05% {
        transform: translate(-50%, -50%) translateY(-45px); /* Omhoog naar het plateau */
    }

    57.89% {
        transform: translate(-50%, -50%) translateY(-45px); /* Blijft op het plateau */
    }

    100% {
        transform: translate(-50%, -50%) translateY(0px); /* Terug naar onderen */
    }
}

.rx-rve-orb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}