.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: #0000001a;
    top:0;
    left:0;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter:blur(5px);
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.loader h2 {
    font-weight: normal;
}

.loader p {
    color: grey;
}

.loader-svg {
    width: 150px;
    transform-origin: center;
    animation: rotate 2s linear infinite;
    margin-bottom: 24px;
}

.loader-svg circle {
    fill: none;
    stroke: var(--boardPrimary);
    stroke-width: 1;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

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

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

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

/*Loading screen*/
.loading-screen-loader {
    position: relative;
}

.loading-screen-loader .loader-svg {
    margin-bottom: 0px!important;
}

.loading-screen-loader > img {
    position: absolute;
    top: calc(50% + -1px);
    left: calc(50% + 1.5px);
    opacity: 0.2;
    width: 60px;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
      opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(0.9);
      opacity: 0.2;
    }
  }


  /*---------- CSS FOR MINI LOADER -----------*/

  .mini-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease;
  border-radius: var(--borderRadius);
  opacity: 1;
}
.mini-loader.hidden {
  opacity: 0;
  pointer-events: none; /* Prevents interaction when hidden */
}

@supports not (backdrop-filter: blur(4px)) {
  .mini-loader {
    background: rgba(255, 255, 255, 0.3);
  }
}

/********** Loader Circle **********/
.slider-content .loader {
    margin-top: 40px;
}

.spinner {
  width: 20px;
    height: 20px;
    border: 2px solid color-mix(in srgb, var(--boardPrimary) 22%, transparent);
    border-top-color: var(--boardPrimary);
    border-radius: 50%;
    box-sizing: border-box;
    animation: spin 0.8s linear infinite;
    flex: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}