﻿.pk4dev-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

    .pk4dev-loader.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.loader-content {
    text-align: center;
    max-width: 400px;
    padding: 20px;
}

.loader-logo {
    margin-bottom: 30px;
}

    .loader-logo img {
        height: 60px;
        opacity: 0.9;
    }

/* Progress Bar */
.loader-progress {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin: 20px 0;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1d90c9, #0056b3);
    border-radius: 2px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animated Dots */
.loader-dots {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    justify-content: center;
}

.loader-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1d90c9;
    opacity: 0.3;
    animation: pulse 1.4s infinite ease-in-out;
}

    .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 pulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Status Messages */
.loader-status {
    font-size: 14px;
    color: #6c757d;
    margin-top: 20px;
    min-height: 20px;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loader-percentage {
    font-size: 12px;
    color: #adb5bd;
    margin-top: 8px;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hide content until loaded */
body:not(.loaded) #app {
    opacity: 0;
    visibility: hidden;
}

#app {
    min-height: 100vh;
    opacity: 1;
}
