.pull-refresh {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  width: 100%;
  pointer-events: none;

  /* Initial Hidden State */
  transform: translateY(-100px) scale(0.5);
  opacity: 0;
  will-change: transform, opacity;
}

/* White Circular Container Box */
.ptr-card {
  width: 48px;
  height: 48px;
  background-color: var(--atf-semi-trans);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinner Animations Only Active When Refreshing */
.pull-refresh.refreshing svg {
  animation: rotate4 2s linear infinite;
}

.pull-refresh.refreshing circle {
  animation: dash4 1.5s ease-in-out infinite;
}

/* Default SVG properties */
.pull-refresh svg {
  width: 28px;
  height: 28px;
  transform-origin: center;
  transition: transform 0.1s linear;
}

.pull-refresh circle {
  fill: none;
  stroke: var(--atf-accent);
  stroke-width: 3.5; /* Slightly bold for contrast on white bg */
  stroke-dasharray: 90, 200;
  stroke-dashoffset: 0;
  stroke-linecap: round;
}

@keyframes rotate4 {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash4 {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 90, 200;
    stroke-dashoffset: -35px;
  }

  100% {
    stroke-dashoffset: -125px;
  }
}
