﻿/* FULL PAGE RESET */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* PRELOADER OVERLAY */
.preloader-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    /* ✅ Ultra-smooth multi-color gradient */
    background: linear-gradient( -45deg, #1e3c72, #2a5298, #16a085, #0f2027, #2c5364, #1a2980 );
    background-size: 600% 600%;
    animation: gradientFlow 18s ease-in-out infinite;
    color: #ffffff;
    z-index: 99999;
}

/* ✅ Super-smooth animated gradient */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    20% {
        background-position: 50% 100%;
    }

    40% {
        background-position: 100% 50%;
    }

    60% {
        background-position: 50% 0%;
    }

    80% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* DUMBBELL ANIMATION */
.dumbbell-wrapper {
    position: relative;
    width: 200px;
    height: 80px;
    margin-bottom: 40px;
}

/* ✅ Smooth glowing neon dumbbell */
.dumbbell {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: lift 1.8s ease-in-out infinite, glowPulse 3.5s ease-in-out infinite;
    color: #37ffda;
    filter: drop-shadow(0 0 10px #37ffda);
}

/* ✅ Neon glow – smooth & soft */
@keyframes glowPulse {
    0% {
        filter: drop-shadow(0 0 6px #37ffda) brightness(1);
    }

    50% {
        filter: drop-shadow(0 0 20px #37ffda) brightness(1.3);
    }

    100% {
        filter: drop-shadow(0 0 6px #37ffda) brightness(1);
    }
}

/* ✅ Dumbbell lift animation */
@keyframes lift {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-18px) rotate(-4deg);
    }

    75% {
        transform: translateY(-18px) rotate(4deg);
    }
}

/* SVG COLORS */
.weight-plate,
.bar {
    fill: currentColor;
}

/* TITLE */
.app-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 4px;
    text-align: center;
    /* ✅ Soft glow text */
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
    animation: titlePulse 2.5s ease-in-out infinite;
}

/* ✅ Smooth pulse animation */
@keyframes titlePulse {
    0%, 100% {
        opacity: 0.85;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* LOADING TEXT */
.loading-text {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
}

/* ✅ Smooth loading dots */
.loading-dots::after {
    content: "...";
    display: inline-block;
    overflow: hidden;
    width: 0;
    animation: dots 1.5s linear infinite;
}

@keyframes dots {
    0% {
        width: 0;
    }

    100% {
        width: 30px;
    }
}

/* ✅ Smooth fade-out when Blazor loads */
.preloader-hide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
