/* ============================================
   INFOTATTVA PAGE LOADER
   Premium, minimal, professional loader
   ============================================ */

/* ----- Override / neutralize old preloader styles from style.css ----- */
#preloader,
.tranzi-loader-inner,
.tranzi-loader-wrap,
.tranzi-loader,
.tranzi-loader-item {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ----- Full-screen overlay ----- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    pointer-events: none;
}

/* ----- Centered content group ----- */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ----- Logo ----- */
.loader-logo {
    max-width: 350px;
    width: 80%;
    height: auto;
    margin-bottom: 48px;
    animation: loaderFadeIn 0.7s ease forwards;
}

@keyframes loaderFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ----- Progress bar track ----- */
.loader-progress {
    width: 380px;
    max-width: 80%;
    height: 8px;
    background-color: #e8eef6;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 28px;
    animation: loaderFadeIn 0.7s 0.15s ease both;
}

/* ----- Progress bar fill ----- */
.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* ----- Loading text ----- */
.loader-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #1e293b;
    letter-spacing: 4px;
    animation: loaderFadeIn 0.7s 0.3s ease both;
}

.loading-dots {
    display: inline-block;
    min-width: 24px;
    text-align: left;
}

/* ----- Responsive ----- */
@media (max-width: 767.98px) {
    .loader-logo {
        max-width: 260px;
        width: 75%;
        margin-bottom: 36px;
    }

    .loader-progress {
        width: 260px;
        max-width: 75%;
        height: 7px;
        margin-bottom: 22px;
    }

    .loader-text {
        font-size: 19px;
        letter-spacing: 3px;
    }
}

@media (max-width: 480px) {
    .loader-logo {
        max-width: 220px;
        margin-bottom: 30px;
    }

    .loader-progress {
        width: 220px;
    }

    .loader-text {
        font-size: 17px;
        letter-spacing: 2.5px;
    }
}
