/* Page Loader Styles */
#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#pageLoader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Loader Logo Container - Plain logo without card */
.loader-logo-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Loader Logo - Plain logo without card effects */
.loader-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Dots Loading Animation */
.loader-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.loader-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #1e3a5f;
    animation: dot-bounce 1.4s ease-in-out infinite both;
}

.loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes dot-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Alternative: Wave Animation for Dots */
.loader-dots-wave .loader-dot {
    animation: dot-wave 1.2s ease-in-out infinite;
}

.loader-dots-wave .loader-dot:nth-child(1) {
    animation-delay: 0s;
}

.loader-dots-wave .loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots-wave .loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-wave {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-20px);
        opacity: 1;
    }
}

/* Hide main content initially */
body.loading #mainContent {
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

body.loaded #mainContent {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in;
}

/* Responsive Design */
@media (max-width: 768px) {
    .loader-logo-container {
        width: 150px;
        height: 150px;
    }
    
    .loader-dots {
        gap: 10px;
        margin-top: 25px;
    }
    
    .loader-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .loader-logo-container {
        width: 120px;
        height: 120px;
    }
    
    .loader-dots {
        gap: 8px;
        margin-top: 20px;
    }
    
    .loader-dot {
        width: 8px;
        height: 8px;
    }
}
