/* Loading Screen Styles */

.LoadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(135deg, #1f3a93 0%, #2d5aa3 100%);
    z-index: 9999;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.LoadingScreen.LoadingScreen--loaded {
    opacity: 0;
    pointer-events: none;
}

.LoadingAnimation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.LoadingAnimation__spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
}

.LoadingAnimation--spinning .LoadingAnimation__spinner {
    animation: spinner 0.8s linear infinite;
}

.LoadingAnimation--loading {
    opacity: 1;
}

.LoadingAnimation--loaded {
    animation: fadeOut 0.5s ease-in-out forwards;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

/* Compass logo shrink animation */
.LoadingAnimation__compass-shrink {
    animation: compassShrink 0.4s ease-in-out forwards;
}

@keyframes compassShrink {
    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Complete loader shrink animation */
.LoadingAnimation__shrink {
    animation: shrink 0.4s ease-in-out forwards;
}

@keyframes shrink {
    to {
        transform: scale(0);
        opacity: 0;
    }
}

