/* =========================================================
   GENE BEAN RAIL ENTRY
========================================================= */

:root {
  --genebean-blue: #4FA3D1;
  --genebean-blue-bright: #8ad8ff;
  --genebean-blue-soft: rgba(79, 163, 209, 0.28);
  --genebean-blue-mid: rgba(79, 163, 209, 0.44);
  --genebean-bg: rgba(9, 22, 38, 0.74);
}

/* ---------------------------------------------------------
   Rail button
--------------------------------------------------------- */

.zom-app-rail__item--genebean {
  margin-bottom: 18px;

  background:
    radial-gradient(circle at 50% 34%, rgba(79, 163, 209, 0.18), transparent 68%),
    rgba(7, 18, 33, 0.72);

  border: 1px solid rgba(79, 163, 209, 0.22);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.zom-app-rail__item--genebean:hover,
.zom-app-rail__item--genebean.is-open,
.zom-app-rail__item--genebean.is-active {
  color: #ffffff;

  background:
    radial-gradient(circle at 50% 32%, rgba(79, 163, 209, 0.36), transparent 72%),
    linear-gradient(180deg, rgba(20, 58, 86, 0.68), rgba(8, 26, 44, 0.64));

  border-color: rgba(79, 163, 209, 0.46);

  box-shadow:
    0 0 0 1px rgba(79, 163, 209, 0.16),
    0 12px 28px rgba(79, 163, 209, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.zom-app-rail__item--genebean.is-active::before,
.zom-app-rail__item--genebean.is-open::before {
  background:
    linear-gradient(180deg, var(--genebean-blue-bright), var(--genebean-blue));

  box-shadow:
    0 0 14px rgba(79, 163, 209, 0.82),
    0 0 24px rgba(79, 163, 209, 0.38);
}

/* ---------------------------------------------------------
   Rail logo
--------------------------------------------------------- */

.zom-app-rail__genebean-logo {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  color: var(--genebean-blue);

  filter:
    drop-shadow(0 0 7px rgba(79, 163, 209, 0.34))
    drop-shadow(0 0 14px rgba(79, 163, 209, 0.18));
}

.zom-app-rail__genebean-logo .genebean-logo {
  width: 32px;
  height: 32px;
  overflow: visible;
}

.zom-app-rail__genebean-logo .genebean-rotor {
  transform-origin: 100px 100px;
  animation: genebeanRailRotate 24s linear infinite;
}

.zom-app-rail__genebean-logo .genebean-node {
  animation: genebeanNodePulse 3.2s ease-in-out infinite;
  transform-origin: center;
}

/* =========================================================
   GENE BEAN DRAWER PANEL
========================================================= */

.zom-app-menu-group--genebean {
  gap: 12px;
}

/* ---------------------------------------------------------
   Nested GeneBean panel views
   View 1 = GeneBean hub
   View 2 = MARSS module sequence
--------------------------------------------------------- */

.zom-gb-panel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.zom-gb-view {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.zom-gb-view.is-active {
  display: flex;
  animation: zomGbPanelSlideIn 180ms ease forwards;
}

@keyframes zomGbPanelSlideIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------------------------------------------------------
   GeneBean hub header
--------------------------------------------------------- */
.zom-genebean-panel-head, .zom-gb-pipeline-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    /* border: 1px solid rgba(79, 163, 209, 0.18); */
    border-radius: 22px;
    /* background: radial-gradient(circle at 12% 0%, rgba(79, 163, 209, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)); */
}

.zom-genebean-panel-logo {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  border-radius: 20px;

  background:
    radial-gradient(circle at 50% 35%, rgba(79, 163, 209, 0.24), transparent 70%),
    rgba(4, 14, 26, 0.82);

  box-shadow:
    inset 0 0 0 1px rgba(79, 163, 209, 0.14),
    0 12px 26px rgba(0, 0, 0, 0.24);
}

.zom-genebean-panel-logo .genebean-logo {
  width: 44px;
  height: 44px;
  overflow: visible;
}

.zom-genebean-panel-logo .genebean-rotor {
  transform-origin: 100px 100px;
  animation: genebeanRailRotate 28s linear infinite;
}

.zom-genebean-panel-logo .genebean-node {
  animation: genebeanNodePulse 3.2s ease-in-out infinite;
  transform-origin: center;
}

.zom-genebean-panel-title {
  margin: 0;

  font-size: 17px;
  line-height: 1.16;
  font-weight: 800;

  color: rgba(235, 250, 255, 0.98);
}

.zom-genebean-panel-subtitle {
  margin: 6px 0 0;

  font-size: 12px;
  line-height: 1.4;

  color: rgba(184, 221, 240, 0.72);
}

.zom-app-menu-drawer__kicker--genebean {
  color: rgba(138, 216, 255, 0.86);
}

/* ---------------------------------------------------------
   Pipeline card and links
--------------------------------------------------------- */

.zom-app-menu-link--genebean {
  border-color: rgba(79, 163, 209, 0.18);

  background:
    radial-gradient(circle at 14% 0%, rgba(79, 163, 209, 0.14), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
}

.zom-app-menu-link--genebean:hover {
  border-color: rgba(79, 163, 209, 0.34);

  background:
    radial-gradient(circle at 14% 0%, rgba(79, 163, 209, 0.22), transparent 70%),
    rgba(79, 163, 209, 0.08);
}

.zom-gb-pipeline-card {
  cursor: pointer;
}

.zom-gb-pipeline-icon,
.zom-app-menu-link__icon--genebean {
  color: var(--genebean-blue);

  background:
    radial-gradient(circle at 50% 35%, rgba(79, 163, 209, 0.18), transparent 68%),
    rgba(4, 14, 26, 0.82);
}

.zom-gb-pipeline-icon i {
  font-size: 17px;
}

/* ---------------------------------------------------------
   MARSS pipeline header
   Pipeline logo is intentionally minimal/static.
--------------------------------------------------------- */

/* .zom-gb-pipeline-head {
  border-color: rgba(79, 163, 209, 0.2);

  background:
    radial-gradient(circle at 16% 0%, rgba(79, 163, 209, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
} */

.zom-gb-pipeline-logo {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  border-radius: 20px;

  color: var(--genebean-blue-bright);
  font-size: 23px;

  background:
    radial-gradient(circle at 50% 35%, rgba(79, 163, 209, 0.22), transparent 70%),
    rgba(4, 14, 26, 0.82);

  box-shadow:
    inset 0 0 0 1px rgba(79, 163, 209, 0.14),
    0 12px 26px rgba(0, 0, 0, 0.24);
}

/* ---------------------------------------------------------
   MARSS module list
--------------------------------------------------------- */

.zom-gb-module-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zom-gb-module-list .zom-app-menu-link__icon {
  color: var(--genebean-blue);

  background:
    radial-gradient(circle at 50% 35%, rgba(79, 163, 209, 0.12), transparent 68%),
    rgba(4, 14, 26, 0.78);
}

.zom-gb-module-list .zom-app-menu-link.is-disabled,
.zom-gb-module-list .zom-app-menu-link:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.zom-gb-module-list .zom-app-menu-link.is-disabled:hover,
.zom-gb-module-list .zom-app-menu-link:disabled:hover {
  transform: none;
  box-shadow: none;

  background:
    radial-gradient(circle at 14% 0%, rgba(79, 163, 209, 0.08), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.014));

  border-color: rgba(79, 163, 209, 0.13);
}

/* ---------------------------------------------------------
   Back control
--------------------------------------------------------- */

.zom-gb-back {
  width: max-content;
  max-width: 100%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 13px;

  border: 1px solid rgba(79, 163, 209, 0.22);
  border-radius: 999px;

  background:
    radial-gradient(circle at 14% 0%, rgba(79, 163, 209, 0.14), transparent 64%),
    rgba(79, 163, 209, 0.08);

  color: rgba(218, 244, 255, 0.88);

  font: inherit;
  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.zom-gb-back:hover {
  color: #ffffff;

  background:
    radial-gradient(circle at 14% 0%, rgba(79, 163, 209, 0.22), transparent 70%),
    rgba(79, 163, 209, 0.14);

  border-color: rgba(79, 163, 209, 0.36);

  transform: translateY(-1px);

  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.18);
}

/* ---------------------------------------------------------
   Legacy GeneBean logo inside drawer link icons
   Kept for safety if reused elsewhere.
--------------------------------------------------------- */

.zom-app-menu-link__icon--genebean .genebean-logo {
  width: 30px;
  height: 30px;
  overflow: visible;
}

.zom-app-menu-link__icon--genebean .genebean-rotor {
  transform-origin: 100px 100px;
  animation: genebeanRailRotate 26s linear infinite;
}

.zom-app-menu-link__icon--genebean .genebean-node {
  animation: genebeanNodePulse 3.2s ease-in-out infinite;
  transform-origin: center;
}

/* =========================================================
   GENE BEAN ANIMATIONS
========================================================= */

@keyframes genebeanRailRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes genebeanNodePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.88;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  .zom-app-rail__item--genebean {
    margin-bottom: 0;
  }

  .zom-app-rail__genebean-logo,
  .zom-app-rail__genebean-logo .genebean-logo {
    width: 28px;
    height: 28px;
  }

  .zom-genebean-panel-head,
  .zom-gb-pipeline-head {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .zom-genebean-panel-logo,
  .zom-gb-pipeline-logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .zom-genebean-panel-logo .genebean-logo {
    width: 40px;
    height: 40px;
  }

  .zom-genebean-panel-title {
    font-size: 16px;
  }

  .zom-genebean-panel-subtitle {
    font-size: 11.5px;
  }
}