/* =========================
   Page Background
   ========================= */

.page-bg {
    position: fixed;
    inset: 0;
    background-image: url("/static/images/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Fade & soften */
    opacity: 0.15;
    filter: blur(1.5px);

    z-index: -1;
}



/* =========================
   Tracker-Style Syringe
   ========================= */

.syringe-wrapper {
    margin: 24px 0;
}

.syringe {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 34px;
    border-radius: 20px;
    background: linear-gradient(#e6eef3, #cfd9df);
    border: 2px solid #9fb2bf;
    padding: 4px;
    overflow: visible;
    box-shadow:
        inset 0 2px 3px rgba(255,255,255,0.8),
        inset 0 -2px 3px rgba(0,0,0,0.08);
}

/* Inner glass tube */
.syringe-glass {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    box-shadow:
        inset 0 0 4px rgba(0,0,0,0.15);
}

/* Fill liquid */
.syringe-fill {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        rgba(79, 163, 255, 0.65),
        rgba(118, 192, 255, 0.65)
);
    border-radius: 12px 0 0 12px;
    transition: width 0.9s ease-in-out;
}

/* Subtle liquid depth highlight */
.syringe-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.35),
        rgba(255,255,255,0.05)
    );
    pointer-events: none;
}



/* Syringe container spacing */
.syringe-wrapper {
    position: relative;
    margin: 28px 0 36px 0;
    padding-bottom: 28px; /* space for tick marks */
}


/* Tick container */
.syringe-ticks {
    position: relative;   /*  key change */
    margin-top: 6px;
    height: 26px;
    pointer-events: none;
}





/* Tick marks */
.tick {
    position: absolute;
    top: 0;
    width: 2px;
    background: #5c6f7c;
}


.tick.major {
    height: 26px;
    opacity: 0.7;
}

.tick.minor {
    height: 14px;
    opacity: 0.4;
}

/* Numeric labels */
.tick-label {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 500;
    color: #5c6f7c;
    white-space: nowrap;
}

@keyframes targetPulse {
    0% {
        outline: 0 solid rgba(25, 118, 210, 0);
    }
    40% {
        outline: 2px solid rgba(25, 118, 210, 0.85);
    }
    100% {
        outline: 0 solid rgba(25, 118, 210, 0);
    }
}

.target-tick {
    animation: targetPulse 0.7s ease-out 1;
    outline-offset: 2px;
}


.target-tick::after {
    content: "";
    position: absolute;
    top: -6px;
    left: -4px;
    width: 10px;
    height: 18px;

    border-radius: 4px;
    background: rgba(25, 118, 210, 0.35);

    animation: pulseGlow 0.9s ease-out 1;
    pointer-events: none;
}

