#loader-wrapper {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
  }

  #loader-wrapper.fade-out {
    opacity: 0;
    pointer-events: none;
  }

  .loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .box-loader {
    width: 64px;
    height: 64px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    animation: rotateBox 1.5s infinite linear;
  }

  .box-loader div {
    width: 28px;
    height: 28px;
    background-color: #007bff;
    border-radius: 6px;
    animation: blink 1s infinite alternate;
  }

  .box-loader div:nth-child(2) { animation-delay: 0.2s; }
  .box-loader div:nth-child(3) { animation-delay: 0.4s; }
  .box-loader div:nth-child(4) { animation-delay: 0.6s; }

  .loader-logo {
    margin-top: 20px;
    height: 36px; /* Same as h-9 (Tailwind's h-9 = 36px) */
    display: block;
  }

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

  @keyframes blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
  }