﻿


/* --- Parent Container for Logo and Loading Bar --- */
.app-loading-indicator {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensures it takes full viewport height */
    background-color: #f0f2f5; /* Light gray background */
    padding: 20px;
    box-sizing: border-box;
    width: 100%; /* Ensure it spans full width */
    /* You can add styles here to control the visibility of the whole block, e.g.: */
    /* opacity: 0; */
    /* transition: opacity 0.5s ease-in-out; */
    /* For hiding: display: none; */
}

/* --- Logo Styles --- */
.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px; /* Overall logo container size */
    height: 120px;
    background-color: #ffffff; /* White background for the logo area */
    border-radius: 8px; /* More rounded corners */
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    overflow: hidden;
    position: relative;
    margin-bottom: 60px; /* Space between logo and loading bar */
}

    .logo-wrapper img {
        max-width: 100%; /* Ensure image fits within its container */
        max-height: 100%;
        display: block; /* Remove extra space below image */
        border-radius: 8px; /* Apply rounded corners to the image itself */
        object-fit: contain; /* Ensures the entire image is visible, scaling down if necessary */
    }

/* --- Indeterminate Loading Bar Styles --- */
.loading-bar-container {
    width: 80%; /* Responsive width */
    max-width: 400px; /* Max width for larger screens */
    height: 8px; /* Made thinner */
    background-color: #e0e0e0; /* Lighter gray track */
    border-radius: 7px; /* Adjusted for thinner bar */
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); /* Inner shadow for depth */
}

.loading-bar-fill {
    height: 100%;
    width: 30%; /* Fixed width for the moving segment */
    background: linear-gradient(90deg, #4169E1 0%, #0000CD 100%); /* Royal blue gradient */
    border-radius: 4px; /* Adjusted for thinner bar */
    position: absolute; /* Position absolutely within the container */
    left: -30%; /* Start off-screen to the left */
    animation: indeterminateSlide 2s linear infinite; /* Animation for sliding */
}

@keyframes indeterminateSlide {
    0% {
        left: -30%; /* Start off-screen left */
    }

    100% {
        left: 100%; /* Move completely off-screen right */
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .logo-wrapper {
        width: 100px;
        height: 100px;
    }

        .logo-wrapper img {
            border-radius: 10px; /* Adjust for smaller size */
        }

    .loading-bar-container {
        width: 95%;
    }
}


