.app-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.app-loader .loader-container {
    background: #e8e8e8;
    color: #999;
    font-size: 100%;
    line-height: 24px;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    border-radius: 12px;
}

.app-loader .loader-content {
    padding: 12px 16px;
}

.app-loader .heart-rate {
    width: 150px;
    height: 73px;
    position: relative;
    margin: 0 auto;
}

.app-loader .heart-rate .fade-in {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #e8e8e8;
    top: 0;
    right: 0;
    animation: heartRateIn 2.5s linear infinite;
}

.app-loader .heart-rate .fade-out {
    position: absolute;
    width: 120%;
    height: 100%;
    background-color: #e8e8e8;
    top: 0;
    right: -120%;
    animation: heartRateOut 2.5s linear infinite;
}

@keyframes heartRateIn {
    0% {
        width: 100%;
    }
    50% {
        width: 0;
    }
    100% {
        width: 0;
    }
}

@keyframes heartRateOut {
    0% {
        left: -120%;
    }
    30% {
        left: -120%;
    }
    100% {
        left: 0;
    }
}
