/* Kompaktowy slider postępu */
.reading-progress {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    max-width: 280px;
    font-family: Arial, sans-serif;
}

.reading-progress:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.progress-circle {
    width: 40px;
    height: 40px;
    position: relative;
    flex-shrink: 0;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 3;
}

.progress-ring-fill {
    fill: none;
    stroke: #1976d2;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 113;
    stroke-dashoffset: 113;
    transition: stroke-dashoffset 0.3s ease;
}

.progress-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
}

.progress-content {
    flex: 1;
    min-width: 0;
}

.progress-title {
    font-size: 12px;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-subtitle {
    font-size: 10px;
    color: #666;
    line-height: 1.2;
}

.progress-percentage {
    font-size: 10px;
    font-weight: bold;
    color: #1976d2;
    margin-left: 8px;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { transform: translateY(-3px) scale(1); }
    50% { transform: translateY(-3px) scale(1.02); }
}

.reading-progress.near-end {
    animation: pulse 2s infinite;
}

.reading-progress.completed {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.reading-progress.completed .progress-title,
.reading-progress.completed .progress-subtitle,
.reading-progress.completed .progress-percentage {
    color: white;
}

.reading-progress.completed .progress-ring-fill {
    stroke: white;
}

@media (max-width: 768px) {
    .reading-progress {
        bottom: 20px;
        right: 20px;
        max-width: 240px;
        padding: 10px 16px;
    }
    
    .progress-circle {
        width: 35px;
        height: 35px;
    }
    
    .progress-icon {
        font-size: 14px;
    }
}