/* Add this CSS code in your stylesheet */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px; /* Adjust height as needed */
    color: white; /* Text color */
    font-weight: bold; /* Thicker text */
    background-color: #f0f0f0; /* Default background color while loading */
    border-radius: 20px; /* Round edges */
}

.loading-spinner.online {
    background: linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082); /* Rainbow background from left to right */
    background-size: 200% auto; /* Increase the background size */
    animation: rainbowAnimation 3s linear infinite; /* Adjust animation duration */
}

.loading-spinner.offline {
    background-color: rgba(255, 0, 0, 0.2); /* Light red background color */
    text-shadow: 0 0 10px #ff6666; /* Red glow effect */
    animation: redGlow 1s ease-in-out infinite alternate; /* Red glow animation */
}

@keyframes rainbowAnimation {
    0% { background-position: 0 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes redGlow {
    0% { text-shadow: 0 0 10px #ff6666; }
    100% { text-shadow: 0 0 20px #ff6666; }
}

.loading-spinner .spinner-border {
    width: 2rem;
    height: 2rem;
    color: white; /* Spinner color */
}
