.loader-container{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); /* Example: semi-transparent black background */
    /* background-color:rgba(255, 255, 255, 0.5); */
    z-index:99 !important;; /* Ensure it's above other elements */
}

.loader-spin {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s infinite linear;


}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform:rotate(360deg); }
}
.loading-dots {
    margin: 20% auto 0;
    transform: translateZ(0);
  }

  .loading-dots:before,
  .loading-dots:after {
    content: '';
    position: absolute;
    top: 0;
  }

  .loading-dots:before,
  .loading-dots:after,
  .loading-dots {
    border-radius: 50%;
    width: 2em;
    height: 2em;
    animation: animation 1.2s infinite ease-in-out;
  }

  .loading-dots {
    animation-delay: -0.16s;
  }

  .loading-dots:before {
    left: -3.5em;
    animation-delay: -0.32s;
  }

  .loading-dots:after {
    left: 3.5em;
  }

  @keyframes animation {
    0%,
    80%,
    100% {
      box-shadow: 0 2em 0 -1em var(--bs-primary);
    }
    40% {
      box-shadow: 0 2em 0 0 var(--bs-primary);
    }
  }

/* .loading-dots {
    position: relative;
    width: 80px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    }

    .loading-dots span {
        position: absolute;
        display: block;
        width: 10px;
        height: 10px;
        background-color: #3498db;
        border-radius: 50%;
        opacity: 0;
    }

    .loading-dots span:nth-child(1) {
    animation: bounce 1s infinite ease-in-out;
    }

    .loading-dots span:nth-child(2) {
    animation: bounce 1s infinite ease-in-out 0.2s;
    }

    .loading-dots span:nth-child(3) {
    animation: bounce 1s infinite ease-in-out 0.4s;
    }

    @keyframes bounce {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
    } */
