: rotation 1s linear infinite;
        position: fixed; /* Keep it centered even if content loads */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* Center precisely */
        z-index: 9999; /* Ensure it's on top */
      }

      @keyframes rotation {
        0% {
          transform: translate(-50%, -50%) rotate(0deg);
        }
        100% {
          transform: translate(-50%, -50%) rotate(360deg);
        }
      }

      /* Hide spinner when React app is loaded and 