.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.dark-mode .loading-spinner {
    background: #000000 !important;
}

.loading-spinner.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.logo-loader {
    width: 200px;
    height: 200px;
    position: relative;
}

.logo-outline {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 0;
}

.logo-filled {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    clip-path: inset(100% 0 0 0);
    animation: fillFromBottom 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(10, 146, 215, 0.6));
}

body.dark-mode .logo-outline {
    content: url('../images/logo white outline.png');
}

body.dark-mode .logo-filled {
    content: url('../images/logo white outline.png');
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3)) brightness(1);
}

@keyframes fillFromBottom {
    0% {
        clip-path: inset(100% 0 0 0);
    }
    50% {
        clip-path: inset(0 0 0 0);
    }
    100% {
        clip-path: inset(100% 0 0 0);
    }
}