body.page-loading {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

:root {
    --splash-bg: #F9F9F9;
    --splash-text: #5E6278;
}

.splash-screen {
    display: none;
}

.page-loading .splash-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: Inter, Helvetica, sans-serif;
    background-color: var(--splash-bg);
    color: var(--splash-text);
    line-height: 1.2;
    font-size: 14px;
    font-weight: 400;
    opacity: 1;
    transition: opacity 300ms ease;
}

.page-loading.page-loading--ending .splash-screen {
    opacity: 0;
    pointer-events: none;
}

.page-loading .splash-screen span {
    color: var(--splash-text);
    -webkit-font-smoothing: antialiased;
}

.page-loading .splash-screen img {
    margin-bottom: 30px;
    height: 30px !important;
}

html[data-bs-theme="dark"] {
    --splash-bg: #151521;
    --splash-text: #ffffff;
}

.splash-screen .dark-logo {
    display: none;
}

.splash-screen .light-logo {
    display: block;
}

html[data-bs-theme="dark"] .splash-screen .light-logo {
    display: none;
}

html[data-bs-theme="dark"] .splash-screen .dark-logo {
    display: block;
}

.page-loading .spinner {
    margin: 100px auto;
    width: 40px;
    height: 40px;
    position: relative;
    text-align: center;
    
    -webkit-animation: sk-rotate 2.0s infinite linear;
    animation: sk-rotate 2.0s infinite linear;
}
  
.page-loading .spinner .dot1, .page-loading .spinner .dot2 {
    width: 60%;
    height: 60%;
    display: inline-block;
    position: absolute;
    top: 0;
    background-color: #3E62F0;
    border-radius: 100%;
    
    -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
    animation: sk-bounce 2.0s infinite ease-in-out;
  }
  
  .page-loading .spinner .dot2 {
    top: auto;
    bottom: 0;
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
  }
  
  @-webkit-keyframes sk-rotate { 100% { -webkit-transform: rotate(360deg) }}
  @keyframes sk-rotate { 100% { transform: rotate(360deg); -webkit-transform: rotate(360deg) }}
  
  @-webkit-keyframes sk-bounce {
    0%, 100% { -webkit-transform: scale(0.0) }
    50% { -webkit-transform: scale(1.0) }
  }
  
  @keyframes sk-bounce {
    0%, 100% { 
      transform: scale(0.0);
      -webkit-transform: scale(0.0);
    } 50% { 
      transform: scale(1.0);
      -webkit-transform: scale(1.0);
    }
  }