﻿/*#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease; 
} 

.loader-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.house-background,
.house-foreground {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

    .house-background svg {
        stroke: #ccc;
        width: 100%;
        height: 100%;
    }

    .house-foreground svg {
        stroke: #4caf50;
        width: 100%;
        height: 100%;
        clip-path: inset(100% 0 0 0);
        animation: reveal 2s ease forwards;
    }

@keyframes reveal {
    to {
        clip-path: inset(0 0 0 0);
    }
}

.loading-text {
    margin-top: 20px;
    font-family: inherit;
    font-size: 1.2rem;
    color: #333;
    position: absolute;
    bottom: -40px;
    width: 100%;
    text-align: center;
}

#main-content {
    display: none;
    padding: 40px;
    font-family: sans-serif;
}

body.loaded #main-content {
    display: block;
}
*/

/* Default hidden overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease; 
}

    #loadingOverlay.fade {
        opacity: 0;
        pointer-events: none;
    }

body.blur-active {
    overflow: hidden;
}

    body.blur-active #loadingOverlay {
        display: flex;
        opacity: 1;
        pointer-events: all;
    }

body > *:not(#loadingOverlay) {
    transition: filter 0.3s ease;
}

body.blur-active > *:not(#loadingOverlay) {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Simple loading badge */
.loading-badge {
    background: linear-gradient(125deg, #4caf51, #388e3c); /* soft green gradient */
    border-radius: 50%;
    border-color : white;
    padding: 0.75rem;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .30);
}

    /* Simple spinner animation */
    .loading-badge svg path {
        stroke: #fff;
        stroke-dasharray: 60;
        stroke-dashoffset: 60;
        animation: draw 3s ease-in-out infinite;
        fill: none; 
    }

@keyframes draw {
    0% {
        stroke-dashoffset: 60;
    }

    50% {
        stroke-dashoffset: 30;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* Loading text */
.loading-text {
    margin-top: 0.75rem;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); 
}
