/* Loader Wrapper */
.loader-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.loader-wrapper.active {
    visibility: visible;
    opacity: 1;
}

/* Bouncing Blocks Loader */
.loader {
    display: flex;
    gap: 5px;
}

.loader div {
    width: 15px;
    height: 15px;
    background: #228B22;
    animation: bounce 1.5s infinite ease-in-out;
}

.loader div:nth-child(1) { animation-delay: 0s; }
.loader div:nth-child(2) { animation-delay: 0.2s; }
.loader div:nth-child(3) { animation-delay: 0.4s; }
.loader div:nth-child(4) { animation-delay: 0.6s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}