
.lds-grid,
.lds-grid div {
  box-sizing: border-box;
}
.lds-grid {
  display: inline-block;
  position: relative;
  width: 28px;
  height: 28px;
}
.lds-grid div {
  position: absolute;
  width: 5.6px; /* Scaled down proportionally from 16px */
  height: 5.6px; /* Scaled down proportionally from 16px */
  border-radius: 50%;
  background: currentColor;
  animation: lds-grid 1.2s linear infinite;
}
.lds-grid div:nth-child(1) {
  top: 2.8px; /* Scaled down proportionally from 8px */
  left: 2.8px; /* Scaled down proportionally from 8px */
  animation-delay: 0s;
}
.lds-grid div:nth-child(2) {
  top: 2.8px; /* Scaled down proportionally from 8px */
  left: 11.2px; /* Scaled down proportionally from 32px */
  animation-delay: -0.4s;
}
.lds-grid div:nth-child(3) {
  top: 2.8px; /* Scaled down proportionally from 8px */
  left: 19.6px; /* Scaled down proportionally from 56px */
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(4) {
  top: 11.2px; /* Scaled down proportionally from 32px */
  left: 2.8px; /* Scaled down proportionally from 8px */
  animation-delay: -0.4s;
}
.lds-grid div:nth-child(5) {
  top: 11.2px; /* Scaled down proportionally from 32px */
  left: 11.2px; /* Scaled down proportionally from 32px */
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(6) {
  top: 11.2px; /* Scaled down proportionally from 32px */
  left: 19.6px; /* Scaled down proportionally from 56px */
  animation-delay: -1.2s;
}
.lds-grid div:nth-child(7) {
  top: 19.6px; /* Scaled down proportionally from 56px */
  left: 2.8px; /* Scaled down proportionally from 8px */
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(8) {
  top: 19.6px; /* Scaled down proportionally from 56px */
  left: 11.2px; /* Scaled down proportionally from 32px */
  animation-delay: -1.2s;
}
.lds-grid div:nth-child(9) {
  top: 19.6px; /* Scaled down proportionally from 56px */
  left: 19.6px; /* Scaled down proportionally from 56px */
  animation-delay: -1.6s;
}
@keyframes lds-grid {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

body.dark-mode .lds-grid div {
  background: #ffffff; /* Inverted color for dark mode */
}
