.page-progress-container {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: min(50%, 360px);
    max-width: 360px;
    height: 28px;
    background: rgba(120, 120, 128, 0.18);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: visible;
    z-index: 9999;
    opacity: 0;
    transition: 
        opacity 0.4s ease,
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.page-progress-container.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.page-progress-container.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
}

.dark-mode .page-progress-container {
    background: rgba(80, 80, 90, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.25);
}

.page-progress-container:hover {
    height: 32px;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        0 8px 32px rgba(74, 132, 232, 0.15);
}

.page-progress-bar {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: 0%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    border-radius: 10px;
    transition: width 0.15s ease-out;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.page-progress-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0) 100%);
    border-radius: 10px 10px 0 0;
    pointer-events: none;
}

.page-progress-bar::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 
        0 0 6px rgba(255, 255, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode .page-progress-bar {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.page-progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(0, 0, 0, 0.6);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 2;
}

.dark-mode .page-progress-percentage {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.page-progress-container:hover .page-progress-percentage {
    opacity: 1;
}

.page-progress-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.page-progress-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    opacity: 0;
    animation: glass-particle-float 4s infinite ease-in-out;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.dark-mode .page-progress-particle {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.page-progress-particle:nth-child(1) { top: 30%; left: 15%; animation-delay: 0s; }
.page-progress-particle:nth-child(2) { top: 60%; left: 45%; animation-delay: 0.8s; }
.page-progress-particle:nth-child(3) { top: 35%; left: 75%; animation-delay: 1.6s; }
.page-progress-particle:nth-child(4) { top: 70%; left: 25%; animation-delay: 2.4s; }
.page-progress-particle:nth-child(5) { top: 45%; left: 88%; animation-delay: 3.2s; }

@keyframes glass-particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
        transform: translateY(10px) translateX(4px) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(18px) translateX(8px) scale(1.1);
    }
    80% {
        opacity: 0.4;
        transform: translateY(10px) translateX(4px) scale(1);
    }
}

@media (max-width: 768px) {
    .page-progress-container {
        bottom: 12px;
        width: min(60%, 280px);
        max-width: 280px;
        height: 24px;
        border-radius: 12px;
    }
    
    .page-progress-container:hover {
        height: 26px;
    }
    
    .page-progress-bar {
        top: 3px;
        left: 3px;
        height: calc(100% - 6px);
        border-radius: 9px;
    }
    
    .page-progress-percentage {
        font-size: 10px;
    }
    
    .page-progress-particle {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-progress-container {
        bottom: 10px;
        width: min(70%, 240px);
        max-width: 240px;
        height: 22px;
        border-radius: 11px;
    }
    
    .page-progress-container:hover {
        height: 24px;
    }
    
    .page-progress-bar {
        top: 3px;
        left: 3px;
        height: calc(100% - 6px);
        border-radius: 8px;
    }
    
    .page-progress-bar::after {
        width: 6px;
        height: 6px;
        right: 4px;
    }
}
