/* ===== Premium Quality Loading Splash Screen ===== */
.app-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    /* Clean, premium white background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    /* Very smooth fade out when loaded */
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.app-splash.loaded {
    opacity: 0;
    transform: scale(1.03);
    visibility: hidden;
    pointer-events: none;
}

/* Logo container — smooth entrance */
.splash-logo-card {
    position: relative;
    padding: 20px;
    animation: premium-logo-reveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
}

.splash-logo {
    width: 240px;
    height: auto;
    /* Original logo colors with a luxurious soft shadow */
    filter: drop-shadow(0 15px 35px rgba(10, 135, 84, 0.15));
    animation: premium-logo-float 4s ease-in-out infinite;
}

/* Elegant Text Styling */
.splash-text {
    color: #064e32;
    /* Deep elegant green */
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    margin-top: 15px;
    letter-spacing: 2px;
    opacity: 0;
    animation: premium-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.splash-subtitle {
    color: #6b7280;
    /* Elegant subtle gray */
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0;
    animation: premium-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

/* Premium smooth loading bar */
.splash-progress {
    width: 180px;
    height: 4px;
    background: #f3f4f6;
    /* Soft light gray track */
    border-radius: 20px;
    margin-top: 45px;
    overflow: hidden;
    opacity: 0;
    animation: premium-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Subtle inner depth */
}

.splash-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    /* Luxurious modern green gradient */
    background: linear-gradient(90deg, #0a8754, #1ed18b, #0a8754);
    background-size: 200% 100%;
    border-radius: 20px;
    animation:
        premium-progress-fill 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards,
        premium-progress-shimmer 2s linear infinite;
}

/* Keyframes for smooth animations */
@keyframes premium-logo-reveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes premium-logo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes premium-fade-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes premium-progress-fill {
    0% {
        width: 0%;
    }

    40% {
        width: 40%;
    }

    70% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

@keyframes premium-progress-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}